Paste #13612: Diff note for paste #13611

Date: 2015/02/05 02:30:16 UTC-08:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


-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 <player.inventory.contains[STONE].qty[5]> {
+          - ^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: <blue>Mana Crystal
+  lore:  
+  - <white>Needed when casting
+  - <white>spells with wands.
+  - <blue>Consumed when 
+  - <blue>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 <player.item_in_hand> == i@AncientRapier {
-        - ^if <util.random.int[1].to[200]> == 1 {
-          - ^adjust <player.item_in_hand> durability:0 save:ancientsword
-          - ^take <player.item_in_hand>
-          - ^give <entry[ancientsword].result> slot:<player.item_in_hand.slot>
-          - ^narrate "Your Ancient Rapier returned to it<&sq>s original state!"
-          }
-        }
-      - if <player.item_in_hand> == i@AncientRapier {
-        - if <util.random.int[1].to[40]> == 1 {
-          - strike no_damage <context.entity.location>
-          - burn <context.entity>
-          - hurt 3.0 <context.entity>
-          - narrate "A lightning bolt stroke your enemy!"
-          }
-        - determine <context.damage.add[1]>
-        }