Translations:Modding:Advanced Blocks/16/en: Difference between revisions
From Vintage Story Wiki
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 1: | Line 1: | ||
Let's create our block class | Let's create our block class. When naming block scripts, it is recommended to name them in the format "{Name}Block". In the case of the trampoline, we shall name our script <code>TrampolineBlock.cs</code>. Any block class has to extend <code>Block</code>, giving it the functionality we need to access: |
Latest revision as of 13:39, 25 March 2024
Let's create our block class. When naming block scripts, it is recommended to name them in the format "{Name}Block". In the case of the trampoline, we shall name our script TrampolineBlock.cs
. Any block class has to extend Block
, giving it the functionality we need to access: