BOXEY Posted July 24, 2020 Share Posted July 24, 2020 how do set a action bar message in skript that is in a loop like every 3 seconds: loop all player's: set action bar message to "Heath: &a20" Link to comment Share on other sites More sharing options...
_Tarna_ Posted July 24, 2020 Share Posted July 24, 2020 send action bar "Hello" to loop-player https://skripthub.net/docs/?id=3017 Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Aeyth Posted July 25, 2020 Share Posted July 25, 2020 (edited) Here if you're gonna wanna make their health appear on the action bar you'll need this: every 3 seconds: loop all players: set {_HP} to loop-player's health send action bar "Health: &a%{_HP}%" to loop-player Hope this helped Edited July 25, 2020 by Aeyth Link to comment Share on other sites More sharing options...
notminehut Posted July 26, 2020 Share Posted July 26, 2020 3 hours ago, Aeyth said: Here if you're gonna wanna make their health appear on the action bar you'll need this: every 3 seconds: loop all players: set {_HP} to loop-player's health send action bar "Health: &a%{_HP}%" to loop-player Hope this helped Honestly, I dont recommend looping all players every three seconds. 1 Founder - Minehut.xyz The leading Minehut support website. We aim to provide top quality tutorials, provide answers to top questions, and help in any way we can. Our site is community driven, and we will continue to make it better and better. Support | 28/08/20 -13/09/20 Senior Support | 13/09/20 - 19/10/20 Link to comment Share on other sites More sharing options...
BOXEY Posted July 26, 2020 Author Share Posted July 26, 2020 16 hours ago, Minehut said: Honestly, I dont recommend looping all players every three seconds. I am trying to make a hypixel sky block health system in skript that is why Link to comment Share on other sites More sharing options...
Dispdlkddd Posted July 27, 2020 Share Posted July 27, 2020 21 hours ago, Minehut said: Honestly, I dont recommend looping all players every three seconds. bruh wym... I loop 50 players every tick with no lag.... Link to comment Share on other sites More sharing options...
farwl Posted July 27, 2020 Share Posted July 27, 2020 3 hours ago, Dispdlkddd said: bruh wym... I loop 50 players every tick with no lag.... that's...unheard of Graphic Designer - Skript Developer - Professional Builder - Content Creator Been on Minehut since January 2018. Throughout my time here I've mastered the skills you see above. I make free logos, banners, and server art for users on Minehut. I'm a proficient Skript developer. I'm also really good at building, you can see my portfolio by clicking here. Feel free to say hi if you see me somewhere Amethyst Studios Discord Link to comment Share on other sites More sharing options...
AWorthySon Posted July 27, 2020 Share Posted July 27, 2020 When looping players, text and such shouldn't be a problem. It is certainly not recommended though. If you plan to do more advanced and more code. I'd recommended to use a while loop. Example: on join: while player is online: send action bar "&cHP: %player's health%&7/&c%player's max health%" to player wait 2 ticks You'd have to rejoin every time you make a change, but it's worth it in the long run. Here you can make some crazy stuff, while having more direct control of the player. NEVER EVER EVER FORGET A DELAY! MUST ALWAYS HAVE "WAIT 1 TICK". IF YOU FORGET, THE SERVER WILL CRASH. Link to comment Share on other sites More sharing options...
TacticalModz Posted July 31, 2020 Share Posted July 31, 2020 The color codes dont even work on the action bar... Start your Minecraft server today for as low as £0.50/weekly for up to 4 GB of RAM! (£3.50 Monthly) and be equipped for all situations with our high-performance gear keeping your servers running 24/7 Why choose Us? • Guaranteed 99.9% Uptime • NVMe RAID Fast Storage • 24/7 Hosting • Instant Setup • 50% Discount. Use Code: 50OFF (Ends on November 11th) We want to ensure our customers are happy with the service they received and support. We aim to provide low-costs those who cant afford a minecraft server. No extra costs, no setup fees! One-time payment and you are good to go with our instant setup feature we introduced to ensure your server is ready to go! Planning to make a community or a project you want to work on? We got you covered! Our servers are optimized for performance and security, so you can have peace of mind and focus on your project. Our servers are also reliable and packed with features, so you can start playing right away. We guarantee 99% uptime and 24/7 customer support, so you can always ask for help if you need it. Links: https://forums.valknet.org https://billing.valknet.org Invite: https://discord.gg/FqSRt4ZCAC Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 1, 2020 Share Posted August 1, 2020 3 hours ago, TacticalModz said: The color codes dont even work on the action bar... If you are using an older version instead of 1.16, it can do that. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
TacticalModz Posted August 1, 2020 Share Posted August 1, 2020 7 hours ago, _Tarna_ said: If you are using an older version instead of 1.16, it can do that. What do you mean by that? 1 Start your Minecraft server today for as low as £0.50/weekly for up to 4 GB of RAM! (£3.50 Monthly) and be equipped for all situations with our high-performance gear keeping your servers running 24/7 Why choose Us? • Guaranteed 99.9% Uptime • NVMe RAID Fast Storage • 24/7 Hosting • Instant Setup • 50% Discount. Use Code: 50OFF (Ends on November 11th) We want to ensure our customers are happy with the service they received and support. We aim to provide low-costs those who cant afford a minecraft server. No extra costs, no setup fees! One-time payment and you are good to go with our instant setup feature we introduced to ensure your server is ready to go! Planning to make a community or a project you want to work on? We got you covered! Our servers are optimized for performance and security, so you can have peace of mind and focus on your project. Our servers are also reliable and packed with features, so you can start playing right away. We guarantee 99% uptime and 24/7 customer support, so you can always ask for help if you need it. Links: https://forums.valknet.org https://billing.valknet.org Invite: https://discord.gg/FqSRt4ZCAC Link to comment Share on other sites More sharing options...
KarrotX Posted January 24, 2021 Share Posted January 24, 2021 Quote What do you mean by that? In the newer versions of skript you can actually color code them using &. Im not an expert on skript but i've been trying to make the health bar too. this is how it looks like Link to comment Share on other sites More sharing options...
_Tarna_ Posted January 25, 2021 Share Posted January 25, 2021 Topic locked. Please do not reply on threads that have been inactive for over a month. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts