Modding:Adding Block Behavior: Difference between revisions

From Vintage Story Wiki
Line 4: Line 4:
Block Behaviors are useful when you want different blocks to act in the same way, as you can attach one or more block behaviors to an arbitrary number of blocks.
Block Behaviors are useful when you want different blocks to act in the same way, as you can attach one or more block behaviors to an arbitrary number of blocks.
You may want to have a look at the existing [[Block Json Properties#p_behaviors|block behaviors]] before implementing your own.
You may want to have a look at the existing [[Block Json Properties#p_behaviors|block behaviors]] before implementing your own.
In this tutorial we'll create a new Behavior that we can attach to blocks to make them movable by right clicking them.


== Setting up ==
== Setting up ==
Confirmedusers, Bureaucrats, editor, Administrators
1,778

edits