Modding:Advanced Items: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
Line 22: Line 22:
If you have read the [[Advanced Blocks]] Tutorial already, this should be fimilar to you.
If you have read the [[Advanced Blocks]] Tutorial already, this should be fimilar to you.


In order to register your item class, we need to create a mod, which is basically a class exendting ModBase:
In order to register your item class, we need to create a mod, which is basically a class exendting ModSystem:


<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">
public class TunnlerMod : ModBase
public class TunnlerMod : ModSystem
{
{
      
      
Line 34: Line 34:


<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">
public class TunnlerMod : ModBase
public class TunnlerMod : ModSystem
{
{
     public override void Start(ICoreAPI api)
     public override void Start(ICoreAPI api)
Line 123: Line 123:
namespace ExampleMods
namespace ExampleMods
{
{
     public class TunnlerMod : ModBase
     public class TunnlerMod : ModSystem
     {
     {


Confirmedusers, editor, Administrators
886

edits