模组文件免费下载和使用,谨防上当受骗!

YN310-疯狂躲避球(用浣熊尾巴种躲避球场,在圈内60秒不被球打到,赢50个黄金)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三一0.疯狂躲避球(用浣熊尾巴种躲避球场,在圈内60秒不被球打到,赢50个黄金) 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/coontail.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容: local function makecourt(inst) local pt = inst:GetPosition() local caddie = SpawnPrefab("coontail") caddie.Transform:SetPosition(pt.x, pt.y, pt.z) caddie.AnimState:SetBank("wilson") caddie.AnimState:SetBuild("wes") caddie.AnimState:OverrideSymbol("swap_hat", "hat_football", "swap_hat") caddie.AnimState:OverrideSymbol("swap_body", "armor_sweatervest", "swap_body") caddie.AnimState:Show("HAT") caddie.AnimState:Show("HAT_HAIR") caddie.AnimState:Hide("HAIR_NOHAT") caddie.AnimState:Hide("HAIR") caddie.AnimState:Hide("ARM_carry") caddie.AnimState:Show("ARM_normal") caddie.Transform:SetFourFaced() caddie.AnimState:PlayAnimation("idle") caddie:RemoveComponent("inventoryitem") caddie:RemoveComponent("stackable") caddie:RemoveComponent("deployable") caddie:RemoveTag("cattoy") caddie:AddComponent("workable") caddie.components.workable:SetWorkAction(ACTIONS.HAMMER) caddie.components.workable:SetWorkLeft(1) caddie.components.workable:SetOnFinishCallback(function(caddie) SpawnPrefab("collapse_big").Transform:SetPosition(caddie.Transform:GetWorldPosition()) GetPlayer().SoundEmitter:PlaySound("dontstarve/common/destroy_wood") GetPlayer().SoundEmitter:KillSound("beavermusic") local pos = Vector3(caddie.Transform:GetWorldPosition()) local ents = TheSim:FindEntities(pos.x,pos.y,pos.z, 10) for k,v in pairs(ents) do if v:HasTag("border") or v:HasTag("landmine") then SpawnPrefab("collapse_big").Transform:SetPosition(v.Transform:GetWorldPosition()) v:Remove() end end caddie:Remove() end ) caddie:AddComponent("named") caddie.components.named:SetName("Pitcher") caddie:AddComponent("talker") caddie:AddComponent("trader") caddie.components.trader:SetAcceptTest(function(caddie, item) if not caddie:HasTag("startgame") then if GetPlayer().components.inventory:Has("goldnugget", 10) then if item.prefab == "goldnugget" then return true end end end return false end ) caddie.components.trader.onaccept = function(caddie, giver, item) caddie:AddTag("startgame") GetPlayer().components.inventory:ConsumeByName("goldnugget", 9) GetPlayer().SoundEmitter:PlaySound("dontstarve/HUD/research_available") caddie.components.talker:Say("Are you ready ?", 3, false) GetPlayer().SoundEmitter:PlaySound("dontstarve/music/music_hoedown", "beavermusic") for k = 1, 10 do local landmine = SpawnPrefab("coontail") landmine.Transform:SetPosition(pt.x+(math.random(7)-math.random(7)), 0, pt.z+(math.random(7)-math.random(7))) landmine.AnimState:SetBank("bee_mine") landmine.AnimState:SetBuild("bee_mine") landmine.AnimState:PlayAnimation("idle") landmine.Transform:SetScale(1.2, 1.2, 1.2) landmine.AnimState:SetMultColour(255/255,105/255,0/255,1) landmine.AnimState:SetBloomEffectHandle("shaders/anim.ksh") landmine:RemoveComponent("inventoryitem") landmine:RemoveComponent("stackable") landmine:RemoveComponent("deployable") landmine:RemoveTag("cattoy") landmine.persists = false landmine:DoPeriodicTask(0.01, function() local pos0 = Vector3(landmine.Transform:GetWorldPosition()) local ents0 = TheSim:FindEntities(pos0.x,pos0.y,pos0.z, 1) for k,v in pairs(ents0) do if v and v:HasTag("player") and not v:HasTag("pain")then v:AddTag("pain") v.sg:GoToState("hit") if v.components.health then v.components.health:DoDelta(-3) end v:DoTaskInTime(0.5, function() v:RemoveTag("pain") end ) end end end ) landmine:AddTag("landmine") end caddie:DoTaskInTime(3, function() caddie.components.talker:Say("Go !", 1, false) GetPlayer().SoundEmitter:PlaySound("dontstarve/wilson/equip_item_gold") caddie.task = caddie:DoPeriodicTask(0.4, function(caddie) local target = FindEntity(caddie, 9, function(guy) return guy:HasTag("player") end ) if target then caddie.Transform:SetRotation(GetPlayer().Transform:GetRotation() - 180) caddie.AnimState:PlayAnimation("give") local dodgeball = SpawnPrefab("coontail") dodgeball.AnimState:SetBank("bulb") dodgeball.AnimState:SetBuild("bulb") dodgeball.AnimState:PlayAnimation("idle") dodgeball.Transform:SetPosition(pt.x, 0, pt.z) dodgeball:RemoveComponent("inventoryitem") dodgeball:RemoveComponent("stackable") dodgeball:RemoveComponent("deployable") dodgeball:RemoveTag("cattoy") dodgeball.persists = false dodgeball:AddComponent("complexprojectile") dodgeball.components.complexprojectile.yOffset = 1 if math.random()<.5 then local targetpos = target:GetPosition() dodgeball.components.complexprojectile:Launch(targetpos) else dodgeball.components.complexprojectile:Launch(Point(pt.x+(math.random(9)-math.random(9)), 0, pt.z+(math.random(9)-math.random(9)))) end dodgeball.components.complexprojectile:SetOnHit(function() SpawnPrefab("small_puff").Transform:SetPosition(dodgeball.Transform:GetWorldPosition()) dodgeball:Remove() end ) dodgeball:DoPeriodicTask(0.01, function() local pos = Vector3(dodgeball.Transform:GetWorldPosition()) local ents = TheSim:FindEntities(pos.x,pos.y,pos.z, 1) for k,v in pairs(ents) do if v and v:HasTag("player") then v.sg:GoToState("hit") if caddie.task then caddie.task:Cancel() caddie.task = nil end if caddie.task2 then caddie.task2:Cancel() caddie.task2 = nil end caddie.Transform:SetRotation( 0 ) caddie.AnimState:PlayAnimation("idle_onemanband1_loop",true) caddie:DoTaskInTime(2, function() caddie.AnimState:PlayAnimation("idle") end ) caddie.components.talker:Say("Game over !", 3, false) GetPlayer().SoundEmitter:PlaySound("dontstarve/creatures/eyeballturret/shotexplo") GetPlayer().SoundEmitter:KillSound("beavermusic") SpawnPrefab("collapse_small").Transform:SetPosition(dodgeball.Transform:GetWorldPosition()) dodgeball:Remove() local pos1 = Vector3(caddie.Transform:GetWorldPosition()) local ents1 = TheSim:FindEntities(pos1.x,pos1.y,pos1.z, 10) for k,v in pairs(ents1) do if v:HasTag("landmine") then v:Remove() end end caddie:RemoveTag("startgame") end end end ) else if caddie.task then caddie.task:Cancel() caddie.task = nil end if caddie.task2 then caddie.task2:Cancel() caddie.task2 = nil end caddie.Transform:SetRotation( 0 ) caddie.AnimState:PlayAnimation("idle_onemanband1_loop",true) caddie:DoTaskInTime(2, function() caddie.AnimState:PlayAnimation("idle") end ) caddie.components.talker:Say("Game over !", 3, false) GetPlayer().SoundEmitter:PlaySound("dontstarve/creatures/eyeballturret/shotexplo") GetPlayer().SoundEmitter:KillSound("beavermusic") local pos1 = Vector3(caddie.Transform:GetWorldPosition()) local ents1 = TheSim:FindEntities(pos1.x,pos1.y,pos1.z, 10) for k,v in pairs(ents1) do if v:HasTag("landmine") then v:Remove() end end caddie:RemoveTag("startgame") end end ) end ) caddie.task2 = caddie:DoTaskInTime(63, function() if caddie:HasTag("startgame") then if caddie.task then caddie.task:Cancel() caddie.task = nil end if caddie.task2 then caddie.task2:Cancel() caddie.task2 = nil end caddie.Transform:SetRotation( 0 ) caddie.AnimState:PlayAnimation("give") caddie.components.talker:Say("You win !", 3, false) GetPlayer().SoundEmitter:KillSound("beavermusic") caddie:StartThread(function() for k = 1, 10 do GetPlayer().SoundEmitter:PlaySound("dontstarve/wilson/equip_item_gold") Sleep(0.15) end end ) for k = 1, 50 do local goldnugget = SpawnPrefab("goldnugget") GetPlayer().components.inventory:GiveItem(goldnugget) end local pos1 = Vector3(caddie.Transform:GetWorldPosition()) local ents1 = TheSim:FindEntities(pos1.x,pos1.y,pos1.z, 10) for k,v in pairs(ents1) do if v:HasTag("landmine") then v:Remove() end end caddie:RemoveTag("startgame") end end ) end caddie:AddTag("caddie") for k = 1, 50 do local result_offset = FindValidPositionByFan(1 * 2 * PI, 8.5, 50, 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 border = SpawnPrefab("coontail") border.Transform:SetPosition((pt + result_offset):Get()) border.AnimState:SetBank("bulb") border.AnimState:SetBuild("bulb") border.AnimState:PlayAnimation("idle") border.Transform:SetScale(1.2, 1.2, 1.2) border.AnimState:SetMultColour(255/255,0/255,0/255,1) border.AnimState:SetOrientation( ANIM_ORIENTATION.OnGround ) border.AnimState:SetLayer( LAYER_BACKGROUND ) border.AnimState:SetSortOrder( 1 ) border:RemoveComponent("inventoryitem") border:RemoveComponent("stackable") border:RemoveComponent("deployable") border:RemoveTag("cattoy") border:DoPeriodicTask(2, function(shopsign) border.AnimState:SetMultColour(0/255,255/255,0/255,1) border:DoTaskInTime(1, function() border.AnimState:SetMultColour(255/255,0/255,0/255,1) end ) end ) border:AddTag("NOCLICK") border:AddTag("border") end end end local function OnDeploy (inst, pt) makecourt(inst) inst.components.stackable:Get():Remove() end inst:AddComponent("deployable") inst.components.deployable.ondeploy = OnDeploy local function onsave(inst, data) if inst:HasTag("caddie") then data.caddie = true end if inst:HasTag("border") then data.border = true end end local function onload(inst, data) if data and data.caddie then makecourt(inst) inst:Remove() end if data and data.border then inst:Remove() end end inst.OnSave = onsave inst.OnLoad = onload 即可在空旷的地上,用浣熊尾巴种躲避球场(拿着1个浣熊尾巴对地面点鼠标右键,如果拿着多个,则不会种出来)。给投手10个黄金玩一次(拿着黄金对投手点鼠标左键),他会不断向你扔球,在不跑出圆圈边界、不被砸到的情况下,坚持60秒,就可赢得50个黄金的奖励。球场内会随机出现障碍物,碰到会被扎伤(减3点血),绕着点跑吧。不想要躲避球场了,用锤子砸投手即可

2025/04/23 · Bny

YN311-快速孵化高鸟蛋(游戏中1小时孵出小高鸟)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三一一.快速孵化高鸟蛋(游戏中1小时孵出小高鸟) 用MT管理器打开游戏目录/assets/DLC0002/scripts/tuning.lua文件,将SMALLBIRD_HATCH_TIME = total_day_time * 3, -- must be content for this amount of cumulative time to hatch替换为以下内容: SMALLBIRD_HATCH_TIME = seg_time*1, 即可在游戏中1小时孵出小高鸟

2025/04/23 · Bny

YN312-青年高鸟不长大,增加血量及攻击力,喂食可重新认人

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三一二.青年高鸟不长大,增加血量及攻击力,喂食可重新认人 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/smallbird.lua文件, 1.在--print("smallbird - OnGetItemFromPlayer")的下一行插入以下内容: local player = GetPlayer() if player and player.components.leader then player.components.leader:AddFollower(inst) end 2.将inst.components.combat:SetDefaultDamage(TUNING.TEENBIRD_DAMAGE)替换为inst.components.combat:SetDefaultDamage(TUNING.TEENBIRD_DAMAGE*5) 3.将return TUNING.TEENBIRD_GROW_TIME替换为return TUNING.TEENBIRD_GROW_TIME*1000 4.将inst.components.health:SetMaxHealth(TUNING.TEENBIRD_HEALTH)替换为inst.components.health:SetMaxHealth(TUNING.TEENBIRD_HEALTH*100) 即可让青年高鸟18000天不长大,血量30000,攻击力180,如果不认主角了,喂食即可重新认人

2025/04/23 · Bny

YN313-喂自养高鸟产便便

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三一三.喂自养高鸟产便便 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/smallbird.lua文件,在local function OnEat(inst, food)的下一行插入以下内容: if food.components.edible then local poo = SpawnPrefab("poop") poo.Transform:SetPosition(inst.Transform:GetWorldPosition()) end 即可喂自养高鸟产便便

2025/04/23 · Bny

YN314-自养高鸟不用喂食

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三一四.自养高鸟不用喂食 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/smallbird.lua文件,在inst:AddComponent("hunger")的下一行插入以下内容: inst.components.hunger.burning = false 即可让自养高鸟不用喂食,因为它不会自动掉饥饿值,除非受伤才须靠喂食补血

2025/04/23 · Bny

YN315-牙齿陷阱不伤害自养高鸟

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三一五.牙齿陷阱不伤害自养高鸟 用MT管理器打开游戏目录/assets/scripts/prefabs/trap_teeth.lua文件,将if target then替换为if target and not target:HasTag("smallbird") then 即可让牙齿陷阱不伤害自养高鸟

2025/04/23 · Bny

YN316-主角带肉不被兔人攻击

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三一六.主角带肉不被兔人攻击 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/bunnyman.lua文件,将if guy:HasTag("player")替换为if guy:HasTag("monster") 即可让兔人不攻击带肉的主角,注意替换的只是一句中的一部分,语句其他部分不要动

2025/04/23 · Bny

YN317-快速刷兔人(兔人死后兔房立刻生新兔人)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三一七.快速刷兔人(兔人死后兔房立刻生新兔人) 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/rabbithouse.lua文件,将inst.components.spawner:Configure( "bunnyman", TUNING.TOTAL_DAY_TIME)替换为inst.components.spawner:Configure( "bunnyman", TUNING.TOTAL_DAY_TIME*0) 即可打死一个兔人,兔房就立刻重生一个

2025/04/23 · Bny

YN318-快速刷猪人(猪死后猪房立刻生新猪)

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三一八.快速刷猪人(猪死后猪房立刻生新猪) 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/pighouse.lua文件,将inst.components.spawner:Configure( "pigman", TUNING.TOTAL_DAY_TIME*4)替换为inst.components.spawner:Configure( "pigman", TUNING.TOTAL_DAY_TIME*0) 即可打死一个猪人,猪房就立刻重生一个

2025/04/23 · Bny

YN319-猪人永久跟随

代码来源于“易宁”大佬的分享,仅供学习,不要直接复制粘贴。 原帖链接:http://bbs.3dmgame.com/thread-3859071-1-1.html 三一九.猪人永久跟随 用MT管理器打开游戏目录/assets/DLC0002/scripts/prefabs/pigman.lua文件, 1.将inst.components.follower:AddLoyaltyTime(item.components.edible:GetHunger() * TUNING.PIG_LOYALTY_PER_HUNGER)替换为--inst.components.follower:AddLoyaltyTime(item.components.edible:GetHunger() * TUNING.PIG_LOYALTY_PER_HUNGER) 2.将inst.components.follower.maxfollowtime = TUNING.PIG_LOYALTY_MAXTIME替换为--inst.components.follower.maxfollowtime = TUNING.PIG_LOYALTY_MAXTIME 即可让猪人永久跟随,饿了也不会离开。但晚上一样需要给它点火,它会呆在火旁,到白天继续跟随

2025/04/23 · Bny