Description
growtree | Instant Sapling Growth 🌲
Take control of your forests with a simple command to instantly grow nearby saplings to a massive tree of your choice!
What It Does
growtree introduces a new server command (/growtree) that allows players to instantly force the nearest sapling into its mature tree prefab state. Instead of waiting for Hytale's natural farming ticking system to calculate random decay times and stage advancements, growtree bypasses the engine's internal checks to stitch the sapling's appropriate tree directly into the world.
Features
- 🎯 Smart Targeting: Automatically scans a 10-block radius to find the absolute closest planted sapling to the player.
- 📏 Custom Sizes: Provides an optional
--stage=[number]argument to specify exactly how large you want the tree to grow. Want a small Redwood? Just use/growtree --stage=1. Want a behemoth? Run/growtree --stage=4or higher. - ⚡ Instant Growth: Hooks directly into Hytale's
PrefabFarmingStageDataarchitecture to apply the tree's blocks instantly, skipping the growth queue entirely. - 🛠️ Force Placement: Dynamically overrides Hytale's natural biome obstruction checks by default (e.g. shallow dirt), forcing the tree prefab into reality no matter the environment!
- 🛠️ Debug Friendly: Outputs detailed scanning metrics—like the number of blocks checked and saplings found—directly to the Server Console for easy debugging.
How to Use
Simply plant any sapling natively available in the game (Oak, Redwood, Palm, etc.), stand near it, and execute the command in chat:
/growtree
(By default, this will grow the nearest sapling to its maximum possible stage size.)
/growtree --stage=[number]
(Optionally provide a number to lock the tree's growth to a specific stage/size.)
Technical Details
Hytale's natural tree generation relies on FarmingSystems and FarmingUtil, which check real-world delta time before spawning tree prefabs. Furthermore, it strictly enforces isIntact (verifying previous growth stages exist) and isUnObstructed checks to prevent trees from spawning improperly (like inside stone or without deep 5-block soil access).
To completely override these restrictions natively, growtree utilizes Deep Java Reflection to slice directly into the engine's PrefabFarmingStageData. It rips the pure IPrefabBuffer block matrix straight from memory and forcibly injects it into the world's chunks via PrefabUtil.paste(force=true). This guarantees the sapling transforms into a mature tree exactly where it's planted, ignoring ALL biome, depth, and obstruction logic!
Install
Simply drop the growtree-1.0.4.jar into your server's mods/ directory. No other dependencies are required, and the mod works universally for both local and dedicated servers!
| Version | 1.0.4 |
| Author | GiggleJade |
| Server Version | 2026.02.19-1a311a592 |


