I so wanna get into modding after i saw THAT!!
Derail!!
10/10
Here's one for you players:
package com.github.coolsquid321.killplayers;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.event.entity.EntityJoinWorldEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
public class ForgeEventHandler {
@SubscribeEvent
public void EntityJoinWorldEvent(EntityJoinWorldEvent event) {
if(event.entity instanceof EntityPlayer) {
event.entity.setPosition(1, -100, 1);
}
}
}
package com.github.coolsquid321.killplayers;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
@Mod(modid = "killplayers", name = "Kill Players", version = "0.3")
public class killplayers {
@EventHandler
public static void Init(final FMLInitializationEvent event) {
MinecraftForge.EVENT_BUS.register((Object)new ForgeEventHandler());
}
}
The licence can be found at my website.