I want to create a shop where you can buy enchantments up to level 10. It should also be possible to upgrade from level 8 to 9 if you already have level 8 enchantments, but only if you already have the level 8 enchantment. This simply isn't working.
Here's a small example.
` Hide_34_Lvl10:
MenuItem:
- type:WHITE_STAINED_GLASS_PANE
- name:&0
- flags:HIDE_ATTRIBUTES
- flags:HIDE_ENCHANTS
RewardType: NOTHING
PriceType: NOTHING
InventoryLocation: 34
Condition:
- type:stringequals:%player_item_in_hand_level_efficiency%:10
2. Wenn GENAU Level 9 -> Zeige Upgrade
Show_Upgrade_9_to_10:
MenuItem:
- type:ANVIL
- amount:1
- name:&a&lUPGRADE: &79 -> &410
- 'lore1:&7Zahle nur die Differenz!'
- 'lore2:&cPreis: &a1.000.000 &ePoints'
- flags:HIDE_ATTRIBUTES
- flags:HIDE_ENCHANTS
RewardType: ENCHANTMENT
Reward: EFFICIENCY#10
PriceType: POINTS
Price: 1000000
Message: '&aUpgrade auf Effizienz 10 erfolgreich!'
InventoryLocation: 34
Condition:
- type:stringequals:%player_item_in_hand_level_efficiency%:9`
I've also tried using placeholdermatch as the type, but it simply can't identify the enchantment.
Is there a way to make it work?
Best regards,
Patrick
I want to create a shop where you can buy enchantments up to level 10. It should also be possible to upgrade from level 8 to 9 if you already have level 8 enchantments, but only if you already have the level 8 enchantment. This simply isn't working.
Here's a small example.
` Hide_34_Lvl10:
MenuItem:
- type:WHITE_STAINED_GLASS_PANE
- name:&0
- flags:HIDE_ATTRIBUTES
- flags:HIDE_ENCHANTS
RewardType: NOTHING
PriceType: NOTHING
InventoryLocation: 34
Condition:
- type:stringequals:%player_item_in_hand_level_efficiency%:10
2. Wenn GENAU Level 9 -> Zeige Upgrade
Show_Upgrade_9_to_10:
MenuItem:
- type:ANVIL
- amount:1
- name:&a&lUPGRADE: &79 -> &410
- 'lore1:&7Zahle nur die Differenz!'
- 'lore2:&cPreis: &a1.000.000 &ePoints'
- flags:HIDE_ATTRIBUTES
- flags:HIDE_ENCHANTS
RewardType: ENCHANTMENT
Reward: EFFICIENCY#10
PriceType: POINTS
Price: 1000000
Message: '&aUpgrade auf Effizienz 10 erfolgreich!'
InventoryLocation: 34
Condition:
- type:stringequals:%player_item_in_hand_level_efficiency%:9`
I've also tried using placeholdermatch as the type, but it simply can't identify the enchantment.
Is there a way to make it work?
Best regards,
Patrick