Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
gamerule dead
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyMialee committed Oct 1, 2021
1 parent e2942a3 commit b420741
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/main/java/amymialee/collisionslib/Collisionslib.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,17 @@
import amymialee.collisionslib.items.IntangibilityChangerItem;
import amymialee.collisionslib.items.SizeChangerItem;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.gamerule.v1.GameRuleFactory;
import net.fabricmc.fabric.api.gamerule.v1.GameRuleRegistry;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.util.Identifier;
import net.minecraft.util.Rarity;
import net.minecraft.util.registry.Registry;
import net.minecraft.world.GameRules;

public class Collisionslib implements ModInitializer {
public static final String MODID = "collisionslib";
public static final Item THINIFIER = new SizeChangerItem(new Item.Settings().group(ItemGroup.TOOLS).maxCount(1).rarity(Rarity.RARE).fireproof());
public static final Item PHASIFIER = new IntangibilityChangerItem(new Item.Settings().group(ItemGroup.TOOLS).maxCount(1).rarity(Rarity.RARE).fireproof());
public static final GameRules.Key<GameRules.BooleanRule> DO_MOB_COLLISIONS =
GameRuleRegistry.register("doMobCollisions", GameRules.Category.MOBS, GameRuleFactory.createBooleanRule(true));

@Override
public void onInitialize() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package amymialee.collisionslib.mixin;

import amymialee.collisionslib.Collisionslib;
import amymialee.collisionslib.client.LivingEntityAccessor;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
Expand All @@ -10,7 +9,6 @@
import net.minecraft.entity.data.TrackedDataHandlerRegistry;
import net.minecraft.entity.vehicle.BoatEntity;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.world.GameRules;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;
Expand Down

0 comments on commit b420741

Please sign in to comment.