Jump to content

How do I make flying boots?


GRIM_CREEPERZ

Recommended Posts

I would like to make a script for flying boots and they can only work in the end! Script won't work can you help me?

 

every 1 second:
  loop all players:
    if loop-player is wearing netherite boots named "&5End &0Boots":
      if loop-player is in "world_the_end":
        if loop-player's flight mode is false:
          execute console command "/fly %loop-player%"
      else:
        if loop-player is not op:
          if loop-player's flight mode is true:
            execute console command "/fly %loop-player%"
     else:
       if loop-player is not op:
         if loop-player is in "world_the_end":
           if loop-player's flight mode is true:
             execute console command "/fly %loop-player%"

Link to comment
Share on other sites

On 2/1/2021 at 6:49 AM, GRIM_CREEPERZ said:

I could, but i made it much simpler skript that works!

Using execute console command makes a serious impact on performance. It is allowing them to fly with extra steps. I would also recommend doing this every 5 seconds as with large amounts of players, it could lag.

EDIT for even better performance, put $ thread in the line before loop all players.

Edited by lolorvit
Update for performance

If I at all helped, please react to my post with a ❤

 

DISCORD orvit#0001
MC ACCOUNT orvit
RANK VIP


Default | June 2016
VIP | 2016
Banned | February 22, 2020
Back | June 11, 2021

Link to comment
Share on other sites

On 2/2/2021 at 9:42 PM, lolorvit said:

Using execute console command makes a serious impact on performance. It is allowing them to fly with extra steps. I would also recommend doing this every 5 seconds as with large amounts of players, it could lag.

EDIT for even better performance, put $ thread in the line before loop all players.

Asynchronous tasks should never access any API in Bukkit.

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...