Have it so the comparator strength given from a command block testing for a number is relative to the limit value given. It could function as normal if no limit is given.
The command /execute if entity @e[type=squid,limit=10] could send out 50% of a max redstone signal strength if 5 squids were found for example. 1 less than the limit, no matter how close, won't get a max signal strength such as 499 of 500. Going over the limit could just keep the redstone signal at max strength.
(To be compatible with my other suggestion a command like /execute if entity @e[type=squid,limit=10..20] would produce 50% signal if 15 squids were found and be off if outside the range given.)
(Also with compatibility a command like /execute if entity @e[type=squid,limit=10..20..] could have it so at 15 squids it is still at 50% strength but it stays at 100% strength if going over 20.[type=squid,limit=..10..20] would have it give minimum signal strength if it's below 10 squids. These last two paragraphs only apply if both suggestions were considered as they both have todo with the limit selector.)
Please sign in to leave a comment.
1 Comments