YN332-用木板种鱼人房

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三三二.用木板种鱼人房 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/boards.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: local function OnDeploy (inst, pt) SpawnPrefab("mermhouse").Transform:SetPosition(pt.x, pt.y, pt.z) inst.components.stackable:Get():Remove() end inst:AddComponent("deployable") inst.components.deployable.ondeploy = OnDeploy 即可用木板种鱼人房。不要与“生鲜售卖机”一同修改

2025/04/23 · Bny

YN333-用犬牙种海象窝

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三三三.用犬牙种海象窝 用MT管理器打开游戏目录/assets/scripts/prefabs/houndstooth.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: local function OnDeploy (inst, pt) SpawnPrefab("walrus_camp").Transform:SetPosition(pt.x, pt.y, pt.z) inst.components.stackable:Get():Remove() end inst:AddComponent("deployable") inst.components.deployable.ondeploy = OnDeploy 即可用犬牙种海象窝

2025/04/23 · Bny

YN334-海象窝可烧掉

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三三四.海象窝可烧掉 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/walrus_camp.lua文件,在inst:AddComponent("inspectable")的下一行插入MakeLargeBurnable(inst) 即可烧掉海象窝

2025/04/23 · Bny

YN335-用铥矿碎片种猴子桶

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三三五.用铥矿碎片种猴子桶 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/thulecite_pieces.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: local function OnDeploy (inst, pt) SpawnPrefab("monkeybarrel").Transform:SetPosition(pt.x, pt.y, pt.z) inst.components.stackable:Get():Remove() end inst:AddComponent("deployable") inst.components.deployable.ondeploy = OnDeploy 即可用铥矿碎片种猴子桶。不要与“小冰山”一同修改

2025/04/23 · Bny

YN336-吃触手皮周围生触手

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三三六.吃触手皮周围生触手 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/tentaclespots.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: function tentaclesfn(inst, reader) local pt = Vector3(reader.Transform:GetWorldPosition()) local numtentacles = 9 reader:StartThread(function() for k = 1, numtentacles do local theta = math.random() * 2 * PI local radius = math.random(9, 24) local result_offset = FindValidPositionByFan(theta, radius, 12, function(offset) local x,y,z = (pt + offset):Get() local ents = TheSim:FindEntities(x,y,z , 1) return not next(ents) end) if result_offset then local tentacle = SpawnPrefab("tentacle") tentacle.Transform:SetPosition((pt + result_offset):Get()) GetPlayer().components.playercontroller:ShakeCamera(reader, "FULL", 0.2, 0.02, .25, 40) local fx = SpawnPrefab("splash_ocean") local pos = pt + result_offset fx.Transform:SetPosition(pos.x, pos.y, pos.z) tentacle.sg:GoToState("attack_pre") end Sleep(.33) end end) return true end inst:AddComponent("edible") inst.components.edible:SetOnEatenFn(tentaclesfn) 即可吃触手皮周围生9个触手,这不是用来保护主角的,而是为了不让触手绝种,所以不要在基地周围吃触手皮

2025/04/23 · Bny

YN337-用蜂蜜种野生蜂窝

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三三七.用蜂蜜种野生蜂窝 用MT管理器打开游戏目录/assets/scripts/prefabs/honey.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: local function OnDeploy (inst, pt) SpawnPrefab("beehive").Transform:SetPosition(pt.x, pt.y, pt.z) inst.components.stackable:Get():Remove() end inst:AddComponent("deployable") inst.components.deployable.ondeploy = OnDeploy 即可用蜂蜜种野生蜂窝

2025/04/23 · Bny

YN338-用蜂刺种杀人蜂窝

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三三八.用蜂刺种杀人蜂窝 用MT管理器打开游戏目录/assets/scripts/prefabs/stinger.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: local function OnDeploy (inst, pt) SpawnPrefab("wasphive").Transform:SetPosition(pt.x, pt.y, pt.z) inst.components.stackable:Get():Remove() end inst:AddComponent("deployable") inst.components.deployable.ondeploy = OnDeploy 即可用蜂刺种杀人蜂窝,种下赶快跑啊。不要与“人工女友”一同修改

2025/04/23 · Bny

YN339-用猪皮种猪火炬

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三三九.用猪皮种猪火炬 用MT管理器打开游戏目录/assets/scripts/prefabs/pigskin.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: local function OnDeploy (inst, pt) SpawnPrefab("pigtorch").Transform:SetPosition(pt.x, pt.y, pt.z) inst.components.stackable:Get():Remove() end inst:AddComponent("deployable") inst.components.deployable.ondeploy = OnDeploy 即可用猪皮种猪火炬,当主角不与火炬在同一屏时,会生出猪守卫。不要与“霸王盔”一同修改

2025/04/23 · Bny

YN340-增大巨鹿出现概率

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三四0.增大巨鹿出现概率 用MT管理器打开游戏目录/assets/DLC0002/scripts/tuning_override.lua文件,将下列内容: basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", false) basehassler:OverrideAttackChance("DEERCLOPS", .33) elseif difficulty == "often" then basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", false) basehassler:OverrideAttackChance("DEERCLOPS", 1.1) elseif difficulty == "always" then basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", true) basehassler:OverrideAttackChance("DEERCLOPS", 1.1) 替换为: basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", false) basehassler:OverrideAttackChance("DEERCLOPS", 1.1) elseif difficulty == "often" then basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", false) basehassler:OverrideAttackChance("DEERCLOPS", 2.1) elseif difficulty == "always" then basehassler:OverrideAttacksPerSeason("DEERCLOPS", 1) basehassler:OverrideAttackDuringOffSeason("DEERCLOPS", true) basehassler:OverrideAttackChance("DEERCLOPS", 3.1) 即可增大巨鹿出现概率

2025/04/23 · Bny

YN341-让游戏中的一天更漫长(1天从真实世界的8分钟修改为16分钟)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三四一.让游戏中的一天更漫长(1天从真实世界的8分钟修改为16分钟) 用MT管理器打开游戏目录/assets/DLC0002/scripts/tuning.lua文件,将local seg_time = 30替换为local seg_time = 60 即可使游戏中的1天从真实世界的8分钟延长为16分钟

2025/04/23 · Bny