Hello guys, I've been trying to find a way to give an item just the glow an enchantment gives and if possible change it's colour, for example green, blue or maybe red. This is going to be used to indicate an item's rarity. Was unable to find anything so I'm writing in hopes anyone knows something more. Thanks in advance for any leads or snippets.
https://github.com/pmmp/PocketMine-MP/blob/stable/src/pocketmine/item/Item.php#L59 And, :clap: texture :clap: pack
PHP: $ench = new ListTag(self::TAG_ENCH, [], NBT::TAG_Compound); $ench->push(new CompoundTag("", [])); $this->setNamedTagEntry($ench); Okay so this does add an enchantment but it also adds an Protection 0 to the item display. What am I doing wrong?
Solution was: PHP: $ench = new ListTag(self::TAG_ENCH, [], NBT::TAG_Compound); $this->setNamedTagEntry($ench); It seems like i don't need a new Compond tag to get the enchant glow. Thank you @minijaham