[分享]饥荒联机版,支持局域网联机。

YN082-精炼选项里的物品一次造10个

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2八十二.精炼选项里的物品一次造10个 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/recipes.lua文件,将下列内容: 5 6Recipe("rope", {Ingredient("cutgrass", 3)}, RECIPETABS.REFINE, TECH.SCIENCE_ONE) 7Recipe("boards", {Ingredient("log", 4)}, RECIPETABS.REFINE, TECH.SCIENCE_ONE) 8Recipe("cutstone", {Ingredient("rocks", 3)}, RECIPETABS.REFINE, TECH.SCIENCE_ONE) 9Recipe("papyrus", {Ingredient("cutreeds", 4)}, RECIPETABS.REFINE, TECH.SCIENCE_ONE) 10Recipe("nightmarefuel", {Ingredient("petals_evil", 4)}, RECIPETABS.REFINE, TECH.MAGIC_TWO) 11Recipe("purplegem", {Ingredient("redgem",1), Ingredient("bluegem", 1)}, RECIPETABS.REFINE, TECH.MAGIC_TWO) 12 13 替换为: 14 15Recipe("rope", {Ingredient("cutgrass", 3)}, RECIPETABS.REFINE, TECH.SCIENCE_ONE,nil,nil,nil,10) 16Recipe("boards", {Ingredient("log", 4)}, RECIPETABS.REFINE, TECH.SCIENCE_ONE,nil,nil,nil,10) 17Recipe("cutstone", {Ingredient("rocks", 3)}, RECIPETABS.REFINE, TECH.SCIENCE_ONE,nil,nil,nil,10) 18Recipe("papyrus", {Ingredient("cutreeds", 4)}, RECIPETABS.REFINE, TECH.SCIENCE_ONE,nil,nil,nil,10) 19Recipe("nightmarefuel", {Ingredient("petals_evil", 4)}, RECIPETABS.REFINE, TECH.MAGIC_TWO,nil,nil,nil,10) 20Recipe("purplegem", {Ingredient("redgem",1), Ingredient("bluegem", 1)}, RECIPETABS.REFINE, TECH.MAGIC_TWO,nil,nil,nil,10) 21 22 即可让精炼选项(画着白色宝石)里的绳子、木板、石砖、纸、噩梦燃料、紫宝石一次造10个

2025/04/23 · Bny

YN083-喂鸟蔬菜多掉种子

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2八十三.喂鸟蔬菜多掉种子 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/birdcage.lua文件,将local num_seeds = math.random(2)替换为local num_seeds = 10 5 6 即可喂鸟一次蔬菜掉10个种子,数字可随意调整

2025/04/23 · Bny

YN084-冬天野外的鸟也掉种子

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2八十四.冬天野外的鸟也掉种子 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/birds.lua文件,将return not GetWorld().components.seasonmanager:IsWinter()替换为return true 5 6 即可让野外的鸟在冬天也掉种子

2025/04/23 · Bny

YN085-种子腐烂变慢

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2八十五.种子腐烂变慢 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/tuning.lua文件,将PERISH_SUPERSLOW = 40*total_day_time*perish_warp,替换为PERISH_SUPERSLOW = 200*total_day_time*perish_warp, 5 6 即可让种子腐烂时间延缓5倍

2025/04/23 · Bny

YN086-收获蜂箱不被蛰

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2八十六.收获蜂箱不被蛰 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/beebox.lua文件,将inst.components.childspawner:ReleaseAllChildren(picker)替换为--inst.components.childspawner:ReleaseAllChildren(picker) 5 6 即可在收获蜂箱不被蛰

2025/04/23 · Bny

