From a5dbdbac4598852fce436a20155616634fc4718f Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 4 Aug 2022 20:38:05 +0800 Subject: item worth --- utils/utils.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils/utils.js') 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 }, -- cgit