#elytra clippers/disabler

1 messages · Page 1 of 1 (latest)

fervent urchin
#

Was wondering if anyone could help me make a skript that when you right click on someone with sheers it disables their elytra for 15 seconds

neat gust
#

set their chestplate to air?

#

and make it so they cant modify it

fervent urchin
neat gust
#

he can just equip another one

fervent urchin
#

i mean like disable using it

#

so they cant use elytra for 15 seconds

steep kernel
#

I mean there's item cooldown in skbee which can be combined with on glide toggle? I think that's the event to cancel
[on] (gliding state change|toggl(e|ing) gliding)

#
    gliding state of player is false
    item cooldown of player's chestplate > 0 seconds
    wait a tick
    set gliding state of player to false

set item cooldown of %itemtype% for %player% to %timespan%
fervent urchin
#
    delete {elytraDisabler::*}

on damage of player:
    if (name of attacker's tool) is "&eElytra disabler":
        set {elytraDisabler::%victim%} to now

on toggle gliding:
    if {elytraDisabler::%player%} is set:
        if player's chestplate is elytra:
            if player is not gliding:
                if (difference between now and {elytraDisabler::%player%}) < 15 seconds:
                    cancel event
                    send "&eYour Elytra has been disabled for &c15 &eseconds!" to victim```
#

Final skript

fervent urchin
#

@alpine night how did you find me