Is it possible to prevent Sculk Sensors not be triggered through Procedures?

Started by GamesofFreak on Tue, 10/25/2022 - 16:05

Topic category: Help with modding (Java Edition)

Last seen on 20:26, 26. Jan 2023
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is it possible to prevent Sculk Sensors not be triggered through Procedures?
Tue, 10/25/2022 - 16:05

I want to make an Enchantment(maybe) that allows you to prevent Sculk Sensors not be triggered if you worn this enchantment.

Last seen on 00:51, 27. Jan 2023
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There is one way I can thinkā€¦
Wed, 10/26/2022 - 00:10

There is one way I can think of, but it definitely falls in the realm of 'needlessly complicated.' The sculk sensor stuff is hardcoded, and, unlike Piglin Pacification, (which at least has some built in triggers you can work with), it doesn't take armor into consideration.

...If you wanted to get rid of the problem at the source though, you could make a procedure for the enchantment that literally just replaces nearby Sculk sensors with a custom block that looks just like them. (Of that looks dead, or something, if you wanted to make it seem more deliberate.) Then give the custom blocks a procedure that checks if there's an entity with the enchantment nearby, and reverts them back to normal if there isn't.