-- 1. 生成
-- 生成物品或生物
c_spawn("物品或生物代码", 数量) -- 例子:c_spawn("hound")
DebugSpawn("物品或生物代码") -- 在鼠标位置生成
-- 2. 给予
-- 在物品栏或背包里生成物品
c_give("物品代码", 数量) -- 例子:c_give("cutgrass", 8)
-- 3. 设置生命
-- 设置生命值为百分比
c_sethealth(百分数) -- 例子:c_sethealth(0.5)
-- 4. 设置精神
-- 设置精神值为百分比
c_setsanity(百分数) -- 例子:c_setsanity(0.5)
-- 5. 设置饥饿
-- 设置饥饿值为百分比
c_sethunger(百分数) -- 例子:c_sethunger(0.5)
-- 6. 上帝模式
-- 开启或关闭上帝模式
c_godmode()
-- 7. 设置速度
-- 设置移动速度
c_speed(值) -- 例子:c_speed(10)
-- 8. 创造模式
-- 可以制作全物品
GetPlayer().components.builder:GiveAllRecipes()
-- 9. 设置生命上限
-- 设置最大生命值
GetPlayer().components.health:SetMaxHealth(值) -- 例子:GetPlayer().components.health:SetMaxHealth(87)
-- 10. 设置精神上限
-- 设置最大精神值
GetPlayer().components.sanity:SetMax(值) -- 例子:GetPlayer().components.sanity:SetMax(500)
-- 11. 设置饥饿上限
-- 设置最大饥饿值
GetPlayer().components.hunger:SetMax(值) -- 例子:GetPlayer().components.hunger:SetMax(364)
-- 12. 停止饥饿
-- 停止饥饿减少
GetPlayer().components.hunger:Pause(true)
-- 13. 变成海狸(吴迪专用)
-- 变成海狸形态
GetPlayer().components.beaverness:SetPercent(1)
-- 14. 传送
-- 传送到附近的指定实体
c_gonext("代码") -- 例子:c_gonext("beefalo")
-- 15. 删除
-- 删除鼠标所在位置的物体
TheInput:GetWorldEntityUnderMouse():Remove()
-- 16. 地图全开
-- 显示全部地图
GetWorld().minimap.MiniMap:ShowArea(0,0,0,10000)
-- 17. 跳过一天
-- 跳过一天时间
GetClock():MakeNextDay()
-- 18. 跳过几天
-- 跳过指定天数
for x = 1, 值 do GetClock():MakeNextDay() end -- 例子:for x = 1, 50 do GetClock():MakeNextDay() end
-- 19. 跳过一段时间
-- 跳过指定时间单位
LongUpdate(值) -- 例子:LongUpdate(120)
-- 20. 设置时间段
-- 设置白天、黄昏、夜晚的时长
GetClock():SetSegs(白天, 黄昏, 夜晚) -- 例子:GetClock():SetSegs(7, 8, 1)
-- 21. 跳过时间段
-- 跳过当前时间段
GetClock():NextPhase()
-- 22. 开始春天(DLC1)
-- 切换到春天
GetSeasonManager():StartSpring()
-- 23. 开始夏天
-- 切换到夏天
GetSeasonManager():StartSummer()
-- 24. 开始秋天(DLC1)
-- 切换到秋天
GetSeasonManager():StartAutumn()
-- 25. 开始冬天
-- 切换到冬天
GetSeasonManager():StartWinter()
-- 26. 开始下雨
-- 开始下雨
GetSeasonManager():StartPrecip()
-- 27. 停止下雨
-- 停止下雨
GetSeasonManager():StopPrecip()
-- 28. 生成闪电
-- 在玩家位置生成闪电
GetSeasonManager():DoLightningStrike(Vector3(GetPlayer().Transform:GetWorldPosition()))
-- 29. 测量距离
-- 显示角色到鼠标物品之间的距离
print(math.sqrt(GetPlayer():GetDistanceSqToInst(TheInput:GetWorldEntityUnderMouse())))
-- 30. 解锁角色
-- 解锁指定角色
GetPlayer().profile:UnlockCharacter("角色名称") -- 例子:GetPlayer().profile:UnlockCharacter("willow")
GetPlayer().profile:Save()
-- 全部解锁
GetPlayer().profile:UnlockEverything()
-- 31. 清除死亡记录
-- 清除死亡记录
ErasePersistentString("morgue")