aboutsummaryrefslogtreecommitdiff
path: root/utils/utils.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-04 20:38:05 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-04 20:38:05 +0800
commita5dbdbac4598852fce436a20155616634fc4718f (patch)
tree9da797a77c4b4336465776319c012000c5d5d4ec /utils/utils.js
parentc9d34afde5042076b41673f4a3de7aa9e23e7e3b (diff)
downloadSoopyV2-a5dbdbac4598852fce436a20155616634fc4718f.tar.gz
SoopyV2-a5dbdbac4598852fce436a20155616634fc4718f.tar.bz2
SoopyV2-a5dbdbac4598852fce436a20155616634fc4718f.zip
item worth
Diffstat (limited to 'utils/utils.js')
-rw-r--r--utils/utils.js3
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
},