diff options
Diffstat (limited to 'utils/utils.js')
-rw-r--r-- | utils/utils.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/utils.js b/utils/utils.js index 504b3bf..15b5489 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -32,6 +32,9 @@ let utils = { getSBID: function (item) { return item?.getNBT()?.getCompoundTag("tag")?.getCompoundTag("ExtraAttributes")?.getString("id") || null }, + getSBUUID: function (item) { + return item?.getNBT()?.getCompoundTag("tag")?.getCompoundTag("ExtraAttributes")?.getString("uuid") || null + }, getSBEnchant: function (item, enchant) { return item?.getNBT()?.getCompoundTag("tag")?.getCompoundTag("ExtraAttributes")?.getCompoundTag("enchantments")?.getInteger(enchant) || null }, |