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

Started by SparkleArts on

Topic category: Help with modding (Java Edition)

Last seen on 19:25, 27. Mar 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to prevent Sculk Sensors not be triggered through Procedures?

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:55, 28. Mar 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.