Copperman Posted March 29, 2022 Report Share Posted March 29, 2022 Hello, I started dipping into modding and have successfully followed the instructions in this tutorial to create a simple block you can grab in Creative. When I decided however to create my own mod, the block does not seem to appear in the Creative Inventory Menu and I just can't seem to figure out why. I have checked my code against working mods and they appear to be identical, I have also carefully re-written all of the json files from scratch with the same result. Obviously I am making some mistake Could someone turn me on to what I might be doing wrong? Attached is the mod. It is supposed to add a very rudimentary block called "Statue of Test" Statue Mod.zip Link to comment Share on other sites More sharing options...
Spear and Fang Posted March 29, 2022 Report Share Posted March 29, 2022 (edited) 5 hours ago, AgentKay said: Hello, I started dipping into modding and have successfully followed the instructions in this tutorial to create a simple block you can grab in Creative. When I decided however to create my own mod, the block does not seem to appear in the Creative Inventory Menu and I just can't seem to figure out why. I have checked my code against working mods and they appear to be identical, I have also carefully re-written all of the json files from scratch with the same result. Obviously I am making some mistake Could someone turn me on to what I might be doing wrong? Attached is the mod. It is supposed to add a very rudimentary block called "Statue of Test" Statue Mod.zip 6.49 kB · 2 downloads You just need to change a couple of folder names: 1. Since your modid (in modinfo.json) is "teststatue", the folder inside of assets should be the same. assets\teststatue 2. inside that teststatue folder, change blocktype to blocktypes. Naming of folders at that level must match an "AssetCategory" in the table listed herehttps://wiki.vintagestory.at/index.php?title=Modding:The_Asset_System FYI Inside of those base folders (i.e. blocktypes) there are no rules per se. Edited March 29, 2022 by Spear and Fang Link to comment Share on other sites More sharing options...
Copperman Posted March 29, 2022 Author Report Share Posted March 29, 2022 Hey thanks that worked! I've also noticed that if there's any incorrect code in the blocktype JSON this also causes the block to just not appear but this time it was what you were describing 1 Link to comment Share on other sites More sharing options...
Recommended Posts