Don't Starve Together

Don't Starve Together

59 ratings
Salty Salt Lick
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
30.373 KB
Apr 16, 2020 @ 1:49pm
Aug 27, 2021 @ 11:14am
5 Change Notes ( view )

Subscribe to download
Salty Salt Lick

Description
Refilling salt lick with salt crystal. Reasonable.


Configuration
- Recipe of salt lick (Content some special preset, for mods that adjust the durability of salt lick to infinity. Choose as you like!)
- Value per salt crystal refilled


The main code was not by me. Original Mod



Excuse my poor English
17 Comments
979032829 Jan 23, 2023 @ 12:32am 
打了模组之后舔盐器放不下去什么问题
- Maples Era's Cronología - Jan 6, 2022 @ 4:11am 
温蒂表示盐是什么烂大街的东西233
idyllic_bean  [author] Aug 27, 2021 @ 11:18am 
@LittleKid 已新增原版硝石配方的设置,同时也可以填充盐晶✓
庞皮莱姆 Aug 25, 2021 @ 5:09am 
我只想用盐填装,但是制作第一个盐块还是想用硝石,好像不能这么设置。
禁用用盐制作盐块之后,就没法填充了
-._- Jun 13, 2021 @ 8:30pm 
我怎么感觉盐比较贵。。。
SirFancyFingers Aug 15, 2020 @ 1:09pm 
This needs to exist in the base game
idyllic_bean  [author] May 11, 2020 @ 10:55pm 
@Xave Johnson Oh Nice. REALLY thank you and your code again :D
Xave Johnson May 11, 2020 @ 2:14am 
Hey I was just notified that my mod for the salt lick that yours is based on has an error. I fixed it, you need to fix it as well. Animals did not notice a saltlick if it completly broke, and is filled up again. What you need to do is add a new funciton:

local function AlertNearbyCritters(inst)
local x,y,z = inst.Transform:GetWorldPosition()
local ents = GLOBAL.TheSim:FindEntities(x,y,z, GLOBAL.TUNING.SALTLICK_CHECK_DIST, { "saltlicker" }, { "INLIMBO" })
for i,ent in ipairs(ents) do
ent:PushEvent("saltlick_placed", { inst = inst })
end
end

and to the onrefill function:


inst:AddTag("saltlick")
AlertNearbyCritters(inst)
Patter May 8, 2020 @ 4:28pm 
比起硝石,我更想省下我的盐……
嘻嘻哈哈虎 May 5, 2020 @ 2:12am 
真的舍得用盐来补充吗,家里的盐箱都是用建造护符做的,你让我用盐来喂牛!!!!