package net.serenas.shitmod; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.ActionResult; import net.minecraft.util.Hand; import net.minecraft.util.TypedActionResult; import net.minecraft.world.World; public class totemOfEquivalency extends Item { public totemOfEquivalency(Settings settings) { super(settings); } @Override public TypedActionResult use(World World, PlayerEntity PlayerEntity, Hand Hand) { PlayerEntity.kill(); return new TypedActionResult(ActionResult.SUCCESS, PlayerEntity.getStackInHand(Hand)); } }