Author SHA1 Message Date
database-mysql 906e4cfa6e remove directory .github 2026-10-19 14:24:32 +08:00
database-mysql 3c5621b9b9 fix: persist flight state and fly speed per player (JSON config), restore on join/respawn
build / build (push) Has been cancelled
2026-10-19 13:26:41 +08:00
database-mysql b91166b5d6 editor fly min/max speed
build / build (push) Has been cancelled
2026-10-19 13:20:12 +08:00
database-mysql 7f308bfa00 update gradle.properties version
build / build (push) Has been cancelled
2026-10-19 13:06:35 +08:00
database-mysql bfbdfd2199 feat: add /fly speed <0.1-2.0> command, rename admin command to /fly player <player>, bump version to 1.1.0 2026-10-19 12:56:12 +08:00
4 changed files with 7 additions and 8 deletions

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@
## 环境要求
- Minecraft **1.21.11**
- Minecraft **1.21.8**
- Java **21+**
- Fabric Loader **≥ 0.19.5**
- Fabric API
+4 -4
View File
@@ -5,14 +5,14 @@ org.gradle.configuration-cache=true
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.21.11
yarn_mappings=1.21.11+build.6
minecraft_version=1.21.8
yarn_mappings=1.21.8+build.1
loader_version=0.19.5
loom_version=1.18-SNAPSHOT
# Mod Properties
version=1.2.0-1.21.11
version=1.2.0-1.21.8
group=top.gtb520.java.mods.openfly
# Dependencies
fabric_api_version=0.141.6+1.21.11
fabric_api_version=0.136.1+1.21.8
@@ -9,7 +9,6 @@ import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.fabricmc.fabric.api.entity.event.v1.ServerLivingEntityEvents;
import net.fabricmc.fabric.api.entity.event.v1.ServerPlayerEvents;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.command.DefaultPermissions;
import net.minecraft.command.argument.EntityArgumentType;
import net.minecraft.entity.damage.DamageTypes;
import net.minecraft.server.command.CommandManager;
@@ -87,7 +86,7 @@ public class fly {
})))
// /fly player <player> - 切换指定玩家的飞行状态(需要OP权限)
.then(CommandManager.literal("player")
.requires(source -> source.getPermissions().hasPermission(DefaultPermissions.GAMEMASTERS))
.requires(source -> source.hasPermissionLevel(2))
.then(CommandManager.argument("player", EntityArgumentType.player())
.executes(context -> {
ServerPlayerEntity targetPlayer = EntityArgumentType.getPlayer(context, "player");
+1 -1
View File
@@ -27,7 +27,7 @@
],
"depends": {
"fabricloader": ">=0.19.5",
"minecraft": "~1.21.11",
"minecraft": "~1.21.8",
"java": ">=21",
"fabric-api": "*"
}