Modding:Adding Block Behavior: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
Line 14: Line 14:


So first of all we need to create the behavior itself, which is a class extending BlockBehavior
So first of all we need to create the behavior itself, which is a class extending BlockBehavior
<syntaxhighlight lang="c#">
<syntaxhighlight lang="csharp">
class Moving : BlockBehavior
class Moving : BlockBehavior
{
{
Confirmedusers, Bureaucrats, editor, Administrators
1,778

edits