addprefabpostinit --Milkable function make_milkable(inst) inst:AddComponent("trader") inst.components.trader:SetAcceptTest(trade_test) inst.components.trader.onaccept = trade_fn inst.components.trader:Enable() end AddPrefabPostInit("beefalo", make_milkable) --Milkable --Milkable part 2 addprefabpostinit How to dowload it? addprefabpostinit function trade_test(inst, giver, item) if inst.components.sleeper:IsAsleep() then return false elseif item.components.tradable and item:HasTag("MILKBUCKET") then return true else return false end end addprefabpostinit How to use it? addprefabpostinit function trade_fn(inst, giver, item) if giver and giver.components.inventory then giver.components.inventory:GiveItem("red_cap") end function milktag(inst) inst:AddTag("MILKBUCKET") end addprefabpostinit How to get it? addprefabpostinit addprefabpostinit