Jump to content

How to restrict certain items from being crafted?


Go to solution Solved by Bartermarlin,

Recommended Posts

Posted
5 hours ago, Bartermarlin said:

Is there a way to prevent certain items from being crafted? Say I have a mod downloaded for a server and I don't want half the items it adds to be crafted, how can I make that happen?

The easiest way would be to ask the mod author to add a config which allows you to enable or disable certain features. That could be a big ask, depending on the authors knowledge or interests. There's the chance that the mod already offers this option. However, that feature would most likely be mentioned on the mod page.

The better way would be to create a server tweak mod, which specifically targets those blocks or items you don't want to be crafted.

How you go about it, depends entirely on your goals.

  1. Do you want to disable the crafting? (Block/item still exists, could be acquired via creative mode/console commands)
  2. Do you want the block/item entirely gone?  (No handbook entry, etc)
  • Solution
Posted
12 hours ago, Brady_The said:

The easiest way would be to ask the mod author to add a config which allows you to enable or disable certain features. That could be a big ask, depending on the authors knowledge or interests. There's the chance that the mod already offers this option. However, that feature would most likely be mentioned on the mod page.

The better way would be to create a server tweak mod, which specifically targets those blocks or items you don't want to be crafted.

How you go about it, depends entirely on your goals.

  1. Do you want to disable the crafting? (Block/item still exists, could be acquired via creative mode/console commands)
  2. Do you want the block/item entirely gone?  (No handbook entry, etc)

I just want to disable the crafting. But I will look into creating a server tweak mod. Thank you 

Posted (edited)
18 minutes ago, Bartermarlin said:

I just want to disable the crafting. But I will look into creating a server tweak mod. Thank you 

Making a mod is the best future-proof solution to this. Technically you could simply delete the recipes from the mod but you would have to do that every time the mod is updated. Or you want to make something craftable and now have to fiddle with restoring files.

This tool should make the process much easier: https://mods.vintagestory.at/patchcreatetool

What you essentially want to do is to disable the recipes. Open up the recipe files and add an "enabled": false, to the recipe you want to disable. Example:

This would disable recipe 1 and 2 but would keep recipe 3 enabled.

image.thumb.png.8fe7983b5eb98c0bcded5639c7a6499b.png

Edited by Brady_The
×
×
  • 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.