Jump to content

madmanu

Members
  • Posts

    9
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

madmanu's Achievements

Tree Puncher

Tree Puncher (2/8)

-1

Reputation

  1. 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
  2. if(entityItem.getEntityItem(entity) == Item.getItemFromBlock(Blocks.obsidian)){ I try this but it don't work
  3. I have an error : error: incomparable types: Entity and Item if(entity == Item.getItemFromBlock(Blocks.obsidian)){ ^
  4. I have found a way to change the model , don't worry
  5. 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
  6. 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
  7. 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 .
  8. 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)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.