Script

You can add scripts to your totems using Kether. The scripts will run when a player uses the totem.

Example

scripts:
    - 'player allow flight to true'
    - 'player fly speed to 0.1'
    - 'tell color "&7You can fly now!"'
    - 'sleep 10.0s'
    - 'player allow flight to false'
    - 'tell color "&7You can not fly anymore!"'

This will allow the player to fly for 10 seconds, with a speed of 0.1 upon using the totem. After the 10 seconds have passed, the player will stop flying and fall to the ground.

You can do more advanced things; it all depends on your imagination. To learn about all the scripts you can use, go to the Kether documentation.

Last updated