Jump to content

Armor With Names not working properly


BlockBoyZ

Recommended Posts

My code that I have here works fine with an unnamed golden helmet, but once it has a name, lore, or any other sort of nbt it just stops working. Anyone have any idea why this is, and if you have any fixes for this? 

Thanks

on armor change:
    while player is wearing golden helmet with name "Miner Helmet":
        apply night vision without particles to player for 5 seconds
        wait 5 seconds

Link to comment
Share on other sites

how was the item made? for instance, was it made given to the player using /give?, is it an item that was put on an anvil and name changed?

the first thing i would try is using a script to generate the item, simple command give player item name item yada yada....

are there any errors given when this is loaded?

Link to comment
Share on other sites

on armor change:
    player's helmet is golden helmet with name "&fMiner Helmet":
        apply night vision without particles to player for 9999 seconds
    player's helmet is golden helmet with name "&fMiner Helmet":
        remove night vision from the player's potion effects

command:
    permission: *
    trigger:
        give player 1 of golden helmet with name "&fMiner's Helmet"
       

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...