Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.knifesurge.ToolExpansion.entityItem;
- import com.knifesurge.ToolExpansion.init.ToolExpansionItems;
- import net.minecraft.entity.item.EntityItem;
- import net.minecraft.item.ItemStack;
- import net.minecraft.world.World;
- public class SpecialEntityItem extends EntityItem{
- public SpecialEntityItem(World worldIn, double x, double y, double z, ItemStack stack) {
- super(worldIn, x, y, z, stack);
- }
- @Override
- public void onUpdate()
- {
- if(this.inWater)
- {
- this.setDead();
- EntityItem entity = new EntityItem(worldObj, this.posX, this.posY, this.posZ, new ItemStack(ToolExpansionItems.cooled_blaze_rod));
- worldObj.spawnEntityInWorld(entity);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement