Skip to content

Cave Light

Data Command

mcfunction
data modify storage minecraft:entity entity.<entityID> set value {triggers:[{<trigger data>}]}

Give Item Command

mcfunction
snbt
{
  entity: {
    player: {
      triggers: [
        {
          type: "minecraft:condition",
          conditions: [],
          events: {
            add_mob_effect: [
              {
                effect: "minecraft:night_vision",
                target: "this"
              }
            ]
          }
        }
      ]
    }
  }
}

Not associated with or approved by Mojang Studios or Microsoft