Search the Community
Showing results for tags 'recipe modding'.
-
Hi everyone. I spent two nights trying to solve a problem with my mod. I wanna create a bag that can be filled with money. I was able to write part of money taking out code, but filling is too hard for me. At the bottom I paste my current code. At the moment, when I try to fill the bag by one unit (500$ is 1 unit; 5000$ is max), it is immediately filled completely. Please help who understands [LUA] media/lua/server/moneybag.lua function Recipe.OnCreate.moneyin(items, result, player) for i=0, items:size()-1 do if items:get(i):getType() == "PERCOM.moneybag" then if items:get(i):getUsedDelta() == 0 then result:setUsedDelta(0.1) else result:setUsedDelta(items:get(i):getUsedDelta() + 0.1) end end end end [SCRIPT] media/scripts/PERCOM_recipes.txt module PERCOM { imports { Base } item moneybag { Weight = 1.1, Type = Drainable, UseWhileEquipped = FALSE, DisappearOnUse = FALSE, UseDelta = 0.1, DisplayName = Moneybag, Icon = Moneybag, WeightEmpty = 0.1, } recipe put500dollars { destroy moneybag, Money = 500, Result: moneybag, Time: 1, Category: Money, CanBeDoneFromFloor: TRUE, OnCreate: Recipe.OnCreate.moneyin, } recipe take500dollars { PERCOM.moneybag = 1, Result: Money = 500, Time: 1, Category: Money, CanBeDoneFromFloor: TRUE, } }
-
Good afternoon. I want to create a Recipe that allows you, if you have the required goods, to craft your own Sledgehammer (among other things). However, I am unable to find any of the Items, Recipes, or documentation of all the Vanilla rendition things you can gather in the game. Where, in the Steam Launcher Program's PZ folder, can I find what I need. Thank you for any assistance you may render. Warm regards and warm bodies, -TURTLESHROOM
- 1 reply
-
- iwbms 41
- items modding
-
(and 1 more)
Tagged with:
-
Greetings, I am currently using several mods, namely Hydrocraft and Desperate Crafting, but there are a few minor issues with the recipes: 1. Desperate Crafting allows you to open canned food with a knife/saw, but only vanilla cans. 2. You can scrap emptied tin cans for scrap metal, but only from emptied vanilla food cans, emptied HC cans become a different kind of tin can unrecognized in Desperate Crafting's recipes. I am very inexperienced with modding, but I managed to add an Open Canned Apple(hydrocraft food can) recipe to the game via the DesperateCrafting.txt file, which appears in-game without an icon, and requires only a saw/knife, and produces nothing. I would like to add the option to open all HC canned food with a knife/saw, and the option to scrap HC emptied cans. I think I need to say can six more times and I'm done. CANCANCANCANCANCAN. Done.
- 1 reply
-
- hydrocraft
- desperate crafting
-
(and 1 more)
Tagged with: