Toggle Night Vision
Defines a Night Vision power which can be toggled on and off with the active power key.
Type ID: origins:toggle_night_vision
Fields
Field | Type | Default | Description |
---|---|---|---|
active_by_default |
Boolean | true | Whether this power starts in the on or off state. |
strength |
Float | 1.0 | How strong the night vision effect is. Range: 0 - 1. |
key |
Key | optional | Which active key this power should respond to. If none is specified, this power will use the primary active power key (by default G). |
Example
{
"type": "origins:toggle_night_vision",
"strength": 0.5,
"condition": {
"type": "origins:submerged_in",
"fluid": "minecraft:water"
}
}
Gives the player night vision while underwater, improving their vision by quite a bit (though not as good as real night vision, because this is set to be only half as strong). However, this can be turned on and off with G!