Skip to content

Commit

Permalink
endermitesAlwaysHostile -> endermitesInconsistencyFix and better …
Browse files Browse the repository at this point in the history
…description for it
  • Loading branch information
Ivan-1F committed Jun 9, 2022
1 parent 0435970 commit a970681
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 19 deletions.
2 changes: 1 addition & 1 deletion docs/readme-zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- [发射器不会影响玩家](rules-zh_cn.md#发射器不会影响玩家-dispensersNotAffectPlayers)
- [可编辑告示牌](rules-zh_cn.md#可编辑告示牌-editableSign)
- [末地烛避雷针](rules-zh_cn.md#末地烛避雷针-endLightningRod)
- [末影螨总是拥有仇恨](rules-zh_cn.md#末影螨总是拥有仇恨-endermitesAlwaysHostile)
- [末影螨不一致性修复](rules-zh_cn.md#末影螨不一致性修复-endermitesInconsistencyFix)
- [假人名称补全预设](rules-zh_cn.md#假人名称补全预设-fakePlayerNameSuggestions)
- [假人名称前缀限制](rules-zh_cn.md#假人名称前缀限制-fakePlayerPrefixRestriction)
- [假人名称后缀限制](rules-zh_cn.md#假人名称后缀限制-fakePlayerSuffixRestriction)
Expand Down
2 changes: 1 addition & 1 deletion docs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- [dispensersNotAffectPlayers](rules.md#dispensersNotAffectPlayers)
- [editableSign](rules.md#editableSign)
- [endLightningRod](rules.md#endLightningRod)
- [endermitesAlwaysHostile](rules.md#endermitesAlwaysHostile)
- [endermitesInconsistencyFix](rules.md#endermitesInconsistencyFix)
- [fakePlayerNameSuggestions](rules.md#fakePlayerNameSuggestions)
- [fakePlayerPrefixRestriction](rules.md#fakePlayerPrefixRestriction)
- [fakePlayerSuffixRestriction](rules.md#fakePlayerSuffixRestriction)
Expand Down
12 changes: 7 additions & 5 deletions docs/rules-zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,16 @@
- 参考选项: `true`, `false`
- 分类: `ICA`, `FEATURE`

### 末影螨总是拥有仇恨 (endermitesAlwaysHostile)
### 末影螨不一致性修复 (endermitesInconsistencyFix)

通过刷怪蛋和 /summon 指令生成的末影螨将激怒末影人
通过刷怪蛋和 /summon 指令生成的末影螨将激怒末影人(修复MC-53518)

由于MC-53518于20w46a修复,该规则仅于1.17前的版本有效

- 类型: `boolean`
- 默认值: `false`
- 参考选项: `true`, `false`
- 分类: `ICA`, `CREATIVE`
- 分类: `ICA`, `CREATIVE`, `BUGFIX`

### 假人名称补全预设 (fakePlayerNameSuggestions)

Expand Down Expand Up @@ -339,9 +341,9 @@ blacklist: 规则 生物黑名单(mobBlackList) 中声明的生物无法在世

启用 '/xpcounter' 指令

使用 '/xpcounter <player> reset' 重置计数器
使用 '/xpcounter <player> reset' 重置一个玩家的计数器

使用 '/xpcounter <player>' 查询计数器
使用 '/xpcounter <player>' 查询一个玩家的计数器

使用 '/log xpcounter <players>' 订阅计数器

Expand Down
12 changes: 7 additions & 5 deletions docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,16 @@ Lightning will NOT naturally spawn on end rods, but it will when end rods are hi
- Suggested options: `true`, `false`
- Categories: `ICA`, `FEATURE`

### endermitesAlwaysHostile
### endermitesInconsistencyFix

Endermen will be hostile to endermites spawned by spawn eggs or /summon command
Endermen will be hostile to endermites spawned by spawn eggs or /summon command (fixes MC-53518)

This rule is only available in <1.17 since MC-53518 got fixed in 20w46a

- Type: `boolean`
- Default value: `false`
- Suggested options: `true`, `false`
- Categories: `ICA`, `CREATIVE`
- Categories: `ICA`, `CREATIVE`, `BUGFIX`

### fakePlayerNameSuggestions

Expand Down Expand Up @@ -339,9 +341,9 @@ A tool like 'hopperCounter' to use players as xp counters

Enables '/xpcounter' command

Use '/xpcounter <player> reset' to reset the counter
Use '/xpcounter <player> reset' to reset a player's counter

Use '/xpcounter <player>' to query the counter
Use '/xpcounter <player>' to query a player's counter

Use '/log xpcounter <players>' to subscribe xp counters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,13 @@ public void onValueChanged(Boolean oldValue, Boolean newValue) {
public static boolean strictBlockPlacement = false;

@Rule(
desc = "Endermen will be hostile to endermites spawned by spawn eggs or /summon command",
category = {ICA, CREATIVE}
desc = "Endermen will be hostile to endermites spawned by spawn eggs or /summon command (fixes MC-53518)",
extra = {
"This rule is only available in <1.17 since MC-53518 got fixed in 20w46a"
},
category = {ICA, CREATIVE, BUGFIX}
)
public static boolean endermitesAlwaysHostile = false;
public static boolean endermitesInconsistencyFix = false;

@Rule(
desc = "Enables /replaceproperties command for easily replacing properties of all blocks in a range",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
public class EndermiteEntityMixin {
@Inject(method = "isPlayerSpawned", at = @At("HEAD"), cancellable = true)
private void playerSpawnedAlwaysToBeTrue(CallbackInfoReturnable<Boolean> cir) {
if (IvanCarpetAdditionSettings.endermitesAlwaysHostile) {
if (IvanCarpetAdditionSettings.endermitesInconsistencyFix) {
cir.setReturnValue(true);
}
}
Expand Down
8 changes: 5 additions & 3 deletions src/main/resources/assets/ivancarpetaddition/lang/zh_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,11 @@ ivancarpetaddition:
strictBlockPlacement:
name: 严格方块防止
desc: 玩家无法在空气上防止方块(阻止 litematica 轻松放置)
endermitesAlwaysHostile:
name: 末影螨总是拥有仇恨
desc: 通过刷怪蛋和 /summon 指令生成的末影螨将激怒末影人
endermitesInconsistencyFix:
name: 末影螨不一致性修复
desc: 通过刷怪蛋和 /summon 指令生成的末影螨将激怒末影人(修复MC-53518)
extra:
'0': 由于MC-53518于20w46a修复,该规则仅于1.17前的版本有效
commandReplaceProperties:
name: 替换属性命令开关
desc: 启用 /replaceproperties 来方便地替换一定范围内所有方块的属性

0 comments on commit a970681

Please sign in to comment.