#Create predicate for advancement

1 messages · Page 1 of 1 (latest)

native mist
#

Your whole "conditions" test for player informations and thus should be put under "player" :

"criteria": {
  "agility_level_2": {
    "trigger": "minecraft:tick",
    "conditions": {
      "player":{
        "type":"pmmo:skill_level",
        "skill":"agility",
        "level_min": 2
      }
    }
  }
}
#

I think that might work

manic kite
#

Hmm good thought! Still no luck. Before the advancement would be given to me regardless of my agility level. Now the advancement isn't showing up at all. So there's a change at least!

native mist
#

Can you send a link to the mod page ?

manic kite
#

In the mod pack they are used like this to modify a loot table:

  "type": "pmmo:treasure",
  "chance": 0.015,
  "conditions": [
    {
      "condition": "pmmo:skill_level",
      "level_max": 2147483647,
      "level_min": 1,
      "skill": "farming"
    },
    {
      "block": "minecraft:carrots",
      "condition": "pmmo:valid_block"
    }
  ],
  "count": 1,
  "item": "minecraft:carrot"
}