Item Destroy

Started by Aizark on

Topic category: Help with modding (Java Edition)

Last seen on 03:21, 29. Sep 2023
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item Destroy

Hello again. I speak through a translator.
Thank you for understanding.

The situation is this, I have an "item" that should not fall to the ground when the block is destroyed. At the same time, the rest of the items could fall to the ground.
How to do it?

Or how to make it so that a certain item lying on the floor in the world was instantly destroyed?

Last seen on 03:21, 29. Sep 2023
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can someone help me please?
Sat, 03/23/2019 - 16:55

Can someone help me please?

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could make a custom mob…
Sat, 03/23/2019 - 21:05

You could make a custom mob with an item like model. This mob will only have 1 health. Then add on the event:

when collides with player;

    deal 1 damage to the mob.

    spawn gem (your special item) at x y z.

and on mob tick update:

teleport entity to x y z

  • //This will make sure the mob cannot fall.

Also put on entity death:

    spawn gem(your special item) at x y z.

 

I hope this helps!

 

Last seen on 03:21, 29. Sep 2023
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need to REMOVE the subject…
Sun, 03/24/2019 - 10:07

I need to REMOVE the subject wallowing in the world.
Or prohibit it from falling out of the block, for example, from the stove, chest, and so forth.