Mob that press buttons

Started by Ante19 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob that press buttons

I want to make copper golem that press buttons when it touch them.

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you could set a…
Mon, 04/21/2025 - 23:23

I think you could set a procedure in the tick update trigger of the golem, where you copy the "check for block in a 6x6x6 area" from the procedure template list, making the block it would check for the button. I think you would need to specify for each type of button, so just add OR clauses with for each type of button in that part. 

Then, if the variable found is true, use the "Make event/target entity find a path and move towards x y z" but change that x y z for the variables sx sy and sz respectively. Following that "simulate right click on block" again changing the sx sy and sz. 

Now, I don't know if this makes the button actually being pressed, you will have to test that, and if it doesn't, make the effect of pushing that button manually. 

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you I will try it
Tue, 04/22/2025 - 12:30

Thank you I will try it