Add time_check condition (#45)

* Add time_check condition

* Add translations
This commit is contained in:
Misode
2019-12-27 01:32:47 +01:00
committed by GitHub
parent a26d3940a4
commit 8f92e485cf
2 changed files with 22 additions and 0 deletions

View File

@@ -46,6 +46,8 @@
"condition.score_remove": "Remove Score",
"condition.term": "Term",
"condition.thundering": "Thundering",
"condition.time_value": "Value",
"condition.time_period": "Period",
"condition.type": "Condition",
"condition.type.alternative": "Alternative",
"condition.type.block_state_property": "Block Properties",
@@ -61,6 +63,7 @@
"condition.type.reference": "Reference",
"condition.type.survives_explosion": "Survives Explosion",
"condition.type.table_bonus": "Table Bonus",
"condition.type.time_check": "Time",
"condition.type.weather_check": "Weather",
"condition_add": "Add Condition",
"condition_remove": "Remove Condition",
@@ -222,6 +225,7 @@
"gamemode.creative": "Creative",
"gamemode.spectator": "Spectator",
"gamemode.survival": "Survival",
"help.condition.time_period": "If present, time will be modulo-divided by this value. For example, if set to 24000, value will operate on a time period of days.",
"help.entry.expand": "If false, entry will return all contents of tag, otherwise entry will behave as multiple item entries",
"help.entry.type.alternatives": "Tests conditions of the child entries and executes the first that can run",
"help.entry.type.dynamic": "Gets block specific drops",

View File

@@ -528,6 +528,7 @@
},
"minecraft:location_check",
"minecraft:weather_check",
"minecraft:time_check",
"minecraft:entity_scores",
"minecraft:random_chance",
"minecraft:random_chance_with_looting",
@@ -626,6 +627,23 @@
"minecraft:weather_check"
]
},
{
"id": "value",
"type": "range",
"translate": "condition.time_value",
"require": [
"minecraft:time_check"
]
},
{
"id": "period",
"type": "range",
"translate": "condition.time_period",
"help": true,
"require": [
"minecraft:time_check"
]
},
{
"id": "block",
"type": "string",