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.
#is there a way to detect redstone signals?
1 messages · Page 1 of 1 (latest)
<@&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
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
you need to run 6 checks for every block that can power redstone, and not every block powers redstone in the same way. I mean, there's a whole tab of blocks related to redstone, i think the checks would very quickly add up
No, I meant 16
1 for every power level redstone can have
0-15
not sure where you got the 6 from
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
In your question you said power level
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
again, if there's a way to know if any block is powered and its power level
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.
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?
I don't know any and I doubt that there is one for such a specific thing.
All right, thank you anyway!
Question Closed
Your question, #1346302256399515648 (is there a way to detect redstone signals?), was resolved!
Original Message
#1346302256399515648 message
Duration open
19m
Any further messages or reactions will re-open this thread.