第42页:用便便种曼德拉草
展开四十二.用便便种曼德拉草
用记事本打开游戏目录\data\DLC0001\scripts\prefabs\poop.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function OnDeploy (inst, pt)
SpawnPrefab("mandrake").Transform:SetPosition(pt.x, pt.y, pt.z)
inst.components.stackable:Get():Remove()
end
inst:AddComponent("deployable")
inst.components.deployable.ondeploy = OnDeploy
即可用便便种曼德拉草,种一块曼德拉草田吧
更多相关内容请关注:饥荒专区
责任编辑:Shy夏夏