1

[DATAPACK] Predicates not working (SOLVED)done_all

littl3vampire's Avatar littl3vampire7/20/23 7:49 am history
1 emeralds 217
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}
Posted by littl3vampire's Avatar
littl3vampire
Level 26 : Expert Spider Rider
8

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome