Skip to content

Commit

Permalink
added docs for editableSign, better commandReplaceProperties options
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-1F committed May 16, 2024
1 parent b9d9d47 commit 7bab1c4
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/readme-zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
- [可再生灵魂沙](rules-zh_cn.md#可再生灵魂沙-renewableSoulSand)
- [湿海绵在地狱蒸发](rules-zh_cn.md#湿海绵在地狱蒸发-spongeDryInNether)
- [禁止结冰](rules-zh_cn.md#禁止结冰-stopFreezing)
- [严格方块防止](rules-zh_cn.md#严格方块防止-strictBlockPlacement)
- [严格方块放置](rules-zh_cn.md#严格方块放置-strictBlockPlacement)
- [亡灵生物头盔不可被阳光破坏](rules-zh_cn.md#亡灵生物头盔不可被阳光破坏-unbreakableHelmetInSunlight)
- [亡灵生物免疫阳光](rules-zh_cn.md#亡灵生物免疫阳光-undeadImmuneToSunlight)
- [经验记数器](rules-zh_cn.md#经验记数器-xpCounter)
Expand Down
14 changes: 9 additions & 5 deletions docs/rules-zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

启用 /replaceproperties 来方便地替换一定范围内所有方块的属性

- 类型: `boolean`
- 类型: `String`
- 默认值: `false`
- 参考选项: `true`, `false`
- 参考选项: `true`, `false`, `ops`, `0`, `1`, `2`, `3`, `4`
- 分类: `ICA`, `COMMAND`

### 容器不掉落物品栏 (containerDropInventoryDisabled)
Expand Down Expand Up @@ -80,6 +80,8 @@

当你在潜行状态下用空手使用一个告示牌时重新打开告示牌编辑界面

本规则仅在 Minecraft < 1.20 有效。1.20 后原版支持告示牌编辑

- 类型: `boolean`
- 默认值: `false`
- 参考选项: `true`, `false`
Expand Down Expand Up @@ -233,6 +235,8 @@

修改生物生成的限制模式

none: 禁用生物生成限制

whitelist: 只有在规则 生物白名单(mobWhiteList) 中声明的生物可以在世界中生成。规则 生物黑名单(mobBlackList) 将被忽略

blacklist: 规则 生物黑名单(mobBlackList) 中声明的生物无法在世界中生成。规则 生物白名单(mobWhiteList) 将被忽略
Expand Down Expand Up @@ -306,9 +310,9 @@ blacklist: 规则 生物黑名单(mobBlackList) 中声明的生物无法在世
- 参考选项: `true`, `false`
- 分类: `ICA`, `FEATURE`

### 严格方块防止 (strictBlockPlacement)
### 严格方块放置 (strictBlockPlacement)

玩家无法在空气上防止方块(阻止 litematica 轻松放置)
玩家无法在空气上放置方块(阻止 litematica 轻松放置)

- 类型: `boolean`
- 默认值: `false`
Expand Down Expand Up @@ -350,5 +354,5 @@ blacklist: 规则 生物黑名单(mobBlackList) 中声明的生物无法在世
- 类型: `boolean`
- 默认值: `false`
- 参考选项: `true`, `false`
- 分类: `ICA`, `CREATIVE`, `FEATURE`
- 分类: `ICA`, `CREATIVE`, `FEATURE`, `COMMAND`

10 changes: 7 additions & 3 deletions docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Overwrite the slowdown speed of cobwebs

Enables /replaceproperties command for easily replacing properties of all blocks in a range

- Type: `boolean`
- Type: `String`
- Default value: `false`
- Suggested options: `true`, `false`
- Suggested options: `true`, `false`, `ops`, `0`, `1`, `2`, `3`, `4`
- Categories: `ICA`, `COMMAND`

### containerDropInventoryDisabled
Expand Down Expand Up @@ -80,6 +80,8 @@ Dispensers will not dispense armor to players

Use a sign block with main hand empty when you are sneaking to reopen the sign editor

This rule only affects Minecraft < 1.20. Sign editing is supported in vanilla after 1.20

- Type: `boolean`
- Default value: `false`
- Suggested options: `true`, `false`
Expand Down Expand Up @@ -233,6 +235,8 @@ Set rule 'mobSpawningRestrictionMode' to 'none' to disable

Modify the way to restrict mob spawning

none: Disable mob spawning restriction

whitelist: Only mobs defined in rule 'mobWhiteList' can spawn in the world. Rule 'mobBlackList' will be ignored

blacklist: Mobs defined in rule 'mobBlackList' cannot spawn in the world. Rule 'mobWhiteList' will be ignored
Expand Down Expand Up @@ -350,5 +354,5 @@ Use '/log xpcounter <players>' to subscribe xp counters
- Type: `boolean`
- Default value: `false`
- Suggested options: `true`, `false`
- Categories: `ICA`, `CREATIVE`, `FEATURE`
- Categories: `ICA`, `CREATIVE`, `FEATURE`, `COMMAND`

Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,6 @@ public void onValueChanged(Boolean oldValue, Boolean newValue) {
@Rule(categories = {ICA, CREATIVE, BUGFIX})
public static boolean endermitesInconsistencyFix = false;

@Rule(categories = {ICA, COMMAND})
@Rule(categories = {ICA, COMMAND}, options = {"true", "false", "ops", "0", "1", "2", "3", "4"})
public static String commandReplaceProperties = "false";
}
2 changes: 2 additions & 0 deletions src/main/resources/assets/ivancarpetaddition/lang/en_us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ ivancarpetaddition:
editableSign:
name: editableSign
desc: Use a sign block with main hand empty when you are sneaking to reopen the sign editor
extra:
'0': This rule only affects Minecraft < 1.20. Sign editing is supported in vanilla after 1.20
mobBlackList:
name: mobBlackList
desc: Stop some mobs from spawning
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/assets/ivancarpetaddition/lang/zh_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ ivancarpetaddition:
editableSign:
name: 可编辑告示牌
desc: 当你在潜行状态下用空手使用一个告示牌时重新打开告示牌编辑界面
extra:
'0': 本规则仅在 Minecraft < 1.20 有效。1.20 后原版支持告示牌编辑
mobBlackList:
name: 生物黑名单
desc: 阻止一些特定的生物生成
Expand Down

0 comments on commit 7bab1c4

Please sign in to comment.