/disableraids
示例: /disableraids true
关闭当前世界的突袭。参数不能省略:输入 true 让游戏不再安排突袭,输入 false 则重新开启。它不会取消已经开始倒计时的突袭,所以如果一波已经在路上,还要配合 /stopraid。
游戏内聊天指令
废品机械师的聊天框可以输入指令,用来获取物品、停止突袭、把卡住的角色救出来,或者直接改变时间。生存模式的大部分指令要在开发者模式下启动游戏才会出现。本页按模式分组,收录了全部指令。
普通的生存模式只会注册房主需要的两条指令。其余都是开发者指令,只有用 -dev 启动选项启动游戏时,游戏才会把它们加进聊天控制台。
按回车打开聊天框,输入以斜杠开头的指令,再按一次回车。控制台会自动补全指令名称,如果游戏为该指令内置了取值列表,取值也能补全。
这个参数不只是往聊天框里加指令。开着它进生存世界,开局本身就不一样,尤其是开着它新建的世界,差别一眼就能看出来:
这些都不是存档坏了,但故事确实不会自己开始。想按原本的设计打战役,就别开着参数建那个世界,把开发者模式留给专门用来折腾的存档。
这些是开发工具,不是难度选项。它们可以直接给你还没解锁的物品,删掉创造世界里的所有方块,或者让生存存档进入剧情没有考虑过的状态。如果这个世界对你很重要,请先复制一份存档文件夹。
大部分搜索都集中在四条指令上。它们都需要开发者模式,下面的生存模式表格里还会再次列出它们的参数。
示例: /disableraids true
关闭当前世界的突袭。参数不能省略:输入 true 让游戏不再安排突袭,输入 false 则重新开启。它不会取消已经开始倒计时的突袭,所以如果一波已经在路上,还要配合 /stopraid。
示例: /unstuck
把卡在地形里或建造物里的角色移出来。它不带参数,也只对输入者本人生效,是本页最安全的一条指令。
示例: /god
让机械师不再受到伤害。它是开关而不是数值,再输入一次就会恢复受伤。开启期间摔落、机器人和溺水都不会掉血。
示例: /unlimited
把当前存档切换成创造模式那套无限物品栏,所有零件不用制作就能直接取用。/limited 可以换回生存模式的普通物品栏。
<name>[name]其中 2 条属于房间的房主,另外 29 条是开发者指令,需要上面提到的启动选项。
| 指令 | 参数 | 游戏内说明 | 可用对象 |
|---|---|---|---|
| /aggroall/aggroall | 无 | All hostile units will be made aware of the player's position | 开发者模式 |
| /ammo/ammo [quantity] |
| Give ammo (default 100) | 开发者模式 |
| /baguette/baguette | 无 | Give 1 revival baguette | 开发者模式 |
| /ban/ban <player name> |
| Ban a player from server | 仅房主 |
| /components/components [quantity] |
| Give <quantity> components (default 10) | 开发者模式 |
| /die/die | 无 | Kill the player | 开发者模式 |
| /disableraids/disableraids <enabled> |
| Disable raids if true | 开发者模式 |
| /exportmultishape/exportmultishape | 无 | Exports a blueprint shape file | 开发者模式 |
| /foodplease/foodplease | 无 | Give 5 of each edible type | 开发者模式 |
| /gatling/gatling | 无 | Give the potato gatling gun | 开发者模式 |
| /glowsticks/glowsticks [quantity] |
| Give <quantity> components (default 10)游戏自带的这条说明照搬了 /components 的原文,连默认值一起搬了过来;这条指令实际发的是荧光棒,用的是参数列里写的那个默认值。 | 开发者模式 |
| /god/god | 无 | Mechanic characters will take no damage | 开发者模式 |
| /keycard/keycard | 无 | Give 1 keycard | 开发者模式 |
| /kick/kick <player name> |
| Kick a player from server | 仅房主 |
| /limited/limited | 无 | Use the limited inventory | 开发者模式 |
| /noaggro/noaggro [enable] |
| Toggles the player as a target | 开发者模式 |
| /powercore/powercore | 无 | Give 1 powercore | 开发者模式 |
| /seedsplease/seedsplease | 无 | Give 20 of each seed type and some soil | 开发者模式 |
| /setbreath/setbreath <breath> |
| Set player breath value | 开发者模式 |
| /sethp/sethp <hp> |
| Set player hp value | 开发者模式 |
| /shotgun/shotgun | 无 | Give the fries shotgun | 开发者模式 |
| /spawn/spawn [unitName] [amount] |
| Spawn a unit: 'woc', 'tapebot', 'totebot', 'haybot' | 开发者模式 |
| /spudgun/spudgun | 无 | Give the spudgun | 开发者模式 |
| /starterkit/starterkit [name] |
| Spawn a starter kit | 开发者模式 |
| /stopraid/stopraid | 无 | Cancel all incoming raids | 开发者模式 |
| /sunshake/sunshake | 无 | Give 1 sunshake | 开发者模式 |
| /timeofday/timeofday [timeOfDay] |
| Sets the time of the day as a fraction (0.5=mid day) | 开发者模式 |
| /timeprogress/timeprogress [enabled] |
| Enables or disables time progress | 开发者模式 |
| /tumble/tumble [enable] |
| Set tumble state | 开发者模式 |
| /unlimited/unlimited | 无 | Use the unlimited inventory | 开发者模式 |
| /unstuck/unstuck | 无 | Unstuck the player | 开发者模式 |
创造模式会为房间里的每位玩家注册这些指令。清空世界的两条留给房主,其中负责删除的那条还要先用另一条解锁。
| 指令 | 参数 | 游戏内说明 | 可用对象 |
|---|---|---|---|
| /aggroall/aggroall | 无 | All hostile units will be made aware of the player's position | 所有人 |
| /allowclear/allowclear [enable] |
| Enabled/Disables the /clear command | 仅房主 |
| /clear/clear | 无 | Remove all shapes in the world. It must first be enabled with /allowclear | 仅房主 |
| /day/day | 无 | Sets time of day to day | 所有人 |
| /dropscrap/dropscrap | 无 | Toggles the scrap loot from Haybots | 所有人 |
| /killall/killall | 无 | Kills all spawned units | 所有人 |
| /night/night | 无 | Sets time of day to night | 所有人 |
| /noaggro/noaggro [enable] |
| Toggles the player as a target | 所有人 |
| /noaggrocreations/noaggrocreations [enable] |
| Toggles whether the Tapebots will shoot at creations | 所有人 |
| /place/place <harvestable> |
| Places a harvestable at the aimed position. Must be placed on the ground. The harvestable parameter controls which harvestable to place: 'stone', 'tree', 'birch', 'leafy', 'spruce', 'pine' | 所有人 |
| /popcapsules/popcapsules [filter] |
| Opens all capsules. An optional filter controls which type of capsules to open: 'bot', 'animal' | 所有人 |
| /restrictions/restrictions [enable] |
| Toggles restrictions on creations | 所有人 |
这三条存在于挑战编辑器中,作用于你正在编辑的挑战。
| 指令 | 参数 | 游戏内说明 | 可用对象 |
|---|---|---|---|
| /save/save | 无 | Save the challenge | 挑战编辑器 |
| /stop/stop | 无 | Stop the test | 挑战编辑器 |
| /test/test | 无 | Test the challenge | 挑战编辑器 |