bind(player_interact, null, array(button
: right
, item
: data_values(book
)), @event,
}
@spell = get_value('active.spell.'.player
());
@mana_cost = get_value('mana.cost.'.player
());
@multiplier = get_value('multiplier.'.player
())
set_entity_velocity(@arrow, array(@velocity['x'] *
@multiplier, @velocity['y'] *
@multiplier, @velocity['z'] *
@multiplier))
if(@mana <= 0) {
@mana = 0;
for(assign(@i, 100), @mana <= 100, @mana++
) {
cancel(@event) ), 'restore_mana')
}
}
)
bind(player_interact, null, array(button
: right
, item
: data_values(nether_star
)), @event,
}
@spell = get_value('active.spell.'.player
());
if(@spell == 'Shoot Arrow') {
@spell = 'Shoot Fireball';
} else if(@spell == 'Shoot Fireball') {
@spell = 'Blink';
} else if (@spell == 'Blink') {
@spell = 'Shoot Arrow';
}
)
bind(item_pickup, null, null, @event,
)
bind(player_join, null, null, @event,
0: array(data
: 0, meta
: array(display
: colorize(concat('&dSpell Book &7| &dMana: ', @mana, '%')), lore
: array(colorize('&7---'), colorize(concat('&dActive Spell: &7', @spell)), colorize(concat('&dSpell Damage: &7', @multiplier)))), qty
: 1, type
: 340),
))
)
Language: commandhelper
Posted by Anonymous at 20 Mar 2014, 10:08:43 UTC