Jump to content

Remove Mod items from in game crafting menu


Recommended Posts

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

Link to comment
Share on other sites

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.

 

 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...