diff --git a/locales/en.json b/locales/en.json index da56f979..60701052 100644 --- a/locales/en.json +++ b/locales/en.json @@ -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", diff --git a/schemas/1.15.json b/schemas/1.15.json index fd88a228..fe5167bc 100644 --- a/schemas/1.15.json +++ b/schemas/1.15.json @@ -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",