feat(spark_pet): major overhaul — traits, animations, riding, fire, coloured hatching
All checks were successful
Deploy Addons / deploy (push) Successful in 24s

- Movement: slower follow (speed 0.3, stop_dist 5), near-zero teleport chance
- Scales: baby 0.65, juvenile 0.9, adult 1.3 (up from 0.4/0.7/1.0)
- Personality traits (0–4): set by feeding specific foods while sneaking;
  affects stroll range, follow distance, look-at-player frequency
- Passtime animations driven by pure Molang lifecycle math (no timer components):
  groom, sniff, stretch, happy_bounce cycling ~every 3 min per dragon
- Rideable adults: minecraft:rideable + input_ground_controlled, seat at [0,0.9,-0.3]
- Fire breathing: autonomous vs monsters (radius 16) + player-triggered (sneak + fire_charge)
- New hatching system: 6 nest block variants (oak/spruce/jungle/crimson/warped/obsidian),
  craft nest + dragon_egg → coloured egg item; place egg, bonemeal + blaze powder → hatch;
  dragon colour matches nest type via 6 separate egg entity types + born_color events
- 18 new PNG textures: 6 dragon colours, 6 nest blocks, 6 egg items (HSV hue rotation)
- Render controller updated to use texture array indexed by silverlabs:dragon_color property

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-25 02:12:44 +00:00
parent c32dbf42c4
commit 4bd9efc081
57 changed files with 2162 additions and 320 deletions

View File

@@ -7,7 +7,12 @@
"default": "entity_alphatest"
},
"textures": {
"default": "textures/entity/spark_dragon"
"color_0": "textures/entity/spark_dragon_white",
"color_1": "textures/entity/spark_dragon_brown",
"color_2": "textures/entity/spark_dragon_green",
"color_3": "textures/entity/spark_dragon_red",
"color_4": "textures/entity/spark_dragon_teal",
"color_5": "textures/entity/spark_dragon_black"
},
"geometry": {
"default": "geometry.spark_dragon"
@@ -21,6 +26,11 @@
"sit": "animation.spark_dragon.sit",
"sleep": "animation.spark_dragon.sleep",
"fly": "animation.spark_dragon.fly",
"groom": "animation.spark_dragon.groom",
"sniff": "animation.spark_dragon.sniff",
"stretch": "animation.spark_dragon.stretch",
"happy_bounce": "animation.spark_dragon.happy_bounce",
"fire_breath": "animation.spark_dragon.fire_breath",
"controller": "controller.animation.spark_dragon",
"beacon_controller": "controller.animation.spark_dragon.beacon",
"mood_controller": "controller.animation.spark_dragon.mood"