PropScriptManager
Manages the lifecycle of Lua scripts bound to props in FreeMinecraftModels.
On prop spawn, checks for a sibling YML config next to the model file. If absent, creates a default config asynchronously (no scripts this load). If present, reads the config and binds the listed scripts from the scripts/ folder.
Functions
Link copied to clipboard
Link copied to clipboard
Called during plugin enable.
Link copied to clipboard
Called by PropEntity's left-click callback.
Link copied to clipboard
Shuts down the script instance associated with a prop when it is removed.
Link copied to clipboard
Called by PropEntity's right-click callback.
Link copied to clipboard
Called when a PropEntity is created.
Link copied to clipboard
Resolves the sibling YML config file for a model: same directory, same base name (model extension stripped, bow/crossbow draw-state suffix stripped),
.yml extension.