-AncientRapier: +Manacrystalassign: + Type: Assignment + Interact Scripts: + - 1 manacrystalvender + +manacrystalvender: + Type: Interact + Steps: + 1: + Click Trigger: + script: + - Chat "I'll trade you 5 stone for 5 Mana Crystals" + 2: + Click Trigger: + script: + - if { + - ^TAKE STONE QTY:5 + - give i@Manacrystal qty:5 + - zap step:1 + } else { + - chat "looks like you dont have any Stone." + } +Manacrystal: type: item - debug: false - material: i@iron_sword - display name: <&3>Ancient Rapier - lore: - - <&6>A Ancient Rapier - - <&4>+ 10% Chance to inflict Lightning! - - <&4>+ 0.5<&pc> Auto-Repair - enchantments: - - KNOCKBACK:1 + material: LAPIS_LAZULI + display name: Mana Crystal + lore: + - Needed when casting + - spells with wands. + - Consumed when + - casting spells + no_id: false + bound: false - - LOOT_BONUS_MOBS:5 - - DAMAGE_ALL:5 - - DAMAGE_UNDEAD:5 - - DURABILITY:5 - recipe: - - i@diamond|i@AncientShard|i@diamond - - i@AncientShard|i@RustyRapier|i@AncientShard - - i@diamond|i@AncientShard|i@diamond - no_id: false - bound: false - -SwordEffect List: - type: world - debug: false - events: - on player damages entity: - - if == i@AncientRapier { - - ^if == 1 { - - ^adjust durability:0 save:ancientsword - - ^take - - ^give slot: - - ^narrate "Your Ancient Rapier returned to it<&sq>s original state!" - } - } - - if == i@AncientRapier { - - if == 1 { - - strike no_damage - - burn - - hurt 3.0 - - narrate "A lightning bolt stroke your enemy!" - } - - determine - }