Date: 2014/08/19 07:31:00 UTC-07:00
Type: Denizen Script
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!!"