-
Notifications
You must be signed in to change notification settings - Fork 0
MCreator Player Break Procedure
NorthWestTrees edited this page Sep 25, 2024
·
4 revisions
You can find information about this mods tool tags on this page.
It is possible to use this trigger for the block element and make items drop when a player breaks the block.
The following dependencies can be used in the trigger.
- x
- y
- z
- world
- entity
- blockstate
For a simple block-breaking system
- You first need to save the main-hand item to a local variable.
- Create a condition and test for the tool type and desired item tag.
- Drop your custom item.
player_break_block_procedure.zip
For an advanced block-breaking system
- You first need to save the main-hand item to a local variable.
- Create a condition and test for the tool type and desired item tag.
- Test if the item has fortune, silk touch or nothing using else.
- If the item has fortune you then need to test for each level.
- For each fortune you can use repeat blocks to drop more than one item at a time.
- If the item has silk touch then you want to drop the block.
- If the block does not have silk touch or fortune then you want to drop only one item.