Origins (Fabric)

Origins (Fabric)

15M Downloads

Power Condition

interacsion opened this issue ยท 1 comments

commented

I have a power

{
    "type": "origins:toggle",
    "active_by_default": false,
    "key": "primary"
}

how can I make it available only when this condition

"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
    "location": {
        "light": {
            "light": 0
        }
    }
}

is true?

commented

You'll have to put that condition you posted (which is a predicate) in the predicates folder of your data pack, and then you can reference it inside an origins:predicate condition (link), e.g.

{
  "type": "origins:toggle",
  "active_by_default": false,
  "key": "primary",
  "condition": {
    "type": "origins:predicate",
    "predicate": "mydatapack:mypredicate"
  }
}