Behavior editor
What happens when something happens: when this sword hits, set the target on fire.
How to add it#
- New thing > Logic and code > Behavior
What you can set#
| Setting | What it does |
|---|---|
| Name | What to call this behaviour in the tree. |
| Belongs to | The block or item that does this. |
| Rules | What happens, and when. Edited on the thing's Behavior tab. |
What it becomes in the game#
It is written into the mod when you Cook or press Play.
What it works with#
It points at: Block, Item, Mob, Projectile, Thing, Vehicle, Spell, Area value, World event, Satellite, Space station, When fluids meet, The player, Screen, Command, Key binding, Skill tree, Quests, Guide book, Word of your own, Chest menu.
An example#
To make a sword set things on fire, see Make a fire sword. It uses one rule, step by step.
Picture#
