
Testing
Objective: Scripting for a specific item: Wooden House Kit (Deployable Structure). 1. Item Definition & Crafting Item ID: wooden_house_kit Recipe Cost: 300...
00—hytaleServer2026.1mod
Wooden House Kit added for server deployment:
- Item
testing:wooden_house_kitregisters with the crafting system and binds to a placeholder block so placement events fire cleanly. - Recipe consumes 300 units of the generic wood resource at a normal crafting/workbench bench and yields one kit.
- Placement cancels the original block, clears the position, then spawns the prefab named
wooden_house_prefabat the placement coordinates, rotated 180° from the player's placement yaw so the entrance faces the player. - Prefab name is centralized in code (constant in the main plugin) for easy swapping without touching the placement logic.
- Safety checks log warnings if the prefab is missing and always clear the source block to avoid ghost blocks; adjust the wood resource or bench identifiers if your server uses different IDs.