Skip to content

Commit 142a583

Browse files
committed
update README.md
1 parent e0fde28 commit 142a583

File tree

2 files changed

+19
-11
lines changed

2 files changed

+19
-11
lines changed

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,21 @@ _比如你要tphere的假人叫做anti_mob,而黑名单中有一个anti,那
109109
- Acceptable value: `true` `false`
110110
- Categories: `Feature`
111111

112+
### enableTpHerePrefixWhitelist
113+
114+
开启假人Tphere前缀白名单功能
115+
\
116+
开启这个功能后,如果你要tphere的假人名字前缀不在白名单中,会阻止你tphere并显示:You can't tp to this player because of tp
117+
limit.
118+
\
119+
_比如你要tphere的假人叫做anti_mob,而白名单中有一个anti,那你就能tp到这个假人_
120+
\
121+
假人白名单可以使用/tpmanager指令编辑(这个指令具体的用法看后面)
122+
123+
- Default value: `false`
124+
- Acceptable value: `true` `false`
125+
- Categories: `Feature`
126+
112127
### disabledEnderManPickupGoal
113128

114129
禁止小黑搬起方块~~在末地施工小黑老搬方块好烦qwq~~
@@ -133,16 +148,9 @@ _比如你要tphere的假人叫做anti_mob,而黑名单中有一个anti,那
133148
- Acceptable value: `true` `false`
134149
- Categories: `Feature`
135150

136-
### enableTpHerePrefixWhitelist
151+
### disabledNetherPortalSpawn
137152

138-
开启假人Tphere前缀白名单功能
139-
\
140-
开启这个功能后,如果你要tphere的假人名字前缀不在白名单中,会阻止你tphere并显示:You can't tp to this player because of tp
141-
limit.
142-
\
143-
_比如你要tphere的假人叫做anti_mob,而白名单中有一个anti,那你就能tp到这个假人_
144-
\
145-
假人白名单可以使用/tpmanager指令编辑(这个指令具体的用法看后面)
153+
禁止猪人生成在地狱门方块上
146154

147155
- Default value: `false`
148156
- Acceptable value: `true` `false`

src/main/java/io/github/optijava/opt_carpet_addition/mixins/disabledNetherPortalSpawn/NetherPortalBlock_Mixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
@Mixin(NetherPortalBlock.class)
1111
public class NetherPortalBlock_Mixin {
1212
/**
13-
* Mixin NetherPortalBlock.randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava.util.Random;)V
13+
* Mixin NetherPortalBlock.randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
1414
*
1515
* @author OptiJava
1616
* @reason rule: disabledNetherPortalSpawn
1717
*/
1818
@Inject(
1919
at = @At("HEAD"),
20-
method = "randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava.util.Random;)V",
20+
method = "randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V",
2121
cancellable = true
2222
)
2323
public void injectRandomTick(CallbackInfo ci) {

0 commit comments

Comments
 (0)