It is right now possible to select and modify multiple items with the data command. It would be very interesting to instantly see if values are within a certain range.
So instead of doing
/execute as @e[type=minecraft:villager] if data entity @s Offers.Recipes[]
and storing items then comparing and then actually getting the actual items with a certain range of demand.
You could just do something along the lines of
/execute as @e[type=minecraft:villager] if data entity @s Offers.Recipes[{demand: -9999..0}]
Please sign in to leave a comment.
0 Comments