Don't Starve Together

Don't Starve Together

Loot Pump
400 kommenttia
小兆蝉衣 12.7. klo 23.44 
--再续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
小兆蝉衣 12.7. klo 23.42 
--续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
小兆蝉衣 12.7. klo 23.40 
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
小兆蝉衣 12.7. klo 23.39 
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,
}
小兆蝉衣 12.7. klo 23.38 
我修改了一份,排除了瓦器人和一次拾去一整组的,但是我不会上传mod,我修改了这两个部分。有需要的可以自己对文件进行修改文件路径::steamapps\workshop\content\322330\2208128427\scripts\prefabs\loot_pump.lua
wherethesunnoshine 26.5. klo 10.00 
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.5. klo 1.25 
Does this still works?
Compatible with Large Chest (HD) & Storeroom (New)?
1526406665 4.3. klo 0.02 
我回来了,将【loot_pump.lua】文件的这一行【aux=TUNING.PERISH_FRIDGE_MULT】改为【aux=tonumber(TUNING.PERISH_FRIDGE_MULT)】,即可解决问题
1526406665 3.3. klo 22.23 
我用怪物肉喂鸟换蛋,直接崩溃,必定崩溃

错误代码:

[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.1. klo 5.37 
tomato seed and corn seed not work
Mio iris 8.1. klo 5.36 
Root Pump not work ice box
Varrgas 2.0 2.1. klo 14.30 
@nanananana
Learn how to use a mod, it work fine
an 23.12.2024 klo 14.05 
doesn't work
MEXAH 18.8.2024 klo 15.37 
It try to send my W.O.B.O.T. to nowhere, fix it please.
Username 4.7.2024 klo 7.40 
lol this animation is so funny i can sit and watch for dAySSS
Username 4.7.2024 klo 3.08 
Hey do you think you can add the Furnace to the Container Blacklist
Droider 24.2.2024 klo 13.26 
no longer able to config
憨崽可乐 21.12.2023 klo 20.57 
为什么会崩啊,一收集就崩了
destructorzk1 8.12.2023 klo 10.08 
cara valeu dms, isso facilitou muito a minha vida tmj
青羽化霖 29.11.2023 klo 18.43 
good
Leonardpio 12.10.2023 klo 5.59 
broken mod
3GuB 20.9.2023 klo 9.16 
game crashed when it tried to pick up pig skin
iTcT 28.4.2023 klo 20.18 
箱子里面没有的物品不知道收集到哪里了,消失了
TheLostEnderman 27.4.2023 klo 11.13 
@Gleenus or @Jesz or @Catherine this dosent work anymore bye
qsnbcm 3.4.2023 klo 3.52 
我需要中文,对此我可以提供帮助
I need Chinese, and I can help with this
远行 26.3.2023 klo 22.32 
可以添加一组一组拾取物品吗,一个一个的太慢
Valoneu 26.3.2023 klo 2.15 
i have it and it works fine with like 30+ more mods
Willardy 24.2.2023 klo 18.37 
@Gleenus
Mod atualmente nao funciona, gostei bastante da ideia e utilidade dele, porem sempre que utilizo vem o crash no servidor.

Mod currently doesn't work, I really liked the idea and use it, but whenever I use it, the server crashes.
29.1.2023 klo 8.18 
这个版本基本是什么都往箱子里放,不会只拣箱子里有的
宿嚣 28.1.2023 klo 2.28 
可以设置成比如 我范围内的箱子里没有黄金 它就不会去拾取黄金给我分配到空箱子里
18.1.2023 klo 9.21 
不能用了吗,会导致游戏崩溃
樱花妖月 14.1.2023 klo 5.15 
The author greatly, hello, can add some new features, such as can now be a one-time absorption of a group of items, many will open the stack limit 999, but it was done one by one, the efficiency is very slow, thank you.
The D&D Dolphin 9.1.2023 klo 9.59 
i have reason to believe this mod caused an area of my world to become a memory leak zone,
a spot of land near my oasis sees it's awake entity count rapidly skyrocket which starts eating the framerate, this only occurred after enabling this mod and using the loot pump for a bit, i have since disabled this mod but the issue still remains.
红尘仙人掌 27.12.2022 klo 20.13 
在哪个工具栏建造呀
biu 19.12.2022 klo 10.07 
can disable picking up super packbox?
KyritoW 11.12.2022 klo 22.24 
Testando aq para ver como será :3
RamRod 10.10.2022 klo 15.20 
It is no longer compatible with Tropical experience. I just tested it.
TrHeo 31.7.2022 klo 5.10 
disconnect when loot
BelzebuB 26.7.2022 klo 0.44 
Mod drop the game
whjlinux 24.5.2022 klo 19.40 
The author is great, can you make a single player, I love your mod so much, it seems that there is also a single player
Paulistana 20.5.2022 klo 16.56 
ATUALIZA O MOD GARAIO
kuluopai󰀍 14.5.2022 klo 21.38 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1275167632
它会尝试给宠物身上的物品栏塞东西,
It will try to stuff the pet's inventory
「」 6.5.2022 klo 4.17 
Crashing with archery mod ... be careful :)
欲言又止的大佬 1.5.2022 klo 5.21 
Sometimes it's not picked up in range
󰀃墨白 30.4.2022 klo 22.27 
模组崩溃了是什么情况?
kevin 28.4.2022 klo 15.19 
@Gleenus can you please add an option to set the radius to a square would be pretty nice if so
朋也 19.4.2022 klo 22.34 
Can you add an option to control that if there are no same items in the container, they will not be picked up until the player puts one in the container
DONG LE 6.4.2022 klo 2.33 
Why can't I find the predator after I add mod
朋也 11.3.2022 klo 18.19 
Can you support pick up whole stack at a time?