Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.Phantom6208.keepalive.events;
- import ibxm.Player;
- import cpw.mods.fml.common.eventhandler.SubscribeEvent;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.entity.item.EntityTNTPrimed;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.util.DamageSource;
- import net.minecraft.world.World;
- import net.minecraftforge.event.entity.living.LivingDeathEvent;
- public class IfAPlayerDie {
- @SubscribeEvent
- public void onLivingDeathEvent(LivingDeathEvent event) {
- EntityPlayer player = (EntityPlayer) event.entity;
- World world = player.getEntityWorld();
- world.spawnEntityInWorld(new EntityTNTPrimed(world));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement