Need help with NBT

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Zonnes

Member
Dec 1, 2024
3
0
1
24
Addons im using: SkBee

Version: dont know exact version, using mc 1.21.1

The issue: Im trying to add NBT to an item (hiding enchants to be exact) but it gives an error saying skript doesnt understand the nbt compound

code_language.skript:
replace all raw iron block named "&fCompressed Raw Iron" in (metadata tag "autofurnace4" of player) with iron block of mending 1 named "&fCompressed Smelted Iron" with lore "&7My paws can't handle this weight."

ive tried adding this:

code_language.skript:
replace all raw iron block named "&fCompressed Raw Iron" in (metadata tag "autofurnace4" of player) with iron block of mending 1 named "&fCompressed Smelted Iron" with lore "&7My paws can't handle this weight." with nbt "{HideFlags:61}"
 
AppleScript:
set {_x} to iron block of mending 1 named "&fCompressed Smelted Iron" with lore "&7My paws can't handle this weight."
set int tag "HideFlags" of nbt compound of {_x} to 61
replace all raw iron block named "&fCompressed Raw Iron" in (metadata tag "autofurnace4" of player) with {_x}