Skip to content

Commit

Permalink
add language and update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhxiao committed May 10, 2022
1 parent 6f5a328 commit 26f1e33
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
9 changes: 9 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 1.6.4.02-0.11.0
### BUG
- 修复漏斗的在非主世界无法使用的bug
### 功能
- 新增`func ncrob <bool>`,开启后可无视阻挡打开所有容器
- 新增`func nccost <bool>`,开启后发射器和投掷器内的物品不消耗
- 新增`func fbld <int>`,设置为1时能无视实体阻挡放置方块,设置为2时能取消所有放置检查
- 新增`func grnd <int>`,大于0时候会修改高斯随机的缩小倍率,0表示完全取消高斯随机(投掷等行为会完全失去随机性)

## 1.16.4.02-0.9.81
- 漏斗计数器支持中文名称
- 删除部分无用的标准输出
Expand Down
4 changes: 2 additions & 2 deletions mod/TrapdoorMod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ void TrapdoorMod::registerCommands() {
info(player, LANG("command.func.ncrob.set"), holder->getBool());
}))
//容器无消耗
->then(ARG("nccost", "command.func.ncost.desc", BOOL,
->then(ARG("nccost", "command.func.nccost.desc", BOOL,
{
this->singleFunctions.noContainerCost = holder->getBool();
info(player, LANG("command.func.ncost.set"),
info(player, LANG("command.func.nccost.set"),
holder->getBool());
}))
//强制放置
Expand Down
10 changes: 9 additions & 1 deletion package/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"command.func.hopper.desc": "Toggle Counter",
"command.func.hopper.set": "Set the hopper counter to %d",
"command.func.spawn.desc": "Toggle spawn point and spawn probability display",
"command.func.spawn.set": "Set the spawn point and spawn probability display to %d",
"command.func.spawn.set": "Set spawn point and spawn probability display to %d",
"command.func.rotate.desc": "Toggle rotating cactus",
"command.func.rotate.set": "Set the rotating cactus to %d",
"command.func.draw.desc": "Toggle draw command",
Expand All @@ -72,6 +72,14 @@
"command.func.expl.set": "Set explosion no block damage to %d",
"command.func.ncud.desc": "Toggle no pending tick block updates",
"command.func.ncud.set": "Set pending tick block updates to %d",
"command.func.ncrob.desc": "Toggle container opening ignore obstruct",
"command.func.ncrob.set": "Set container opening ignore obstruct to %d",
"command.func.nccost.desc": "Toggle infinite dropper/dospenser",
"command.func.nccost.set": "Set infinite dropper/dospenser to %d",
"command.func.fbld.desc": "Set force build level",
"command.func.fbld.set": "Set force build level to %d",
"command.func.grng.desc": "Set reduction ratio of Gaussian random(>=0)",
"command.func.grng.set": "Set reduction ratio of Gaussian random to %d",
"command.o.desc": "Quickly switch spectator mode",
"command.o.set": "Set player [%s] as spectator mode",
"command.s.desc": "Quickly switch survival mode",
Expand Down
8 changes: 8 additions & 0 deletions package/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
"command.func.expl.set": "设置爆炸破坏地形为:%d",
"command.func.ncud.desc": "开关阻止NC更新",
"command.func.ncud.set": "设置阻止NC更新为%d",
"command.func.ncrob.desc": "开关无视阻挡打开容器",
"command.func.ncrob.set": "设置无视阻挡打开容器为%d",
"command.func.nccost.desc": "开关无消耗发射器/投掷器",
"command.func.nccost.set": "设置无消耗发射器/投掷器为%d",
"command.func.fbld.desc": "修改强制方块放置等级",
"command.func.fbld.set": "设置强制方块放置等级为%d",
"command.func.grng.desc": "设置高斯随机数的缩小倍率(<0不生效,0为无限小)",
"command.func.grng.set": "设置高斯随机数的缩小倍率为%d",
"command.o.desc": "快捷切换观察者模式",
"command.o.set": "设置玩家[%s]为观察者模式",
"command.s.desc": "快捷切换生存模式",
Expand Down

0 comments on commit 26f1e33

Please sign in to comment.