Don't Starve Together

Don't Starve Together

桩木重生 / Tree cycle
23 Comments
ZGY 6 hours ago 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
ZGY 6 hours ago 
@麦田的稻草人
-- 为“完全正常的树”添加可再生功能
AddPrefabPostInit("livingtree", function(inst) -- 完全正常的树
if not TheWorld.ismastersim then
return inst
end
local oldfn = inst.components.workable.onfinish
inst.components.workable.onfinish = function(inst, chopper)
oldfn(inst, chopper)
inst:DoTaskInTime(10, function()
if inst then
local x, y, z = inst.Transform:GetWorldPosition()
if TheWorld.Map:IsFarmableSoilAtPoint(x, y, z) and TheWorld.components.farming_manager ~= nil then
SpawnPrefab("sand_puff_large_front").Transform:SetPosition(inst.Transform:GetWorldPosition())
SpawnPrefab("farm_plant_happy").Transform:SetPosition(inst.Transform:GetWorldPosition())
SpawnPrefab("livingtree_sapling").Transform:SetPosition(inst.Transform:GetWorldPosition())
inst:Remove()
end
end
end)
end
end)
BigBigMeow 14 Jul @ 4:49am 
非常好,懒狗专属
󰀰白令󰀰  [author] 17 Apr @ 5:50am 
@麦田里的麦草人 订阅白令再锻,这个功能被整合了,更新也是在白令再锻中更新
麦田里的麦草人 15 Apr @ 10:51am 
请问大佬能增加完全正常的树吗,想要种植活木树,谢谢大佬!
喜啼宝马 5 Jan @ 11:28pm 
很奇怪,重击者会摧毁部分树桩
Just a weeb duck 6 Nov, 2024 @ 2:16am 
你能让异国情调的树在这个模组上发挥作用吗?
󰀰白令󰀰  [author] 5 Nov, 2024 @ 5:14pm 
@蛇皮王Maste 可以,但目前没有兼容海难树种
蛇皮王Maste 5 Nov, 2024 @ 11:25am 
海难可以用吗?
菇东 2 Aug, 2024 @ 6:09pm 
哇好方便的模组,但是这样会不会刷出树精啊?
Ashnal 6 Jul, 2024 @ 8:33am 
[00:56:37]: Stale Component Reference: GUID 104896, ../mods/workshop-3163270064/modmain.lua:13
[00:56:37]: [string "scripts/components/map.lua"]:172: calling 'GetTileAtPoint' on bad self (number expected, got nil)
LUA ERROR stack traceback:
scripts/components/map.lua:172 in (method) IsFarmableSoilAtPoint (Lua) <171-173>
self = Map (0000000007D41E40)
x = nil
y = nil
z = nil
../mods/workshop-3163270064/modmain.lua:14 in (field) fn (Lua) <11-21>
x = nil
y = nil
z = nil
scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216>
self =
running = table: 000000005CBD6450
waitingfortick = table: 000000005CBD6A90
hibernating = table: 000000005CBD6C70
tasks = table: 000000005CBD6BD0
waking = table: 00000000763CBF40
attime = table: 000000005CBD6540
tick = 83645
k = PERIODIC 104896: 10.000000
v = true
already_dead = false
󰀕Dispat1zm󰀕 18 Jun, 2024 @ 8:44pm 
麦克斯韦的影子仆人会挖出这些树桩吗?
德丽莎 13 May, 2024 @ 10:02am 
麦斯威尔的工具影会铲掉树根吗
死胖的树袋熊329 11 May, 2024 @ 7:30pm 
这个会和取消树木循环的MOD冲突吗?
Aliante 5 May, 2024 @ 4:42am 
他的意思是那个坑怎么去除
󰀰白令󰀰  [author] 23 Feb, 2024 @ 12:42am 
@MonsterEmotion 把种子种上啊
SwordNewNew 23 Feb, 2024 @ 12:27am 
怎么在耕地上面种树?
NebulaKKK 20 Feb, 2024 @ 7:43pm 
不会的,重击者只造成一次冲击,会留下树根。如果要清理树根就再开一次。
󰀰白令󰀰  [author] 20 Feb, 2024 @ 6:15am 
@NebulaKKK 理石留根里有段代码就是专门为了兼容重击者写的,不过树桩我没试过,不会连带树桩一块摧毁吗?
NebulaKKK 20 Feb, 2024 @ 5:24am 
重击者+理石留根+桩木重生=自动化饥荒
亭瞳 18 Feb, 2024 @ 10:37pm 
可以,这下可以批发码头了:steamthumbsup:
󰀰白令󰀰  [author] 18 Feb, 2024 @ 5:16pm 
@停云 其实不会消耗任何养料,这么描述只是显得合理点罢了
亭瞳 18 Feb, 2024 @ 4:43pm 
各种树桩消耗的养分各自是多少,如果养分不足会有什么影响