Jump to content

IAmZeWolf

Vintarian
  • Posts

    2
  • Joined

  • Last visited

Posts posted by IAmZeWolf

  1. 7 hours ago, Writhe said:

    Dead simple:

    
    
    {
    	"ingredientPattern": "SSS	SSS	SSS",
    	"ingredients": {
    		"S": { 
    			"type": "item", 
    			"code": "stone-*", 
    			"name": "rock", 
    				"allowedVariants": [
    									"andesite", "chalk", "chert", "conglomerate", "limestone", "claystone", "granite", "sandstone", "shale", "basalt",
    									"peridotite", "phyllite", "slate", "bauxite", "greenmarble", "whitemarble", "redmarble", "obsidian", "suevite"
    									]
    			}
    	},
    	"width": 3,
    	"height": 3,
    	"output": { "type": "block", "code": "rock-{rock}", "quantity": 1 }
    }

    Will let you craft the source rock of every stone except meteoric iron. 

    "ingredientPattern" is the shape you make in the grid, in this case you just fill every slot with one type of stone.  "Ingredients" is the ingredients, obviously and "code" in there is the specific ingredient, in this case "stone-*".  The * is a wildcard, allowing it to use any of the "allowedVariants" listed, and all stones are technically just variations on one core stone item which makes things like this easy, and the same goes for rock blocks. To make a recipe with multiple ingredients you'd add another letter entry, basically making something like the S entry under another letter, with a different item or block.  For example, adding "C" : { "type": "item", "code": "candle" }, then replacing an S or two in the pattern would let you create rock blocks with stones and candles, somehow.

    "width" and "height" are the size of the grid-pattern, and go with the "ingredientPattern" above.  As an example, you could change the width and height to 2, then use a pattern like this: "SS  SS" and you'd get a recipe that only uses four stones for the same output.

    "output" is what the recipe makes, in this case the output is "rock-{rock}", which means that you get a solid rock block (the "rock" bit) of the type of stone used to make it (the {rock} bit).  You could have it make a specific rock regardless of the stone used by changing it to, for example "rock-basalt" to get nothing but basalt rocks.  "quantity" is technically unnecessary when you just output one thing, 

    To make this into an actual mod, assuming you're using windows, you would go to /Users/(yourusername)/AppData/Roaming/VintagestoryData/Mods and create a new folder for your mod, rockmod for example, then inside that folder you'd make some new folders like this: rockmod>assets>game>recipes>grid, then you save the recipe above as a text file named rock.json (the .json is important, make sure that it's just .json and not .json.txt or anything like that. You might need to make file extensions visible in the control panel (again, assuming windows) if you can't see them) Theeen go back to your rockmod folder and make a new text file called modinfo.json and fill it with this:

    
    
    {
      "type": "content",
      "modid": "rockmod",
      "name": "Rock Mod",
      "author": "",
      "description": "Make solid rock blocks with small stones!",
      "version": "1.0.0",
      "dependency": {}
    }

    Alternatively, you could just go to the base game folder and drop the recipe file into the assets/survival/recipes/grid folder, then go back out to the base folder, and open ModMaker.exe, which will automagically detect changes and additions to base game assets and turn them into a mod for you.

    And then you have a mod! Go into the game's mod manager and check that it's enabled, then you should be able to make rock blocks out of stones.

    Edit: Hm. It mangled the formatting of the code up there, a bit.  Should still work fine.

    Thank you very much for the detailed explanation. I will give it a go and let you know if I managed to make it work ;)
    I highly appreciate it man, also if I manage to get it to work I will give you full credits man. Once again thank you so much.

     

    Edit:

    I followed the steps and actually managed to get it to work 😮
    I've added you as the author seeing as all I had to do was jack shit. Even though it's only going to be used for private use I will still let anyone that plays on my server know that you made it man thank you so so much!

  2. Hello there modders,

    I've never made a mod for a game in my life and I'd like to make a mod that would turn these sandstone stones: 

    Spoiler

    image.png.75a74f146b6a58909ec233e64b1d2203.png

     

    Into: 

    Spoiler

    image.png.de40e1f5fe45f9c928c06ce86f752613.png

    I would also like to make this for every single block possible so it's not such a pain in the ass, but once I figure out how to do 1 type I could probably do the rest as well.

    This would just be a mod for me and my friends but I have absolutely no clue where to start 🤣

    Can someone please teach me? 🤣

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.