YN087-蜂箱容量增加10倍(最多可采60个蜂蜜)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2八十七.蜂箱容量增加10倍(最多可采60个蜂蜜) 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/beebox.lua文件, 5 6 1.将下列内容: 7 8 { amount=6, idle="honey3", hit="hit_honey3" }, 9 { amount=3, idle="honey2", hit="hit_honey2" }, 10 { amount=1, idle="honey1", hit="hit_honey1" }, 11 12 替换为: 13 14 { amount=60, idle="honey3", hit="hit_honey3" }, 15 { amount=30, idle="honey2", hit="hit_honey2" }, 16 { amount=10, idle="honey1", hit="hit_honey1" }, 17 18 19 2.将inst.components.harvestable:SetUp("honey", 6, nil, onharvest, updatelevel)替换为inst.components.harvestable:SetUp("honey", 60, nil, onharvest, updatelevel) 20 21 即可让蜂箱容量增加10倍,可减少照管的时间

2025/04/23 · Bny

YN088-蜂箱快速产蜂蜜

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2八十八.蜂箱快速产蜂蜜 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/beebox.lua文件, 5 6 1.将下列内容: 7 8 inst.components.harvestable:SetGrowTime(TUNING.BEEBOX_HONEY_TIME) 9 inst.components.harvestable:StartGrowing() 10 end 11 end 12end 13 14local function stopsleep(inst) 15 if not inst:HasTag("burnt") then 16 if inst.components.harvestable then 17 inst.components.harvestable:SetGrowTime(nil) 18 inst.components.harvestable:StopGrowing() 19 20 替换为: 21 22 inst.components.harvestable:SetGrowTime(TUNING.BEEBOX_HONEY_TIME*.01) 23 inst.components.harvestable:StartGrowing() 24 end 25 end 26end 27 28local function stopsleep(inst) 29 if not inst:HasTag("burnt") then 30 if inst.components.harvestable then 31 inst.components.harvestable:SetGrowTime(TUNING.BEEBOX_HONEY_TIME*.01) 32 inst.components.harvestable:StartGrowing() 33 34 35 2.将inst:ListenForEvent( "dusktime", StopSpawningFn(inst), GetWorld())替换为inst:ListenForEvent( "dusktime", StartSpawningFn(inst), GetWorld()) 36 37 即可让蜂箱快速产蜂蜜,几秒钟一箱就满了

2025/04/23 · Bny

YN089-萤火虫不怕人(人靠近不会灭、白天也可看见)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2八十九.萤火虫不怕人(人靠近不会灭、白天也可看见) 3 4 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/fireflies.lua文件,将下列内容: 5 6 inst:AddTag("NOCLICK") 7 if inst.lighton then 8 fadeout(inst) 9 end 10 inst.lighton = false 11 12 替换为: 13 14 if not inst.lighton then 15 fadein(inst) 16 end 17 inst.lighton = true 18 19 即可让萤火虫不怕人

2025/04/23 · Bny

YN090-空手抓蜜蜂、杀人蜂、蝴蝶、萤火虫(用橙色护身符可以快速吸取)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2九十.空手抓蜜蜂、杀人蜂、蝴蝶、萤火虫(用橙色护身符可以快速吸取) 3 4 1.空手抓蜜蜂、杀人蜂:用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/bee.lua文件,将inst.components.inventoryitem.canbepickedup = false替换为inst.components.inventoryitem.canbepickedup = true 5 6 7 2.空手抓蝴蝶:用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/butterfly.lua文件,将inst.components.inventoryitem.canbepickedup = false替换为inst.components.inventoryitem.canbepickedup = true 8 9 10 3.空手抓萤火虫:用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/fireflies.lua文件,将共2句inst.components.inventoryitem.canbepickedup = false均替换为inst.components.inventoryitem.canbepickedup = true 11 12 即可空手抓蜜蜂、杀人蜂、蝴蝶、萤火虫,也可以用橙色护身符快速吸取

2025/04/23 · Bny

YN091-快速找到牛(牛在地图上显示)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 1 2九十一.快速找到牛(牛在地图上显示) 3 4 用MT管理器打开游戏目录/assets/scripts/prefabs/beefalo.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: 5 6 local minimap = inst.entity:AddMiniMapEntity() 7 minimap:SetIcon( "beemine.png" ) 8 9 即可在地图上看到牛的位置,显示为炸弹图标,因为你不知道它什么时候会发狂

2025/04/23 · Bny