From 6429fa63bd21c5ee75765dc6282da8c2d002b85f Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Tue, 2 Apr 2024 13:12:20 +0500 Subject: [PATCH 1/4] - Update brightness filter --- .../behavior/spawn_rules/components/brightness_filter.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/behavior/spawn_rules/components/brightness_filter.json b/source/behavior/spawn_rules/components/brightness_filter.json index 727445d2..14a8e3cf 100644 --- a/source/behavior/spawn_rules/components/brightness_filter.json +++ b/source/behavior/spawn_rules/components/brightness_filter.json @@ -8,12 +8,14 @@ "min": { "type": "integer", "description": "This is the minimum light level value that allows the mob to spawn.", - "title": "Min" + "title": "Min", + "minimum": 0 }, "max": { "type": "integer", "description": "This is the maximum light level value that allows the mob to spawn.", - "title": "Max" + "title": "Max", + "maximum": 15 }, "adjust_for_weather": { "type": "boolean", From 8da90dc35ce7f63c52b6795d57df584e8826cb4a Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:00:19 +0500 Subject: [PATCH 2/4] Update source/behavior/spawn_rules/components/brightness_filter.json Co-authored-by: Daan Verstraten --- source/behavior/spawn_rules/components/brightness_filter.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/behavior/spawn_rules/components/brightness_filter.json b/source/behavior/spawn_rules/components/brightness_filter.json index 14a8e3cf..33197307 100644 --- a/source/behavior/spawn_rules/components/brightness_filter.json +++ b/source/behavior/spawn_rules/components/brightness_filter.json @@ -16,6 +16,8 @@ "description": "This is the maximum light level value that allows the mob to spawn.", "title": "Max", "maximum": 15 + "minimum": 0, + "default": 15 }, "adjust_for_weather": { "type": "boolean", From 463e061908488cfd9e1eb0ddd1047527d89a95e0 Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:08:14 +0500 Subject: [PATCH 3/4] Update source/behavior/spawn_rules/components/brightness_filter.json Co-authored-by: Daan Verstraten --- source/behavior/spawn_rules/components/brightness_filter.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/behavior/spawn_rules/components/brightness_filter.json b/source/behavior/spawn_rules/components/brightness_filter.json index 33197307..fc811b0a 100644 --- a/source/behavior/spawn_rules/components/brightness_filter.json +++ b/source/behavior/spawn_rules/components/brightness_filter.json @@ -9,7 +9,9 @@ "type": "integer", "description": "This is the minimum light level value that allows the mob to spawn.", "title": "Min", - "minimum": 0 + "minimum": 0, + "maximum": 15, + "default": 0 }, "max": { "type": "integer", From 69a0d1e9d8df6e58b06cf84959961ec46ead2374 Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:25:45 +0500 Subject: [PATCH 4/4] - Fix json issue --- source/behavior/spawn_rules/components/brightness_filter.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/behavior/spawn_rules/components/brightness_filter.json b/source/behavior/spawn_rules/components/brightness_filter.json index fc811b0a..469f0493 100644 --- a/source/behavior/spawn_rules/components/brightness_filter.json +++ b/source/behavior/spawn_rules/components/brightness_filter.json @@ -17,7 +17,7 @@ "type": "integer", "description": "This is the maximum light level value that allows the mob to spawn.", "title": "Max", - "maximum": 15 + "maximum": 15, "minimum": 0, "default": 15 },