Project Zomboid

Project Zomboid

Burlap Tote
5 Comments
trashcanhands  [author] 30 Nov, 2023 @ 9:16am 
Oh, cool. I hated having to use a third-party mod for something so simple. Thanks.
Agitatio 30 Nov, 2023 @ 9:13am 
If you want it to be even more similar to Item Tweaker and make adding new item tweaks take less lines you can do:

local function TweakItem(Name, Property, Value)
local Item = ScriptManager.instance:getItem(Name)
if Item then
Item:DoParam(Property.." = "..Value)
end
end

TweakItem("Base.Tote","Icon","burlaptote")
Agitatio 30 Nov, 2023 @ 9:08am 
No, but you don't need to. You're changing the texture by directly replacing it. You can use that code to change any item script parameter though. Like making cosmetics weightless in you other mod.
trashcanhands  [author] 30 Nov, 2023 @ 9:02am 
@Agitatio
This will change the texture as well?
Agitatio 30 Nov, 2023 @ 8:42am 
No need for Item Tweaker.

local Item = ScriptManager.instance:getItem("Base.Tote")
if Item then
Item:DoParam("Icon = burlaptote")
end