How can I correctly perform the procedure for a stripped custom log and wood?

Started by Baventraxnano11 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I correctly perform the procedure for a stripped custom log and wood?

I want to create a procedure that works correctly on all types of wood and logs that I add. I also want it to work with absolutely all types of custom axes that I create, but also with the default ones in the game such as: wooden axe, stone axe, etc. 

Of course, I want it to apply to both hands in the game. including Off-hand, to take 1 durability from that axe when it is used to strip when we are in gamemode survival gamemode. I want a video of how I can make this procedure work very well with all types of axes and logs and wood that I will add! MCreator version: 2025.2 - this is what I use. Thanks!!!

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This forum would be a good…
Thu, 07/17/2025 - 12:09

This forum would be a good starting point https://mcreator.net/forum/66392/how-make-your-blocks-strippable-without-code-and-able-place-blocks-it?page=0 It is an old topic but it still works in MCreator 2025.2

To make it only damage the axe in survival mode, you could use an if condition that checks if the gamemode of the player is survival (there is a simple procedure block for it) and put the deal 1 damage to item in main hand of event/target entity inside that.

To make it work with either hand, you could duplicate the if condition that checks if item in the main hand of event/target entity is an axe (as well as duplicating all content in it) and change all references to the item in the main hand of event/target entity in the duplicate to instead use the item in the off-hand of event/target entity.

Sorry I wasn't able to provide a video, but I hope this helps.

Also, one final note, a lot of people have missed the part of the referenced forum topic where it says to use a global procedure trigger rather than assigning the procedure to your block's 'on block right-clicked' trigger. It may seem like a small thing, but if you use the global procedure trigger only, you can place blocks on your log without needing to sneak. However, if you use your block's procedure triggers directly, you can't easily place things on it.