Started by
Aizark
on
Topic category: Help with Minecraft modding (Java Edition)
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?
Can someone help me please?
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
Also put on entity death:
spawn gem(your special item) at x y z.
I hope this helps!
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.