Project Zomboid

Project Zomboid

BasicCrafting
 Chủ đề này đã được ghim, thế nên nó có thể quan trọng
ekstasyfresh  [nhà phát triển] 9 Thg10, 2021 @ 10:42pm
Suggestions
If you have any suggestions, then please post them in here. Thank you.
< >
Đang hiển thị 1-10 trong 10 bình luận
The ability to craft thread seems kind of moot since the chance to get thread form ripping clothing scales heavily with tailoring skill
Adamos 21 Thg01, 2022 @ 3:11pm 
I would add option to use chipped stones instead of scissors - with much longer times of course..

and for needle it would be great to be able to create a makeshift needle from a bone - fish or bird ones possibly.

(for both resulting good quality could be worse if possible)
de_nutz 29 Thg01, 2022 @ 7:40am 
a sack recipe would be nice since emptying sand and gravel is very time consuming.

Add to / stack all option for thread.
Lần sửa cuối bởi de_nutz; 29 Thg01, 2022 @ 7:55am
RudyTheNinja 20 Thg05, 2022 @ 11:37pm 
Suggestions
Ripped sheets and glue for improve tape
And some way to make glue or wood glue

Would be the cherry on top for this mod, and the title even fits!
Lockdown 26 Thg05, 2022 @ 1:09pm 
The ability to craft needles

Also great mod mate.
Lần sửa cuối bởi Lockdown; 26 Thg05, 2022 @ 1:09pm
Spyro_Dragonite 22 Thg06, 2023 @ 12:13am 
makeshift nails? scrap metal + idk... a hammer = 1-5 nails?
Can Basic Crafting be compatible with BetterBatteries?, There is a bug where i can't insert batteries to modded hand crank flashlights but it is very compatible with the flaslight on belt
ekstasyfresh  [nhà phát triển] 29 Thg10, 2024 @ 7:13am 
Nguyên văn bởi Adamos:
...
and for needle it would be great to be able to create a makeshift needle from a bone - fish ...

Done.

Nguyên văn bởi de_nutz:
a sack recipe would be nice since emptying sand and gravel is very time consuming.

Add to / stack all option for thread.

Done.

Nguyên văn bởi Lockdown:
The ability to craft needles

Also great mod mate.

Done.
Lần sửa cuối bởi ekstasyfresh; 29 Thg10, 2024 @ 7:15am
ekstasyfresh  [nhà phát triển] 29 Thg10, 2024 @ 7:14am 
Nguyên văn bởi Zomboidancezaczac:
Can Basic Crafting be compatible with BetterBatteries?, There is a bug where i can't insert batteries to modded hand crank flashlights but it is very compatible with the flaslight on belt

Not sure why there'd be a compatibility problem with BetterBatteries.
Maybe you could add the ability to craft Wooden Hammers? I'm missing that rn :)

Edit: here's the code for the lua and the recipe for the txt, based on my impressions and on the Craft Spear vanilla recipe, and as a bonus and since it's a needed materal, I've added a simple recipe for making Wood Glue. Feel free to modify it as you like :D

BasicCrafting_RecipeCode.lua

-- XP Functions
function Give3WoodworkXP(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Woodwork, 3);
end

-- Make Wooden Mallet Logic
-- ----------------------------------

function MakeWoodenMallet_OnCreate(items, result, player, selectedItem)
for i = 0, items:size() - 1 do
local item = items:get(i)

if item and item.getType then
local itemType = item:getType()

-- Adjust condition based on knife type. If it's a Sharped Stone, remove it
if itemType == "SharpedStone" then
player:getInventory():DoRemoveItem(item)
else
if itemType == "FlintKnife" then
item:setCondition(item:getCondition() - math.ceil(item:getConditionMax() * 0.5)) -- Use 50%
elseif itemType == "KitchenKnife" then
item:setCondition(item:getCondition() - math.ceil(item:getConditionMax() * 0.3)) -- Use 30%
elseif itemType == "MeatCleaver" then
item:setCondition(item:getCondition() - math.ceil(item:getConditionMax() * 0.2)) -- Use 20%
elseif itemType == "HuntingKnife" then
item:setCondition(item:getCondition() - math.ceil(item:getConditionMax() * 0.15)) -- Use 15%
elseif itemType == "Machete" then
item:setCondition(item:getCondition() - math.ceil(item:getConditionMax() * 0.1)) -- Use 10%
-- Else for any other possible weapons in the SharpKnife item type (including modded ones)
else
item:setCondition(item:getCondition() - math.ceil(item:getConditionMax() * 0.1)) -- Use 10%
end
end
end
end


BasicCrafting.txt

recipe Make Wood Glue
{
Water=2,
Glue=10,

Result:Woodglue,
Time:120,
Category:Survivalist,
}

recipe Make Wooden Mallet
{
keep [Recipe.GetItemTypes.SharpKnife]/SharpedStone/MeatCleaver,
keep Saw/GardenSaw,
Handle/WoodenStick,
Plank,
Woodglue,

Result:WoodenMallet,
OnGiveXP:Give3WoodworkXP,
SkillRequired:Woodwork=3,
Time:120.0,
OnCreate:MakeWoodenMallet_OnCreate,
Category:Survivalist,
}
Lần sửa cuối bởi SieghartCL; 20 Thg01 @ 1:46pm
< >
Đang hiển thị 1-10 trong 10 bình luận
Mỗi trang: 1530 50