diff --git a/src/main/java/net/kelsoncraft/test/EntitySpawnTest.java b/src/main/java/net/kelsoncraft/test/EntitySpawnTest.java index 4fe4333..e2d3e80 100644 --- a/src/main/java/net/kelsoncraft/test/EntitySpawnTest.java +++ b/src/main/java/net/kelsoncraft/test/EntitySpawnTest.java @@ -6,10 +6,12 @@ import net.minecraft.entity.Entity; import net.minecraft.entity.EntityType; import net.minecraft.entity.LightningEntity; import net.minecraft.entity.passive.ChickenEntity; +import net.minecraft.entity.player.PlayerEntity; import net.minecraft.nbt.NbtCompound; import net.minecraft.registry.entry.RegistryEntry; import net.minecraft.server.command.ServerCommandSource; import net.minecraft.server.command.SummonCommand; +import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.server.world.ServerWorld; import net.minecraft.util.math.Vec3d; import net.minecraft.world.World; @@ -18,6 +20,8 @@ public class EntitySpawnTest { public void MobTest(World world){ // I'm not sure how to get the current world the player is in. +// ServerPlayerEntity player = new ServerPlayerEntity(); +// player.getWorld(); //World world = ; // I have no idea what this will do lol, I think possibly I have finally figured it out. // I'm not sure how to spawn these mobs like this though. diff --git a/src/main/java/net/kelsoncraft/test/KelsonCraftTest.java b/src/main/java/net/kelsoncraft/test/KelsonCraftTest.java index 935b457..a3281f8 100644 --- a/src/main/java/net/kelsoncraft/test/KelsonCraftTest.java +++ b/src/main/java/net/kelsoncraft/test/KelsonCraftTest.java @@ -87,16 +87,11 @@ public class KelsonCraftTest implements ModInitializer { }))); // This should add the teleport command, I got the idea from this: // https://github.com/Draylar/get-off-my-lawn/blob/1.17/src/main/java/draylar/goml/GetOffMyLawn.java#L30-L37 + + // Commands TestCommands.init(); // CommandTest commandTest = new CommandTest(); - //I wonder how to implement a teleport command, and a try to put this in another class. -// CommandRegistrationCallback.EVENT.register((dispatcher, registryAccess, environment) -> dispatcher.register(literal("teleport") -// .executes(context -> { -// context.getSource().sendFeedback(() -> Text.literal("Teleport to %s"), false); -// return 1; -// }))); - // This is a way to use the item as fuel FuelRegistry.INSTANCE.add(CustomItems.CUSTOM_ITEM, 300);