Started by
redski
on
Topic category: Help with Minecraft modding (Java Edition)
I have a system that drops different materials when a log is mined with a special tool, but the log itself also drops. I want to prevent the log from dropping though so you can't just keep placing the log back down and generate infinite materials. How do I stop the log from dropping?
https://imgur.com/a/bNjxGZR
As shown in the image,
Set the world trigger of the procedure to "when a block is destroyed in the world".
If the block at x,y,z is a log and the player has a special tool
Add a random item to the inventory,
You might succeed by canceling the event that caused the global trigger.
However, since the event of block destruction is canceled, the root table cannot be used
Also, the endurance is not consumed, so additional endurance reduction is required.
This method seems to just disallow the log to be broken entirely.
well there are 2 ways:
A. Create a loot table for the logs, using an external site, then make the log loot table in mcreator (with whatever) and override it with your loot table made externally
B. Take the procedure above, but add a "set block at x y z to air" at the very end