#How do i hide the upgrade tag section on upgraded netherite armor?
1 messages · Page 1 of 1 (latest)
that didn't work
i didn't get any errors but the attributes are still there
get:
set {_i} to expr-1.getRandom()
set {_meta} to {_i}.getItemMeta()
{_meta}.addItemFlags(hide attributes)
set {_map} to {_i}.getType().getDefaultAttributeModifiers()
loop ...{_map}.keySet():
{_meta}.addAttributeModifier(loop-value, {_map}.get(loop-value).get(0))
{_i}.setItemMeta({_meta})
return {_i}
command /customitems <text> <text>:
permission: *
trigger:
if arg-1 is "create":
set {customitems::%arg-2%} to player's tool
send message "&aCustom item created!" to player
if arg-1 is "give":
give player {customitems::%arg-2%} with hidden attributes
send message "&aCustom item granted!" to player
if arg-1 is "list":
send message "%{customitems::*}%" to player```
im pretty sure i used it right
idk if it is becuase the item is in a variable or not
?