Modding:Advanced Items: Difference between revisions
From Vintage Story Wiki
CreativeMD (talk | contribs) |
CreativeMD (talk | contribs) 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 | 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 : | public class TunnlerMod : ModSystem | ||
{ | { | ||
Line 34: | Line 34: | ||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
public class TunnlerMod : | 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 : | public class TunnlerMod : ModSystem | ||
{ | { | ||