-
How to detect when a certain item entity collide a block
Thank you ! It will really help me
-
How to detect when a certain item entity collide a block
it's true that i don't know enough , it's y first "big" project , also your condition don't work ^^' it can't find symbol
-
How to detect when a certain item entity collide a block
if(entityItem.getEntityItem(entity) == Item.getItemFromBlock(Blocks.obsidian)){ I try this but it don't work
-
How to detect when a certain item entity collide a block
I have an error : error: incomparable types: Entity and Item if(entity == Item.getItemFromBlock(Blocks.obsidian)){ ^
-
How to detect when a certain item entity collide a block
I have found a way to change the model , don't worry
-
How to detect when a certain item entity collide a block
public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity){ //when mod collides if(entity instanceof EntityItem){ world.createExplosion((Entity)null, i, j, k, 4F, true); } I use an explosion to test , but it don't seems to work . And if i succed to test if the entity is an item , i really don't know how to test it's an obsidian
-
How to detect when a certain item entity collide a block
I'm really not an expert ^^' may I have the code please ? I really don't know how to use that and i don't want to use your time
-
How to detect when a certain item entity collide a block
okay , if i understand i will use this public void onEntityCollidedWithBlock( World world, int x, int y, int z, Entity entity ) { and do my event . But i don't understand what to change to execute only if the entity is an item of obsidian .
-
How to detect when a certain item entity collide a block
Hello , First sorry if i make english mistakes , I'm french I would like to know if it's possible to execute something when the entity of item obsidian (when you throw it for example) collide the block and "consume" or delete the entity after . Thank you in advance (I have a mod which create a block but i don't think it will help , there is nothing in it , also i am a noob in modding ^^' it will be super if you could show me the final code , sorry for the disturbance)
IPS spam blocked by CleanTalk.