From fba53a5d43a05bdd21fd3eb76f868de329d9381e Mon Sep 17 00:00:00 2001 From: 3944Realms Date: Tue, 3 Sep 2024 18:50:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?2024-09-02=20=E5=88=9D=E7=89=88=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D&=E6=B8=B8=E6=88=8F=E8=A7=84=E5=88=99=E6=94=B9?= =?UTF-8?q?=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 03927f8..4c8fc16 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,20 @@ +## 简介 +现在开始你可以用拴绳栓住玩家,也可以栓住自己了,不如尝试栓住彼此来通关我的世界吧( -Installation information -======= -This template repository can be directly cloned to get you started with a new -mod. Simply create a new repository cloned from this one, by following the -instructions at [github](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template). +你可以: +1. 拴绳可以拴住玩家 +2. 在无任何栓住实体的情况下用拴绳对准栅栏可以拴住自己 +3. 可以用指令来获取和调整玩家实体的拴绳的长度 +4. 目前有游戏规则来决定被栓玩家是否在传送时能随拴绳持有者一起传送 -Once you have your clone, simply open the repository in the IDE of your choice. The usual recommendation for an IDE is either IntelliJ IDEA or Eclipse. -> **Note**: For Eclipse, use tasks in `Launch Group` instead of ones founds in `Java Application`. A preparation task must run before launching the game. NeoGradle uses launch groups to do these subsequently. +## 指令 -If at any point you are missing libraries in your IDE, or you've run into problems you can -run `gradlew --refresh-dependencies` to refresh the local cache. `gradlew clean` to reset everything -{this does not affect your code} and then start the process again. +* `/lp leash length [<玩家>] setLength <长度> ` - 设置该玩家的拴绳长度 [ 如果<玩家>为空则代表执行对象是自己 ,<长度> 为在 5 ~ 1024之间的浮点数 ] -Mapping Names: -============ -By default, the MDK is configured to use the official mapping names from Mojang for methods and fields -in the Minecraft codebase. These names are covered by a specific license. All modders should be aware of this -license. For the latest license text, refer to the mapping file itself, or the reference copy here: -https://github.com/NeoForged/NeoForm/blob/main/Mojang.md +* `/lp leash length [<玩家>] [getLength]` - 获取该玩家的拴绳长度 [ 如果<玩家>为空则代表执行对象是自己 , [getLength] 可不写] -Additional Resources: -========== -Community Documentation: https://docs.neoforged.net/ -NeoForged Discord: https://discord.neoforged.net/ +## 游戏规则 + +* `LP.TeleportWithLeashedPlayers` - 来决定被栓玩家是否在传送时能随拴绳持有者一起传送 [默认值: True] \ No newline at end of file From beec61504665b231db22991c5662acb49b2388ad Mon Sep 17 00:00:00 2001 From: 3944Realms Date: Tue, 3 Sep 2024 18:52:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?2024-09-02=20=E5=88=9D=E7=89=88=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D&=E6=B8=B8=E6=88=8F=E8=A7=84=E5=88=99=E6=94=B9?= =?UTF-8?q?=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../r3944realms/leashedplayer/content/gamerules/Gamerules.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/r3944realms/leashedplayer/content/gamerules/Gamerules.java b/src/main/java/com/r3944realms/leashedplayer/content/gamerules/Gamerules.java index 4f6108e..ffab49c 100644 --- a/src/main/java/com/r3944realms/leashedplayer/content/gamerules/Gamerules.java +++ b/src/main/java/com/r3944realms/leashedplayer/content/gamerules/Gamerules.java @@ -12,7 +12,7 @@ import java.util.HashMap; import java.util.function.BiConsumer; public class Gamerules { - public static final String GAMERULE_PREFIX = "RWN."; + public static final String GAMERULE_PREFIX = "LP."; public static final GameruleRegistry GAMERULE_REGISTRY = GameruleRegistry.INSTANCE; public static final HashMap gamerulesBooleanValuesClient = new HashMap<>(); public static final HashMap gameruleIntegerValuesClient = new HashMap<>();