#shop

1 messages · Page 1 of 1 (latest)

rich pebble
#
                if player has shiny wooden sword named "&2&lOak Wood Sword &7[&51&7]" with lore " ", "&2Attack Damage &7[&51&7]" with hidden attributes flag:
                    remove shiny wooden sword named "&2&lOak Wood Sword &7[&51&7]" with lore " ", "&2Attack Damage &7[&51&7]" with hidden attributes flag from player's inventory
                    make player run command "/ie get os2" as op
                else:
                    send "&8&lSacred&6&lGens &8| &7You cannot afford this!" to player
                    play sound "entity.villager.no"``` no errors but when i click it says cannot afford pls help been trying to fix for 4 days
rocky mason
#

If the condition is failing it's caused by item not being the same
ex: diamond of lure 10 named "32" is not the same as diamond named "32"
the smallest formatting change will cause this to fail

rich pebble
#

hm ok

#

thx

#

i will try to see mistake

rich pebble
#

if player has wooden sword named "&2&lOak Wood Sword &7[&51&7]" with lore " ", "&2Attack Damage &7[&51&7]" is enchanted with mending with hidden attributes flag:

#

would that be good?

rocky mason
#

no that just looks like a made up syntax