Help with procedures

Started by GafLord on

Topic category: Help with modding (Java Edition)

Last seen on 01:29, 22. Oct 2023
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with procedures

How to make it so that: Holding a certain object in your hand, HOLDING the left mouse button on a certain block, after a while, a certain object was changed to another object. Example: In the hand of an oak, start hitting the stone with an oak, after 3 seconds of beating the stone with an oak, the oak turned into oak boards

Last seen on 17:47, 14. Jul 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could add a custom NBT…
Tue, 10/03/2023 - 02:07

You could add a custom NBT number tag to the block that increases each time the block is hit, (assuming it's a modded block and you can enable block entity.) Then if the number gets high enough, replace the block. Another option is to just use a 'wait ... ticks' bracket to wait three seconds, (60 ticks), and then replace the block, if you don't care about the player actually holding down the mouse button. 

For some good procedure tutorials, I recommend Northwesttrees gaming. You should be able to find 'em on Youtube, if you're interested.

Last seen on 04:28, 11. Oct 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could also use a custom…
Tue, 10/03/2023 - 03:26

You could also use a custom item with a NBT tag that checks the block you're hitting with it and changes the tag's value until the tag is at a certain value, then after the tag is at that value, changing the block (useful if the block's not custom, but the item is).