WorldGen: Difference between revisions

From Vintage Story Wiki
No edit summary
Line 13: Line 13:


== The mod class ==
== The mod class ==
The main class and the starting point of our mod will be VSTreasureChestMod.  
The main class and the starting point of our mod will be VSTreasureChestMod.
<code>
using System;
using System.Collections.Generic;
using Vintagestory.API;
using Vintagestory.API.Datastructures;
using Vintagestory.API.Interfaces;
 
namespace VintageStory.Mods.VSTreasureChest
{
    public class VSTreasureChestMod : ModBase
    {
        private ICoreServerAPI api;
 
        public override void StartServerSide(ICoreServerAPI api)
        {
            this.api = api;
        }
    }
}
</code>
 


== The /treasure command ==
== The /treasure command ==