饥荒 全人物解锁及主角自动回血等实用修改教程 |
您所在的位置:网站首页 › 饥荒制冰机在哪里制冰的 › 饥荒 全人物解锁及主角自动回血等实用修改教程 |
第309页:制冰机 展开二五九.制冰机(用草伞种制冰机,下雨时自动制冰,可加工成大冰块永久保存,大冰块可砸碎成冰) 用记事本打开游戏目录\data\DLC0001\scripts\prefabs\umbrella.lua文件,在inst:AddTag("show_spoilage")的下一行插入以下内容: local function itemtest(inst, item, slot) if item.prefab == "ice" then return true end return false end local slotpos = { Vector3(0,-75,0)} local widgetbuttoninfo = { text = "Make", position = Vector3(0, -135, 0), fn = function(inst) if inst:HasTag("icemaker") then if inst.components.container:Has("ice", 10) then GetPlayer().SoundEmitter:PlaySound("dontstarve/wilson/rock_break") inst.components.container:ConsumeByName("ice", 10) local pt = inst:GetPosition() local bigice = SpawnPrefab("grass_umbrella") bigice.Transform:SetPosition(pt.x+(math.random(3)-math.random(3)), 0, pt.z+(math.random(3)-math.random(3))) bigice.AnimState:SetBank("icehat") bigice.AnimState:SetBuild("hat_ice") bigice.AnimState:PlayAnimation("anim") bigice.Transform:SetScale(1.5, 1.5, 1.5) bigice:RemoveComponent("waterproofer") bigice:RemoveComponent("equippable") bigice:RemoveComponent("insulator") bigice:RemoveComponent("perishable") bigice:RemoveComponent("fuel") bigice:RemoveComponent("burnable") bigice:RemoveComponent("propagator") bigice:RemoveComponent("deployable") bigice:RemoveComponent("container") bigice:RemoveTag("nopunch") bigice:RemoveTag("show_spoilage") bigice:RemoveAllEventCallbacks() bigice:AddComponent("named") bigice.components.named:SetName("Big ice") bigice.components.inventoryitem:ChangeImageName("icehat") bigice:AddComponent("heater") bigice.components.heater.iscooler = true bigice.components.heater.heatfn = function(bigice) return -40 end bigice:AddComponent("workable") bigice.components.workable:SetWorkAction(ACTIONS.HAMMER) bigice.components.workable:SetWorkLeft(1) bigice.components.workable:SetOnFinishCallback(function(bigice) SpawnPrefab("ground_chunks_breaking").Transform:SetPosition(bigice.Transform:GetWorldPosition()) GetPlayer().SoundEmitter:PlaySound("dontstarve/common/destroy_wood") for k = 1, 10 do local pt1 = bigice:GetPosition() local ice = SpawnPrefab("ice") ice.Transform:SetPosition(pt1.x+(math.random(3)-math.random(3)), 0, pt1.z+(math.random(3)-math.random(3))) end bigice:Remove() end ) bigice:AddTag("bigice") end end end } local function OnDeploy (inst, pt) local icemaker = SpawnPrefab("grass_umbrella") icemaker.Transform:SetPosition(pt.x, pt.y, pt.z) icemaker.AnimState:SetBank("eyeball_turret_base") icemaker.AnimState:SetBuild("eyeball_turret_base") icemaker.AnimState:PlayAnimation("idle_loop") icemaker.Transform:SetScale(0.8, 0.8, 0.8) icemaker.AnimState:SetMultColour(0/255,255/255,0/255,1) icemaker:RemoveComponent("waterproofer") icemaker:RemoveComponent("inventoryitem") icemaker:RemoveComponent("equippable") icemaker:RemoveComponent("insulator") icemaker:RemoveComponent("perishable") icemaker:RemoveComponent("fuel") icemaker:RemoveComponent("burnable") icemaker:RemoveComponent("propagator") icemaker:RemoveComponent("deployable") icemaker:RemoveTag("nopunch") icemaker:RemoveTag("show_spoilage") icemaker:RemoveAllEventCallbacks() icemaker:AddComponent("named") icemaker.components.named:SetName("Ice maker") icemaker.components.container.canbeopened = true icemaker:AddComponent("workable") icemaker.components.workable:SetWorkAction(ACTIONS.HAMMER) icemaker.components.workable:SetWorkLeft(3) icemaker.components.workable:SetOnFinishCallback(function(icemaker) SpawnPrefab("collapse_big").Transform:SetPosition(icemaker.Transform:GetWorldPosition()) GetPlayer().SoundEmitter:PlaySound("dontstarve/common/destroy_wood") icemaker:Remove() end ) icemaker:ListenForEvent("rainstart", function() icemaker.task = icemaker:DoPeriodicTask(10, function() local ice = SpawnPrefab("ice") icemaker.components.container:GiveItem(ice) end ) end, GetWorld()) icemaker:ListenForEvent("rainstop", function() if icemaker.task then icemaker.task:Cancel() icemaker.task = nil end end, GetWorld()) icemaker:AddTag("icemaker") inst:Remove() end inst:AddComponent("deployable") inst.components.deployable.ondeploy = OnDeploy inst:AddComponent("container") inst.components.container:SetNumSlots(#slotpos) inst.components.container.widgetslotpos = slotpos inst.components.container.widgetpos = Vector3(0,150,0) inst.components.container.side_align_tip = 160 inst.components.container.itemtestfn = itemtest inst.components.container.widgetbuttoninfo = widgetbuttoninfo inst.components.container.canbeopened = false inst.components.container.onopenfn = function(inst) GetPlayer().SoundEmitter:PlaySound("dontstarve/wilson/equip_item_gold") end inst.components.container.onclosefn = function(inst) GetPlayer().SoundEmitter:PlaySound("dontstarve/wilson/equip_item_gold") end inst:AddTag("fridge") local function onsave(inst, data) if inst:HasTag("icemaker") then data.icemaker = true end if inst:HasTag("bigice") then data.bigice = true end end local function onload(inst, data) if data and data.icemaker then inst.AnimState:SetBank("eyeball_turret_base") inst.AnimState:SetBuild("eyeball_turret_base") inst.AnimState:PlayAnimation("idle_loop") inst.Transform:SetScale(0.8, 0.8, 0.8) inst.AnimState:SetMultColour(0/255,255/255,0/255,1) inst:RemoveComponent("waterproofer") inst:RemoveComponent("inventoryitem") inst:RemoveComponent("equippable") inst:RemoveComponent("insulator") inst:RemoveComponent("perishable") inst:RemoveComponent("fuel") inst:RemoveComponent("burnable") inst:RemoveComponent("propagator") inst:RemoveComponent("deployable") inst:RemoveTag("nopunch") inst:RemoveTag("show_spoilage") inst:RemoveAllEventCallbacks() inst:AddComponent("named") inst.components.named:SetName("Ice maker") inst.components.container.canbeopened = true inst:AddComponent("workable") inst.components.workable:SetWorkAction(ACTIONS.HAMMER) inst.components.workable:SetWorkLeft(3) inst.components.workable:SetOnFinishCallback(function(inst) SpawnPrefab("collapse_big").Transform:SetPosition(inst.Transform:GetWorldPosition()) GetPlayer().SoundEmitter:PlaySound("dontstarve/common/destroy_wood") inst:Remove() end ) inst:ListenForEvent("rainstart", function() inst.task = inst:DoPeriodicTask(10, function() local ice = SpawnPrefab("ice") inst.components.container:GiveItem(ice) end ) end, GetWorld()) inst:ListenForEvent("rainstop", function() if inst.task then inst.task:Cancel() inst.task = nil end end, GetWorld()) inst:AddTag("icemaker") end if data and data.bigice then inst.AnimState:SetBank("icehat") inst.AnimState:SetBuild("hat_ice") inst.AnimState:PlayAnimation("anim") inst.Transform:SetScale(1.5, 1.5, 1.5) inst:RemoveComponent("waterproofer") inst:RemoveComponent("equippable") inst:RemoveComponent("insulator") inst:RemoveComponent("perishable") inst:RemoveComponent("fuel") inst:RemoveComponent("burnable") inst:RemoveComponent("propagator") inst:RemoveComponent("deployable") inst:RemoveComponent("container") inst:RemoveTag("nopunch") inst:RemoveTag("show_spoilage") inst:RemoveAllEventCallbacks() inst:AddComponent("named") inst.components.named:SetName("Big ice") inst.components.inventoryitem:ChangeImageName("icehat") inst:AddComponent("heater") inst.components.heater.iscooler = true inst.components.heater.heatfn = function(inst) return -40 end inst:AddComponent("workable") inst.components.workable:SetWorkAction(ACTIONS.HAMMER) inst.components.workable:SetWorkLeft(1) inst.components.workable:SetOnFinishCallback(function(inst) SpawnPrefab("ground_chunks_breaking").Transform:SetPosition(inst.Transform:GetWorldPosition()) GetPlayer().SoundEmitter:PlaySound("dontstarve/common/destroy_wood") for k = 1, 10 do local pt1 = inst:GetPosition() local ice = SpawnPrefab("ice") ice.Transform:SetPosition(pt1.x+(math.random(3)-math.random(3)), 0, pt1.z+(math.random(3)-math.random(3))) end inst:Remove() end ) inst:AddTag("bigice") end end inst.OnSave = onsave inst.OnLoad = onload 即可用草伞种制冰机,下雨时每10秒制成一块冰,鼠标左键点制冰机,可打开格子,在格子中拿取。当格子中至少有10块冰时,点格子下面的“Make”按钮,可将冰加工成大冰块,用以永久保存。靠近大冰块可降温,用锤子砸大冰块,可还原成小冰。不想要制冰机了,用锤子炸毁即可。草伞在生存选项(画着绳套)下,用4个树枝、3个草、6个花瓣制造
更多相关内容请关注:饥荒专区 责任编辑:Shy夏夏 上一页 301 302 303 304 305 306 307 308 309 310 311 下一页 友情提示:支持键盘左右键“← →”翻页本文是否解决了您的问题 已解决0 未解决0 文章内容导航 第209页:宝物猎人第210页:无尽的任务第211页:无限进化第212页:许愿池第213页:红胡子强盗团第214页:饥饿的儿童第215页:猪族崛起第216页:鬼影重重第217页:角斗场第218页:潘多拉魔盒第219页:铁血蛮族第220页:象之树第221页:变身传奇第222页:我是巨鹿第223页:我是神龙第224页:我是龙卷风第225页:荒野之狼第226页:遁形术第227页:人工降水第228页:人工换季第229页:光阴似箭第230页:五彩木箱第231页:随笔涂鸦第232页:移动垃圾桶第233页:垃圾洞第234页:生物传送机第235页:极速快递第236页:帽子戏法第237页:节日礼花第238页:璀璨流星雨第239页:高尔夫球第240页:完好如初第241页:我的小屋第242页:自动门第243页:新移民第244页:神奇跳跃第245页:如来神掌第246页:警戒模式第247页:观赏秃鹫第248页:迷你花坛第249页:橡树盆栽第250页:小油灯第251页:我的王国第252页:鲜果龙树第253页:小病小灾第254页:噩梦草第255页:天然温泉第256页:小冰山第257页:生物克隆机第258页:强迫症标尺第259页:制冰机第260页:奶报箱第261页:智能路灯第262页:传送石第263页:御风飞翔第264页:风力滑板车第265页:动力飞行帽第266页:虫洞地铁第267页:蜘蛛座骑第268页:喷气虫座骑第269页:公车站第270页:象之树第271页:变身传奇第272页:我是巨鹿第273页:我是神龙第274页:我是龙卷风第275页:荒野之狼第276页:遁形术第277页:人工降水第278页:人工换季第279页:光阴似箭第280页:五彩木箱第281页:随笔涂鸦第282页:移动垃圾桶第283页:垃圾洞第284页:生物传送机第285页:极速快递第286页:帽子戏法第287页:节日礼花第288页:璀璨流星雨第289页:高尔夫球第290页:完好如初第291页:我的小屋第292页:自动门第293页:新移民第294页:神奇跳跃第295页:如来神掌第296页:警戒模式第297页:观赏秃鹫第298页:迷你花坛第299页:橡树盆栽第300页:小油灯第301页:我的王国第302页:鲜果龙树第303页:小病小灾第304页:噩梦草第305页:天然温泉第306页:小冰山第307页:生物克隆机第308页:强迫症标尺第309页:制冰机 第310页:奶报箱第311页:智能路灯第312页:传送石第313页:御风飞翔第314页:风力滑板车第315页:动力飞行帽第316页:虫洞地铁第317页:蜘蛛座骑第318页:喷气虫座骑第319页:公车站第320页:筋斗云第321页:全自动播种机第322页:智能播种机器人第323页:磁悬浮建筑机器人第324页:电动斧子第325页:电动镐第326页:电动草叉第327页:电动铺路铲第328页:地皮改造机第329页:小型温室第330页:随身灭火器第331页:菜市场第332页:肉食店第333页:流动商贩第334页:杂货收购行第335页:收藏品黑市第336页:收藏品期货市场第337页:巨型超市第338页:刮刮乐第339页:自动取款机第340页:逝者的赌局第341页:小酒馆第342页:野球拳赌场第343页:网上宠宠店第344页:采矿场第345页:雇佣兵工厂第346页:企鹅养殖场第347页:临时工市场第348页:我的果汁店第349页:跳蚤市场第350页:小诊所第351页:斗蜘蛛第352页:经营动物园第353页:良种山羊第354页:商业采矿机第355页:环保公司第356页:生鲜售卖机第357页:炸弹客第358页:百变存钱罐第359页:度假营地第360页:疯狂躲避球第361页:快速孵化高鸟蛋第362页:青年高鸟不长大,增加血量及攻击力,喂食可重新认人第363页:喂自养高鸟产便便第364页:自养高鸟不用喂食第365页:牙齿陷阱不伤害自养高鸟第366页:主角带肉不被兔人攻击第367页:快速刷兔人(兔人死后兔房立刻生新兔人)第368页:快速刷猪人(猪死后猪房立刻生新猪)第369页:猪人永久跟随第370页:猪守卫不主动攻击主角第371页:修改敌人生命值第372页:修改敌人攻击力第373页:修改敌人攻击节奏第374页:打地面蜘蛛巢掉3个蜘蛛卵第375页:增加树精出现概率第376页:除掉全部企鹅及企鹅冰第377页:地面不长食人花第378页:下雨不掉青蛙第379页:下雨不长花第380页:打死火狗不着火第381页:不出现猎犬攻击第382页:用木板种鱼人房第383页:用犬牙种海象窝第384页:海象窝可烧掉第385页:用铥矿碎片种猴子桶第386页:吃触手皮周围生触手第387页:用蜂蜜种野生蜂窝第388页:用蜂刺种杀人蜂窝第389页:用猪皮种猪火炬第390页:增大巨鹿出现概率第391页:让游戏中的一天更漫长第392页:修改白天、黑夜、傍晚占一天的比例第393页:温暖之国第394页:夏季建筑、植物不自燃第395页:夏天植物、农田不枯萎第396页:停止刮风第397页:闪电不伤主角第398页:扩大地图尺寸第399页:游戏不自动保存第400页:手动存档第401页:快速读档第402页:死亡自动读档第403页:彩色物品栏第404页:纯净的屏幕第405页:隐藏地图图标第406页:地图不显示已探索区域第407页:定格边框第408页:冒险视角第409页:修复游戏Mods按钮 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |