BlockBoyZ Posted September 24, 2023 Share Posted September 24, 2023 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 More sharing options...
Adramelke Posted October 1, 2023 Share Posted October 1, 2023 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 More sharing options...
BlockBoyZ Posted October 1, 2023 Author Share Posted October 1, 2023 I tried all three. I gave the item via commands and skript, and I also named it in an anvil. Neither of the three worked. Link to comment Share on other sites More sharing options...
Adramelke Posted October 2, 2023 Share Posted October 2, 2023 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 More sharing options...
BlockBoyZ Posted October 2, 2023 Author Share Posted October 2, 2023 It worked! Thank you! 1 Link to comment Share on other sites More sharing options...
Adramelke Posted October 2, 2023 Share Posted October 2, 2023 The most likely culprit for this problem is most likely something to do with the text formatting for the item name? i've had this issue before and i'm not sure why this fixes it... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now