饥荒
96 个评价
[deprecated] Stone Slab Restock
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
99.132 KB
2022 年 3 月 10 日 下午 5:32
2023 年 5 月 7 日 上午 10:51
2 项改动说明 ( 查看 )
您需要 DLC 才能使用该物品。

订阅以下载
[deprecated] Stone Slab Restock

在 Leonidas IV 的 1 个合集中
Leonidas IV's Mods 🠔 See more mods!
42 件物品
描述


ㅤㅤㅤㅤㅤㅤㅤMake Stone Slabs restock their loot!

  • They will restock every 5-7 days, with an updated loot.

  • For work on old worlds, you need to first regenerate the stone slabs of the world with this code, in the console:

    for _, ent in pairs(Ents) do if ent.prefab == 'rock_flippable' then ent.components.pickable:Regen() end end

    Just copy and paste, hit enter and close the console with Ctrl + L. The console can be opened with the ' key by default.

Update: This mod is now officially implemented in the game. I will keep the mod in the workshop for other modders to use as a learning method. This mod will do nothing if enabled.



Search Tags: stone slab restock, refuel, regen, relics, hamlet, leonidas iv.
20 条留言
leafy loaf 2023 年 10 月 15 日 上午 8:23 
oh this sucks, i am not using the main branch for the game so my slabs are back to be one-time use only
Nevarek 2023 年 5 月 7 日 上午 10:56 
o7 thanks for everything
Leonidas IV  [作者] 2023 年 5 月 7 日 上午 10:51 
Update: This mod is now officially implemented in the game. I will keep the mod in the workshop for other modders to use as a learning method. This mod will do nothing if enabled.
bloopah 2023 年 4 月 27 日 下午 12:48 
this mod is obsolete as well, now
Leonidas IV  [作者] 2023 年 4 月 20 日 下午 12:11 
This crash is being caused by a mod called "Pickable Bug Fix", according to the ID mentioned in the log. It's an incompatibility between the two mods, and the solution is not available on my end.
dualInfinities 2023 年 4 月 20 日 上午 11:02 
always do a sanity check with whatever version of "if(<value> != null)" the language you're working with has, before doing your operations
dualInfinities 2023 年 4 月 20 日 上午 10:57 
I'm getting a crash about 'cycles_left' being a nil value, despite using the command. it was fine up until I jumped to the Palace island and built a second Slanty Shanty after getting the Keys To The Kingdom, oddly.

I think *these* are the relevant bits to the issue:
0:05:39]: scripts/mainfunctions.lua(961,1) ...orkshop-2925890760/scripts/rock_flippable_bugfix.lua:5: attempt to perform arithmetic on field 'cycles_left' (a nil value)
LUA ERROR stack traceback:
C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/../mods/workshop-2925890760/scripts/rock_flippable_bugfix.lua:5 in (field) getregentimefn (Lua) <2-10>
C:/Program Files (x86)/Steam/steamapps/common/dont_starve/data/../mods/workshop-2925890760/scripts/pickable_bugfix.lua:62 in (method) Pick (Lua) <20-75>
404_coffee.exe 2022 年 11 月 15 日 上午 7:10 
This is nice!
Leonidas IV  [作者] 2022 年 9 月 22 日 上午 9:56 
They don't. And no, normal boulders don't respawn.
Average_deadcells_fan 2022 年 9 月 22 日 上午 5:44 
do they also respawn with this mod?
idk why but i always had the feeling that normal boulders and such respawn