Initial commit

This commit is contained in:
AriasCreations 2025-01-18 00:43:16 -07:00
commit c416e6e5e1
17 changed files with 1243 additions and 0 deletions

View file

@ -0,0 +1,41 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>bin\$(Configuration)\Mods\mod</OutputPath>
</PropertyGroup>
<ItemGroup>
<Reference Include="VintagestoryAPI">
<HintPath>$(VINTAGE_STORY)/VintagestoryAPI.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="VSSurvivalMod">
<HintPath>$(VINTAGE_STORY)/Mods/VSSurvivalMod.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="VSEssentials">
<HintPath>$(VINTAGE_STORY)/Mods/VSEssentials.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="VSCreativeMod">
<HintPath>$(VINTAGE_STORY)/Mods/VSCreativeMod.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>$(VINTAGE_STORY)/Lib/Newtonsoft.Json.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="assets\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="modinfo.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

View file

@ -0,0 +1,26 @@
using Vintagestory.API.Client;
using Vintagestory.API.Common;
using Vintagestory.API.Config;
using Vintagestory.API.Server;
namespace ModTemplate
{
public class ModTemplateModSystem : ModSystem
{
// Called on server and client
public override void Start(ICoreAPI api)
{
api.Logger.Notification("Hello from template mod: " + Lang.Get("mymodid:hello"));
}
public override void StartServerSide(ICoreServerAPI api)
{
api.Logger.Notification("Hello from template mod server side");
}
public override void StartClientSide(ICoreClientAPI api)
{
api.Logger.Notification("Hello from template mod client side");
}
}
}

View file

@ -0,0 +1,16 @@
{
"profiles": {
"Client": {
"commandName": "Executable",
"executablePath": "$(VINTAGE_STORY)/Vintagestory.exe",
"commandLineArgs": "--tracelog --addModPath \"$(ProjectDir)/bin/$(Configuration)/Mods\"",
"workingDirectory": "$(VINTAGE_STORY)"
},
"Server": {
"commandName": "Executable",
"executablePath": "$(VINTAGE_STORY)/VintagestoryServer.exe",
"commandLineArgs": "--tracelog --addModPath \"$(ProjectDir)/bin/$(Configuration)/Mods\"",
"workingDirectory": "$(VINTAGE_STORY)"
}
}
}

View file

@ -0,0 +1,3 @@
{
"hello": "hello world!"
}

13
ModTemplate/modinfo.json Normal file
View file

@ -0,0 +1,13 @@
{
"type": "code",
"modid": "mymodid",
"name": "My Template Mod",
"authors": [
"Unknown"
],
"description": "To be added",
"version": "1.0.0",
"dependencies": {
"game": ""
}
}