我不清楚您想要的具体代码是什么,但是在饥荒游戏中,便便桶的代码应该是:
local function fn(Sim)
local inst = CreateEntity()
inst.entity:AddTransform()
inst.entity:AddAnimState()
inst.entity:AddSoundEmitter()
inst.entity:AddNetwork()
MakeInventoryPhysics(inst)
inst.AnimState:SetBank("poo")
inst.AnimState:SetBuild("poo_build")
inst.AnimState:PlayAnimation("idle")
inst:AddComponent("inspectable")
inst:AddComponent("inventoryitem")
inst.components.inventoryitem.imagename = "poo"
inst.components.inventoryitem.atlasname = "images/inventoryimages.xml"
inst:AddComponent("stackable")
inst.components.stackable.maxsize = TUNING.STACK_SIZE_SMALLITEM
inst:AddComponent("edible")
inst.components.edible.foodtype = "ELEMENTAL"
inst.components.edible.healthvalue = -TUNING.HEALING_TINY
inst.components.edible.hungervalue = TUNING.CALORIES_TINY
inst.components.edible.sanityvalue = -TUNING.SANITY_TINY
inst:AddComponent("perishable")
inst.components.perishable:SetPerishTime(TUNING.PERISH_MED)
inst.components.perishable:StartPerishing()
inst.components.perishable.onperishreplacement = "spoiled_food"
inst:AddComponent("bait")
inst:AddTag("cattoy")
inst:AddTag("catfood")
inst:AddComponent("tradable")
MakeHauntableLaunchAndPerish(inst)
return inst
end
return Prefab("common/inventory/poop", fn, assets)
饥荒便便桶代码 扩展
答案:
暂无饥荒便便桶代码。
原因:
饥荒便便桶是一个mod,其代码需要由开发者编写。
目前没有公开的饥荒便便桶代码。
内容延伸:
饥荒便便桶是一个非常实用的mod,可以让玩家在游戏中解决排泄问题。
但是,由于其涉及到游戏内部的机制,需要专业的编程知识才能编写出可用的代码。
如果有需要,可以尝试联系相关的mod开发者或者寻找其他类似的mod。
饥荒便便桶代码 扩展
工具/武器:
minotaurhorn(远古守护者角) deerclops_eyeball(巨鹿眼球) lightninggoathorn(闪电羊角) glommerwings(格罗门翅膀) glommerflower(格罗门花) glommerfuel(格罗门燃料) livinglog(活木头) nightmarefuel(噩梦燃料) gears(齿轮) transistor(晶体管) marble(大理石) boneshard(硬骨头) ice(冰) poop(便便) guano(鸟粪)
dragon_scales(蜻蜓鳞片) goose_feather(鹿鸭羽毛) coontail(浣熊尾巴) bearger_fur(熊皮)
axe(斧子)
goldenaxe(黄金斧头) lucy(露西斧子) hammer(锤子) pickaxe(镐)
goldenpickaxe(黄金镐) shovel(铲子)
goldenshovel(黄金铲子) pitchfork(草叉) razor(剃刀) bugnet(捕虫网) fishingrod(鱼竿)
multitool_axe_pickaxe(多功能工具) cane(行走手杖) trap(陷阱) birdtrap(鸟陷阱) trap_teeth(牙齿陷阱)
本文《饥荒便便桶代码 饥荒全地图代码》希望能帮助到你!