• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Remove Mod items from in game crafting menu

New to server set up. server is up and stable. Some of the mods I've added have items that I do not want players that are connected to even see in the crafting menu and having trouble figuring out how to remove them. I've played around with the recipes and while I can make the resource and crafting times ridiculous, nothing I'm trying is hiding them. While I could just delete the recipes entirely, I do want them available to admins or the ability to turn them back on/show in craft tables later

 
Nevermind, figured it out, just deleted the items in the recipes xml. Generates an error entry on server startup but server loads fine, no errors client side and items are removed from craft menu but available in admin/creative

 
For the future, here is an alternative.

'Comment out' the recipes so they are easy to restore at a later date. Commenting out is a little xml code that instructs the game to skip the code contained within it, but allow it to remain for potential future use. Here is an example in the TFP recipes.xml for a farm tool no longer used.

<!--
<recipe name="meleeToolFarmT1IronHoe" count="1" tags="learnable,perkLivingOffTheLand">
    <ingredient name="resourceForgedIron" count="16"/>
    <ingredient name="resourceWood" count="10"/>
    <ingredient name="resourceLeather" count="2"/>
    <ingredient name="resourceDuctTape" count="2"/>
</recipe>-->

Adding <!-- at the start and --> at the end will allow it to be skipped.

 
ahh, didnt even think to just comment them out. Thank you. I made a backup copy of the recipes file before I deleted the entries

 
Another option is to have a modlet that removes the recipes when the game is loaded up.  Then when you remove the modlet, the recipes return.  That way you don't have to turn code into comments.  Also, if updates are pushed out, the original file is not rewritten.

 
Back
Top