feat(spark): time-of-day sleep cycle + needy smoke particle fix

Switch sleep transitions from day_light_level (broken indoors) to
time_of_day, and fix the mood_needy particle reference from the
non-existent minecraft:large_smoke to minecraft:basic_smoke_particle.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 21:59:13 +01:00
parent 77a7524917
commit 145f5d9beb
2 changed files with 4 additions and 4 deletions

View File

@@ -30,7 +30,7 @@
{ "fire_breathing": "query.property('silverlabs:firing')" }, { "fire_breathing": "query.property('silverlabs:firing')" },
{ "flying": "!query.is_on_ground && query.property('silverlabs:growth_stage') == 2" }, { "flying": "!query.is_on_ground && query.property('silverlabs:growth_stage') == 2" },
{ "walking": "query.modified_move_speed > 0.1" }, { "walking": "query.modified_move_speed > 0.1" },
{ "sleeping": "query.is_sitting && (query.day_light_level < 4)" }, { "sleeping": "query.is_sitting && (query.time_of_day > 0.5)" },
{ "sitting": "query.is_sitting" }, { "sitting": "query.is_sitting" },
{ "grooming": "query.is_on_ground && query.modified_move_speed <= 0.05 && math.mod(math.floor((query.life_time + math.mod(math.abs(math.floor(query.position(0) + query.position(2))), 5) * 36.0) / 36.0), 5) == 1" }, { "grooming": "query.is_on_ground && query.modified_move_speed <= 0.05 && math.mod(math.floor((query.life_time + math.mod(math.abs(math.floor(query.position(0) + query.position(2))), 5) * 36.0) / 36.0), 5) == 1" },
{ "sniffing": "query.is_on_ground && query.modified_move_speed <= 0.15 && math.mod(math.floor((query.life_time + math.mod(math.abs(math.floor(query.position(0) + query.position(2))), 5) * 36.0) / 36.0), 5) == 2" }, { "sniffing": "query.is_on_ground && query.modified_move_speed <= 0.15 && math.mod(math.floor((query.life_time + math.mod(math.abs(math.floor(query.position(0) + query.position(2))), 5) * 36.0) / 36.0), 5) == 2" },
@@ -52,14 +52,14 @@
"animations": ["sit"], "animations": ["sit"],
"transitions": [ "transitions": [
{ "idle": "!query.is_sitting" }, { "idle": "!query.is_sitting" },
{ "sleeping": "query.is_sitting && (query.day_light_level < 4)" } { "sleeping": "query.is_sitting && (query.time_of_day > 0.5)" }
] ]
}, },
"sleeping": { "sleeping": {
"animations": ["sleep"], "animations": ["sleep"],
"transitions": [ "transitions": [
{ "idle": "!query.is_sitting" }, { "idle": "!query.is_sitting" },
{ "sitting": "query.is_sitting && (query.day_light_level >= 4)" } { "sitting": "query.is_sitting && (query.time_of_day <= 0.5)" }
] ]
}, },
"flying": { "flying": {

View File

@@ -41,7 +41,7 @@
"particle_effects": { "particle_effects": {
"beacon_beam": "minecraft:endrod", "beacon_beam": "minecraft:endrod",
"mood_happy": "minecraft:villager_happy", "mood_happy": "minecraft:villager_happy",
"mood_needy": "minecraft:large_smoke" "mood_needy": "minecraft:basic_smoke_particle"
}, },
"spawn_egg": { "spawn_egg": {
"base_color": "#7B2FBE", "base_color": "#7B2FBE",