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 itself which of course has to extend <code>Block</code>:
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

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Modding:Advanced Blocks)
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:

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: