使用Kotlin重写

This commit is contained in:
TheWhiteDog9487
2026-05-17 15:22:39 +08:00
parent 5f5172f65c
commit 7254230a2c
26 changed files with 542 additions and 606 deletions

View File

@@ -5,8 +5,6 @@
"info.success.back": "Teleported %s back to original position",
"error.no_target": "There is no teleported target, and the teleported player ID is explicitly specified when executed by a non-player object",
"error.no_old_position": "%s has not used random teleport yet, so it cannot be traced back",
"warning.radius_equal_zero": "Warning: Since you set a random radius of 0, selecting the right height will teleport you directly to %d %d",
"warning.radius_equal_zero_no_target": "Warning: Since you set a random radius of 0 and you don't set a random center point coordinates, nothing happens",
"bilibili": "Bilibili",
"command.argument.radius": "radius",
"command.argument.target": "teleported entity",

View File

@@ -5,8 +5,6 @@
"info.success.back": "已将玩家%s传送回原位置",
"error.no_target": "不存在被传送目标由非玩家物体执行命令时请显式指定被传送玩家ID",
"error.no_old_position": "%s还未使用过随机传送因此无法回溯",
"warning.radius_equal_zero": "警告由于你设置的随机半径为0因此在选择出合适高度之后将直接把你传送至%d %d",
"warning.radius_equal_zero_no_target": "警告由于你设置的随机半径为0并且未设置随机中心点坐标因此什么都不会发生",
"bilibili": "TheWhiteDog9487的哔哩哔哩主页",
"command.argument.radius": "半径",
"command.argument.target": "被传送实体",

View File

@@ -17,7 +17,11 @@
"environment": "*",
"entrypoints": {
"main": [
"xyz.thewhitedog9487.RandomTeleporter"]
{
"value": "xyz.thewhitedog9487.RandomTeleporter",
"adapter": "kotlin"
}
]
},
"mixins": [
"randomteleporter.mixins.json",
@@ -30,7 +34,8 @@
"fabricloader": ">=0.18.6",
"minecraft": "26.1.2",
"java": ">=25",
"fabric-api": ">=0.145.4"
"fabric-api": ">=0.145.4",
"fabric-language-kotlin": "*"
},
"suggests": {
"another-mod": "*"

View File

@@ -1,11 +1,14 @@
{
"required": false,
"required": true,
"package": "xyz.thewhitedog9487.mixin",
"compatibilityLevel": "JAVA_21",
"compatibilityLevel": "JAVA_25",
"mixins": [
],
"injectors": {
"defaultRequire": 1
},
"overwrites": {
"requireAnnotations": true
}
}