Callahanjob Posted August 20, 2022 Share Posted August 20, 2022 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 More sharing options...
Callahanjob Posted August 20, 2022 Author Share Posted August 20, 2022 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 Link to comment Share on other sites More sharing options...
arramus Posted August 20, 2022 Share Posted August 20, 2022 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. 1 Link to comment Share on other sites More sharing options...
Callahanjob Posted August 20, 2022 Author Share Posted August 20, 2022 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 Link to comment Share on other sites More sharing options...
BFT2020 Posted August 21, 2022 Share Posted August 21, 2022 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now