Paste #8574: Fly_Potion

Date: 2014/08/19 07:31:00 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21


FlyPotion:
   type: item
   material: 373
   display name: '<green>Fly Potion'
   lore:
   - "What a strange looking potion!"
   - "Look to the skies..."

DrinkFlyPotion:
   type: world

   events:
     on player consumes i@FlyPotion:
      - narrate "<gray>Maybe this potion isn't what you thought it was.."
      - ^potion weakness <player> duration:3m power:2
      - ^execute as_op "/pos1 <player.location.add[4,0,4].x.as_int>,<player.location.add[4,1,4].y.as_int>,<player.location.add[4,0,4].z.as_int>"
      - ^execute as_op "/pos2 <player.location.add[-4,0,-4].x.as_int>,<player.location.add[-4,-1,-4].y.as_int>,<player.location.add[-4,0,-4].z.as_int>"
      - ^execute as_op "/rep air air,web,air,web"
      - ^execute as_server "spawnmob cavespider 5 <player.name>"
      - ^execute as_player "helpop has drank a Fly Potion!"
      - narrate "<red>Oh no! Trapped in spider webs just like... a FLY!!"