1
[DATAPACK] Predicates not working (SOLVED)done_all
Hello there! Firstly, thank you for your time.
I'm working on a mod that will update villager trades. I already have the functions code for the updates well done, the only thing that is missing is a good function to trigger those functions when it's around noon.
I checked out a few tutorials and got to a predicate generator, this is what I'm using: (I'm trying to make it check 3 times: once at 5000t, once at 6000t, and one last time at 7000t)
# .data/reasonabletrades/predicates
{ "condition": "minecraft:time_check", "value": { "min": 5000, "max": 7000 }, "period": 1000}
When I run minecraft with this datapack, all functions seems to have been loaded pretty well., The predicate tho, although listed in minecraft commands, does not work (it seems to only return false?).
This is how I am calling it:
#.data/reasonabletrades/functions
execute as @a[predicate=reasoabletrades:midday_check run function ....
Any help with what is going wrong?
Edit:
# .data/reasonabletrades/predicates
{ "condition": "minecraft:time_check", "value": { "min": 5000, "max": 7000 }, "period": 24000}
I'm working on a mod that will update villager trades. I already have the functions code for the updates well done, the only thing that is missing is a good function to trigger those functions when it's around noon.
I checked out a few tutorials and got to a predicate generator, this is what I'm using: (I'm trying to make it check 3 times: once at 5000t, once at 6000t, and one last time at 7000t)
# .data/reasonabletrades/predicates
{ "condition": "minecraft:time_check", "value": { "min": 5000, "max": 7000 }, "period": 1000}
When I run minecraft with this datapack, all functions seems to have been loaded pretty well., The predicate tho, although listed in minecraft commands, does not work (it seems to only return false?).
This is how I am calling it:
#.data/reasonabletrades/functions
execute as @a[predicate=reasoabletrades:midday_check run function ....
Any help with what is going wrong?
Edit:
# .data/reasonabletrades/predicates
{ "condition": "minecraft:time_check", "value": { "min": 5000, "max": 7000 }, "period": 24000}
Create an account or sign in to comment.