Don't Starve Together

Don't Starve Together

2,047 ratings
Loot Pump
33
20
2
14
3
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
354.393 KB
24 Aug, 2020 @ 11:02am
27 Mar, 2021 @ 7:26am
11 Change Notes ( view )

Subscribe to download
Loot Pump

Description
Catches items from the ground and throw them in containers. (Autoloot)

Recipe: 1 Gears, 1 Whirly Fan and 2 Electrical Doodads.

The Loot Pump always priorise to launch the items on containers that already has that item inside.

There are two placement rings, the inner ring defines the looting region and the outer ring defines the container region.
NOTE: If the option "Two Zones" is activated, containers in the inner ring will not be considered by the Loot Pump.

If any empty container is found in the range, the Loot Pump will throw the loots in a random container in the range, which causes the item falls on ground. This can be intentionally used to make transport lines from multiple Loot Pumps.

The range, looting speed and the sound effects can be configured.

#Changelog:


v1.10:
-- Added an option to items being looted go through walls.

v1.09:
-- Added extra verification steps

v1.08:
-- Removed Pumpkin Lantern removed from the "look for items" list.
-- Targets with the tag "birds", "trap", "canbetrapped" and "smallcreature" will not be looted anymore.
-- Now the Loot Pump double-check the item "existence". This should reduce the incompatibility with mod that combine stacks.

v1.07:
-- Removed Life Giving Amulet from the "look for items" list. (Thanks for the suggestion @greeking13)
-- Added the option "Loot Equipment" (default: "Yes") on the mod configuration menu.
-- -- If this option is set to "No" the Loot Pump will not loot equipable items.

v1.06:
-- Removed Celestial Orb from the "look for items" list.

v1.05:
-- Removed Tooth Trap, Bee Mine and Bramble Trap from the "look for items" list.

v1.04:
-- Removed Thermal Stone, Glommer's Flower, Trap, Bird Trap, Tallbird Egg and Red Lantern from the "look for items" list.

v1.03:
-- Improved the container priority for the looting:
-- -- Now the priority is: Has a similar item > Will reduce the perish rate > Not full > Random;
-- Removed Woby, Chester and Hutch from the "look for containers" list;
-- Removed Lantern, Eyebone and Star-Sky from the "look for items" list.

[www.twitch.tv]
twitch.tv/gleenus
Popular Discussions View All (5)
17
4
13 Oct, 2020 @ 6:41am
中文翻译,Chinese Trans
Beethoven-此喵非彼喵
14
5 Feb, 2023 @ 1:49pm
Some suggestions and bugs
Tonycola
0
29 Apr, 2023 @ 11:00pm
有点容易冲突
沈城著名瓦匠
400 Comments
小兆蝉衣 21 hours ago 
--再续2
if not item.components.projectile then
item:AddComponent("projectile")
end
item.components.projectile:SetSpeed(LOOT_SPEED)
item.components.projectile:SetOnMissFn(ItemMiss)
item.components.projectile:SetOnHitFn(ItemHit)
item.components.projectile:SetHitDist(0.2)
item.components.projectile:Throw(container, inst, item)
if inst.isfiring==false then
inst.AnimState:PlayAnimation("aspiration")
end
end
end
end
end
小兆蝉衣 21 hours ago 
--续2只能发表1000个字符,2、剩下的部分只能分开发
local container
if LOOT_PUMP_TWOZN then
container=LookForContainers(inst, item, INNER_SCALE*OUTER_RANGE, OUTER_RANGE)
else
container=LookForContainers(inst, item, 0, OUTER_RANGE)
end
if container ~= nil then
item:AddTag("noclick")
item:AddTag("lootpump_oncatch")
item.loot_pump_oldphysics=item.Physics:GetCollisionMask()
if inst.loot_through_walls then
item.Physics:ClearCollisionMask()
item.Physics:CollidesWith(COLLISION.WORLD)
item.Physics:CollidesWith(COLLISION.SMALLOBSTACLES)
end
小兆蝉衣 21 hours ago 
2.local function DoUpdate(inst)
if inst:HasTag("burnt") then
return
end

if inst.components.machine.ison == true then

local item
if LOOT_PUMP_TWOZN then
item = LookForItems(inst, INNER_SCALE*OUTER_RANGE)
else
item = LookForItems(inst,OUTER_RANGE)
end
if item ~= nil then
小兆蝉衣 21 hours ago 
1.local ITEM_BLACKLIST = {
["lantern"]=true,
["chester_eyebone"]=true,
["hutch_fishbowl"]=true,
["heatrock"]=true,
["tallbirdegg"]=true,
["trap"]=true,
["birdtrap"]=true,
["glommerflower"]=true,
["redlantern"]=true,
["trap_teeth"]=true,
["beemine"]=true,
["trap_bramble"]=true,
["moonrockseed"]=true,
["amulet"]=true,
["storage_robot"]=true,
["pumpkin_lantern"]=true,
}
小兆蝉衣 21 hours ago 
我修改了一份,排除了瓦器人和一次拾去一整组的,但是我不会上传mod,我修改了这两个部分。有需要的可以自己对文件进行修改文件路径::steamapps\workshop\content\322330\2208128427\scripts\prefabs\loot_pump.lua
wherethesunnoshine 26 May @ 10:00am 
seems to work but please can you make it so Nautopilot won't be looted anymore?
also in case you haven't also make bull kelp not lootable otherwise it may cause a crash with a full chest.
EldVarg 8 May @ 1:25am 
Does this still works?
Compatible with Large Chest (HD) & Storeroom (New)?
1526406665 4 Mar @ 12:02am 
我回来了,将【loot_pump.lua】文件的这一行【aux=TUNING.PERISH_FRIDGE_MULT】改为【aux=tonumber(TUNING.PERISH_FRIDGE_MULT)】,即可解决问题
1526406665 3 Mar @ 10:23pm 
我用怪物肉喂鸟换蛋,直接崩溃,必定崩溃

错误代码:

[00:04:01]: [string "../mods/workshop-2208128427/scripts/prefabs..."]:232: attempt to compare string with number
LUA ERROR stack traceback:
../mods/workshop-2208128427/scripts/prefabs/loot_pump.lua:232 in (upvalue) LookForContainers (Lua) <183-255>
inst = 111872 - loot_pump (valid:true)
item = 128241 - bird_egg (valid:true)
inner_range = 0
outer_range = 15
pos = (511.83, 0.00, 539.18)
ent = table: 0000000023ED30D0
cnt = table: 0000000023ED21D0
perish_rate = 1
best_preserver = nil
aux = 0.2
k = 11
v = 110573 - icebox (valid:true)
Mio iris 8 Jan @ 5:37am 
tomato seed and corn seed not work