#is there a way to detect redstone signals?

1 messages · Page 1 of 1 (latest)

atomic solar
#

is there any way i can detect the level of powering of a specific block without having to run a billion checks? i'm in minecraft 1.21.4. I don't care if it's another datapack or a library mod, but seeing as it's something a couple mods (specifically related to redstone signal detection, like Redstone Signal Visualizer or Redstone Multimeter) are able to access, i'm assuming there is a way to do this without excessive checks.

royal gulchBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1741055672:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

marsh hawk
#

A billion checks is a bit exaggerated, you only need a function with 16 checks per block that you want to check, that simply returns at a specific check.

#

the thing is it only works on redstone, light senseors, weighted pressure plates, and other blocks that have a power blockstate

atomic solar
marsh hawk
#

No, I meant 16

#

1 for every power level redstone can have

#

0-15

#

not sure where you got the 6 from

atomic solar
#

oooh i was talking about the six sides of a block. i thought you meant checking every block around the block you want to check to see if it gets powered by anything

marsh hawk
#

In your question you said power level

atomic solar
#

anyway, almost every block in minecraft can be powered by redstone. i probably didn't make the question clear enough. if i wanted to run the check on blocks that store their power level in their block state i wouldn't have asked lol

marsh hawk
#

Then why did you ask exactly that?

#

Anyways, what do you want tro know now?

atomic solar
#

again, if there's a way to know if any block is powered and its power level

marsh hawk
#

There is no way to do that with data packs. A dirt block, for example, doesn't store any information if it's powered. All of this is only internal. You would need a mod to detect that.

#

You would need to check if there is a block around that poweres the block but this would indeed require a billion checks as you said in your question.

atomic solar
#

I don't care if it's another datapack or a library mod
i figured. are there any that do this in a way that's accessible with commands?

marsh hawk
#

I don't know any and I doubt that there is one for such a specific thing.

atomic solar
#

All right, thank you anyway!

royal gulchBOT
#
Question Closed

Your question, #1346302256399515648 (is there a way to detect redstone signals?), was resolved!

Original Message

#1346302256399515648 message

Duration open

19m