Project Zomboid

Project Zomboid

345 ratings
Craft Sheets!
2
2
   
Award
Favorite
Favorited
Unfavorite
Tags: Mod
File Size
Posted
Updated
48.256 KB
6 Dec, 2020 @ 2:37am
6 Dec, 2020 @ 2:45am
3 Change Notes ( view )

Subscribe to download
Craft Sheets!

Description
I made this little mod to add a recipe to make sheets from ripped sheets, because why wouldn't you be able to?

Gone are the days of raiding homes to steal curtains and bed sheets, for you have mastered the art of using a needle and 2 units of either thread, twine or fishing line to make them yourself from the clothing of the deceased, because the desperate survivor can make anything work if he puts his mind to it!

While not required, if you want to have an easier time getting thread to make the sheets, I can highly recommend using the mod Thread and Twine found here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2143039189

This mod was made for and tested in build 41, so I am not sure if it will work in build 40.

This is my first real attempt at modding Zomboid, so feedback is welcomed and appreciated!

Workshop ID: 2310740542
Mod ID: SheetCrafting
25 Comments
intnox 6 Jun, 2024 @ 9:35am 
------- custom made for tailoring ---------

function Recipe.OnGiveXP.Tailoring10(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Tailoring, 10);
end

-- On recipe add this

OnGiveXP:Recipe.OnGiveXP.Tailoring10,

-- to add 10 exp for what your recipe is doing to tailoring
intnox 6 Jun, 2024 @ 9:34am 
function Recipe.OnGiveXP.Blacksmith25(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Blacksmith, 25);
end

-- on recipe add for example to invoke the one that gives 10 MetalWelding

OnGiveXP:Recipe.OnGiveXP.MetalWelding10,

-- to call that existing fuction.
intnox 6 Jun, 2024 @ 9:34am 
function Recipe.OnGiveXP.MetalWelding10(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.MetalWelding, 10);
end

function Recipe.OnGiveXP.MetalWelding15(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.MetalWelding, 15);
end

function Recipe.OnGiveXP.MetalWelding20(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.MetalWelding, 20);
end

function Recipe.OnGiveXP.MetalWelding25(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.MetalWelding, 25);
end

function Recipe.OnGiveXP.Blacksmith10(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Blacksmith, 10);
end

function Recipe.OnGiveXP.Blacksmith15(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Blacksmith, 15);
end

function Recipe.OnGiveXP.Blacksmith20(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Blacksmith, 20);
end
intnox 6 Jun, 2024 @ 9:33am 
@meepmerp same happened to me, sharing some existing functions as of 41.78.

----------- these exist by default

function Recipe.OnGiveXP.DismantleElectronics(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Electricity, 2);
end

function Recipe.OnGiveXP.None(recipe, ingredients, result, player)
end

function Recipe.OnGiveXP.SawLogs(recipe, ingredients, result, player)
if player:getPerkLevel(Perks.Woodwork) <= 3 then
player:getXp():AddXP(Perks.Woodwork, 3);
else
player:getXp():AddXP(Perks.Woodwork, 1);
end
end

function Recipe.OnGiveXP.WoodWork5(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Woodwork, 5);
end

function Recipe.OnGiveXP.Cooking3(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Cooking, 3);
end

function Recipe.OnGiveXP.Cooking10(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Cooking, 10);
end
KoXz 20 May, 2024 @ 4:38am 
can't add this to multiplayer
KoXz 19 May, 2024 @ 7:47am 
update pls
Zefiruz 11 Jan, 2024 @ 12:10pm 
Mods que deberían ser vanilla.
Gato 9 Nov, 2023 @ 5:17pm 
When do you think you can update the mod? it would be awesome because of the possibilities.
meepmerp 29 Jul, 2023 @ 3:19am 
Hello, this modpage is a top google search result for OnGiveXP so if anyone else is here looking for answers, here's what you need:

Inside the recipe block next to the usual stuff like Result, Time, etc, add this:
"OnGiveXP:Recipe.OnGiveXP.YOURFUNCTIONNAMEHERE,"


Then create a .lua file with a custom name in media/lua/server in your mod folders. Inside put:

"require 'recipecode';

function Recipe.OnGiveXP.YOURFUNCTIONNAMEHERE(recipe, ingredients, result, player)
player:getXp():AddXP(Perks.Tailoring, 2);
end"

Adjust the number at the end to increase the exp amount.

Happy modding!
Shooterism  [author] 9 May, 2022 @ 1:38am 
MagicRam3n, sorry for the late response, I'll try to update the mod soon to add the changes Adam.Podstavka suggested, so I'll add that in as well (hopefully soon, it is a super simple mod, but life has been interesting).

And who knows, maybe I'll eventually make sheets be more of a resource rather than a simple tool to cover windows :p.