Thanks for your help! I got a custom EntityItem now, but the thing is, that it will not render, neither i can pick it up once i threw it on the ground.
This is my Item Class (ItemSodium.java)
package tv.Tunfisch.HardcoreSilicon.Items;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import tv.Tunfisch.HardcoreSilicon.Entity.EntitySodium;
public class ItemSodium extends Item{
ItemStack itemSodium;
public ItemSodium(){
}
@Override
public boolean hasCustomEntity(ItemStack stack)
{
return true;
}
@Override
public Entity createEntity(World world, Entity location, ItemStack itemstack)
{
return new EntitySodium(world);
}
}
This is my Custom Entity (EntitySodium.java) - side note: I did not yet implement the explosion
package tv.Tunfisch.HardcoreSilicon.Entity;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import tv.Tunfisch.HardcoreSilicon.Register.ItemRegister;
public class EntitySodium extends EntityItem{
public EntitySodium(World worldIn) {
super(worldIn);
setEntityItemStack(new ItemStack(ItemRegister.itemSodium));
}
@Override
public void onEntityUpdate(){
if (this.inWater){
}
}
}
Thanks for being patient with me im not a native speaker and just began to develop Minecraft Mods
Greetings,
Edit: Removed pastebin links