GRIM_CREEPERZ Posted January 25, 2021 Share Posted January 25, 2021 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 More sharing options...
unkfhtsrs4 Posted January 31, 2021 Share Posted January 31, 2021 You could use Quote set loop-player's flight mode to true instead of executing console command Link to comment Share on other sites More sharing options...
GRIM_CREEPERZ Posted February 1, 2021 Author Share Posted February 1, 2021 I could, but i made it much simpler skript that works! Link to comment Share on other sites More sharing options...
lolorvit Posted February 2, 2021 Share Posted February 2, 2021 (edited) 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 February 2, 2021 by lolorvit Update for performance If I at all helped, please react to my post with a ❤ DISCORD orvit#0001MC ACCOUNT orvitRANK VIP Default | June 2016VIP | 2016Banned | February 22, 2020Back | June 11, 2021 Link to comment Share on other sites More sharing options...
CoolProgrammer Posted February 5, 2021 Share Posted February 5, 2021 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. 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now