Instal Steam
login
|
bahasa
简体中文 (Tionghoa Sederhana)
繁體中文 (Tionghoa Tradisional)
日本語 (Bahasa Jepang)
한국어 (Bahasa Korea)
ไทย (Bahasa Thai)
Български (Bahasa Bulgaria)
Čeština (Bahasa Ceko)
Dansk (Bahasa Denmark)
Deutsch (Bahasa Jerman)
English (Bahasa Inggris)
Español - España (Bahasa Spanyol - Spanyol)
Español - Latinoamérica (Bahasa Spanyol - Amerika Latin)
Ελληνικά (Bahasa Yunani)
Français (Bahasa Prancis)
Italiano (Bahasa Italia)
Magyar (Bahasa Hungaria)
Nederlands (Bahasa Belanda)
Norsk (Bahasa Norwegia)
Polski (Bahasa Polandia)
Português (Portugis - Portugal)
Português-Brasil (Bahasa Portugis-Brasil)
Română (Bahasa Rumania)
Русский (Bahasa Rusia)
Suomi (Bahasa Finlandia)
Svenska (Bahasa Swedia)
Türkçe (Bahasa Turki)
Tiếng Việt (Bahasa Vietnam)
Українська (Bahasa Ukraina)
Laporkan kesalahan penerjemahan
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)
Add to / stack all option for thread.
And some way to make glue or wood glue
Would be the cherry on top for this mod, and the title even fits!
Also great mod mate.
Done.
Done.
Done.
Not sure why there'd be a compatibility problem with BetterBatteries.
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,
}