hytale-spawning-entities

Spawn model-based entities in Hytale plugins with ECS components.

Updated Jan 19, 2026
One-click install
npx skills add https://github.com/Reign-software/hyforged --skill hytale-spawning-entities-reign-software
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hytale-spawning-entities
Source: https://github.com/Reign-software/hyforged/tree/main/.github/skills/hytale-spawning-entities
Command: npx skills add https://github.com/Reign-software/hyforged --skill hytale-spawning-entities-reign-software

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Spawning visible, model-based entities in Hytale plugins can be complex, involving world retrieval, model attachment, component assembly, and persistence across saves; this guidance consolidates the workflow.

Core Features & Use Cases

  • Retrieve the World object from a player or by UUID and create a Holder to stage components.
  • Attach a model via ModelAsset, create a TransformComponent, and assign collision bounds for proper rendering and interaction.
  • Spawn the entity on the server thread and ensure it persists across server reloads with NetworkId and persistence components.
  • Support optional interactions by including Interactions and Interactables as needed.

Quick Start

Spawn a model-based entity by creating a Holder, configuring TransformComponent, PersistentModel, and ModelComponent, then add the holder to the world with AddReason.SPAWN on the world thread.

Frequently Asked Questions about hytale-spawning-entities

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I spawn visible, model-based entities in a Hytale plugin?

To spawn visible entities in a Hytale plugin, create a Holder to stage components, attach a ModelAsset, configure the TransformComponent, and add the holder to the world on the World thread using AddReason.SPAWN.

What components do I need to attach when spawning entities in Hytale?

Spawning entities in Hytale requires attaching NetworkId, TransformComponent, and model components like ModelAsset to a Holder, ensuring proper rendering, interaction, and persistence across world sessions.

How do I persist spawned entities across server reloads in Hytale?

To persist spawned entities across server reloads in Hytale, you must ensure the entity has NetworkId and persistence components attached when adding the holder to the world on the server thread.

Why must I use the World thread for spawning entities in Hytale plugins?

You must use the World thread for spawning entities in Hytale plugins because world mutations require thread safety; executing the AddReason.SPAWN operation on this thread ensures component assembly and persistence are properly registered.

Can I add player interactions to spawned model entities in Hytale?

Yes, you can support optional interactions for spawned model entities in Hytale by including Interactions and Interactables components alongside the ModelComponent and TransformComponent during the holder staging process.