Page 1 of 1
is free crafting possible?
Posted: Thu Oct 30, 2014 9:57 pm
by trex0113
Is it possible to make a Mod that you allow to craft everything for free. That mean you need no ressources in your inventory to craft items in the crafting window.
Is This Mod possible and when yes how does it work?
mfg trex
Re: is free crafting possible?
Posted: Thu Oct 30, 2014 10:06 pm
by cartmen180
Yes this is possible, just remove the ingredients for the crafting recipes.
Re: is free crafting possible?
Posted: Fri Oct 31, 2014 12:01 am
by JamesOFarrell
This will be easier in 0.11 as they have added extra loading steps for prototypes so mods can safely modify other mod prototypes
Re: is free crafting possible?
Posted: Sat Nov 01, 2014 11:51 am
by trex0113
hm, is there a faster way to do this or do I have to individually override all recipes. I want to create a Mod like the Creative Mode in Minecraft. But when i have to change all recipes of vanilla and eventually dytech it's a complex work.
Re: is free crafting possible?
Posted: Sat Nov 01, 2014 4:34 pm
by cartmen180
there already is a mod similar to that. You can unlock all recipes, select items from a list to your inventory, keep the sun up forever.
It even has its own subforum. look for test-mode
Re: is free crafting possible?
Posted: Mon Nov 03, 2014 11:47 am
by bobingabout
Try something like.... and this is off the top of my head here so might not be right...
for index, recipe in pairs(data.raw.recipe) do
recipe.ingredients = {}
end
This should Enumerate (or Iterate, depending on programing language) through all instances of recipe, and set the ingredients tag to a list with no entries.
Just have those 3 lines in your data-final-fixes.lua file, and that's pretty much the whole mod.
Re: is free crafting possible?
Posted: Tue Nov 04, 2014 11:04 pm
by trex0113
your genius, thanks for help. It works.
But i have it now in the "prototypes/base-edit.recipe.lua " file.
when i put the script in the data-final-fixes.lua nothing happend.
This works with the vanilla repices but the recipes of the mods are untouched. How can i fix this?