-
[1.8]Item Explosion upon water contact
Oh for gods sake there was a typo ... How dumb actually... I know basic Java, but I'm struggeling with the weird structure Minecraft has from time to time... First term computer science... Thanks anyway
-
[1.8]Item Explosion upon water contact
But this is an ItemEntity there are no such fields ._. Or I am too dumb to find them...
-
[1.8]Item Explosion upon water contact
So how do I get the coordinates from the EntitySodium transferred to the EntityPrimedTNT?
-
[1.8]Item Explosion upon water contact
You're the real MVP Ok last question on a very basic thing: How do I spawn already existing entities? In this case a primed TNT at the location of the Item? Sorry for all the questions, but I'm not really into entities... Is there some kind of documentation for 1.8 modding? Thanks, Eixix
-
[1.8]Item Explosion upon water contact
Sorry for answering so late, had to do a lot at university... Can you describe how to copy them to the new entity? Thank you! Yep, I'm a total noob, merry christas
-
[1.8]Item Explosion upon water contact
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
-
[1.8]Item Explosion upon water contact
Hey there! I was wondering whether it's possible to detect when an item is dropped into the water and let the item explode upon impact or not? Messed a bit around with the onDroppedByPlayer Event, but didn't manage to get it done! Thanks for the help, Eixix
IPS spam blocked by CleanTalk.