Remove some comments, small changes.
This commit is contained in:
parent
d2d630a099
commit
f238c87793
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user