feat: add getBlockTranslateKeyFromName

This commit is contained in:
子沐呀
2024-05-31 20:15:28 +08:00
Unverified
parent 436370ddfe
commit e9b4c33a66
2 changed files with 12 additions and 1 deletions
+6 -1
View File
@@ -126,7 +126,8 @@ const GMLIB_API = {
blockIsAlwaysDestroyable: ll.import("GMLIB_API", "blockIsAlwaysDestroyable"),
blockPlayerWillDestroy: ll.import("GMLIB_API", "blockPlayerWillDestroy"),
playerAttack: ll.import("GMLIB_API", "playerAttack"),
playerPullInEntity: ll.import("GMLIB_API", "playerPullInEntity")
playerPullInEntity: ll.import("GMLIB_API", "playerPullInEntity"),
getBlockTranslateKeyFromName: ll.import("GMLIB_API", "getBlockTranslateKeyFromName")
}
const FloatingTextList = [];
@@ -451,6 +452,10 @@ class Minecraft {
static readNbtFromFile(path, isBinary = true) {
return GMLIB_API.readNbtFromFile(path, isBinary);
}
static getBlockTranslateKeyFromName(name) {
return GMLIB_API.getBlockTranslateKeyFromName(name);
}
}
class Recipes {