что такое bossbar в майнкрафт
Обновление Minecraft 1.13 снапшот 18w05a
Мы только что, на этой неделе переехали в новый офис, поэтому в новом снапшоте нет ничего, что можно было бы показать. Но у нас всё равно есть снапшот! В нём исправлено несколько ошибок, что не может не радовать.
Что нового в Minecraft 1.13, снапшот 18w05a
Исправления ошибок
Команда /bossbar
Эта команда позволяет создавать произвольный индикатор состояния здоровья босса (боссбар), изменять его внешний вид и указывать кому его отображать.
А потом можно изменить его внешний вид при помощи команд:
— задать тех, кто может видеть босс-бар, например @a ; по умолчанию — none
Боссбары сохраняются при перезапусках игры и перемещении между мирами. Если игрок добавлен к боссбару, то при повторном входе он снова будет добавлен к нему. Пока это не будет переопределено командой.
Установка снапшота
Пожалуйста сообщайте о любых найденных в Майнкрафте ошибках на bugs.mojang.com. Если нам никто о них не расскажет, то мы их и исправить не сможем!
Чтобы получить обновленную версию, открой лаунчер и нажмите кнопку «New Profile». Назовите новый профиль «snapshots», поставьте галочку в поле «Enable experimental development snapshots» и сохраните. Чтобы переключиться в нормальную версию, Вы можете выбрать её в выпадающем списке в нижнем левом углу лаунчера. Создавайте резервные копии, перед запуском снапшота или запускайте игру в другой директории (см. опции в окне «new profile»).
Снапшоты могут сломать Ваш мир и сделать Вам больно! Создавайте резервные копии и/или запускайте игру в директории отличной от Вашего основного мира.
На ошибки жаловаться сюда:
Натан Адамс, 31.01.2017
We just moved into a new office this week, so we don’t have very much to show you in a new snapshot.
что такое bossbar в майнкрафт
how to make bossbar to any specific minecraft mob in 1.13.1 minecraft version
2 replies
You’ll need a series of commands, but it can be done a bit easier than you showed. First some blatant self promotion: I wrote a blog about bossbars not too long ago, maybe a good read?
There is no «one» command for all mobs because mobs have different health values and if you want your bossbar to match that value exactly you’d have to tune it. Otherwise your bar will either display too little (already emptied a bit) or too much (players start fighting and the bar won’t lower for a while).
Step one: determine the mobs max health. For example when checking a horse:
/data get entity @e[type=minecraft:horse,limit=1] Health
This shows me that a (healthy) horse has 25 health maximum.
Create the bossbar:
/bossbar add mob «Mobs health»
Set the maximum value to 25, so that it matches the horse:
/bossbar set minecraft:mob max 25
Now you’re ready to check a horse. I would suggest to rely on tags, that makes it easier to pinpoint a specific horse which you want to check up on.
First you’ll need a repeating command block which adds the mobs health into the bossbar, but only if that mob actually exists. Because I’m using tags I can use this
/execute if entity @e[tag=boss] store result bossbar minecraft:mob value run data get entity @e[tag=boss,limit=1]
So this would only run if there actually is an entity out there which is tagged as boss. When so it’ll check its health and dump that into the bossbar. This makes the bossbar somewhat usable in a generic way.
Next step: making the bar visible to players. I’d suggest a range of 20 blocks around the mob?
Anyway, that can be done by adding a chain command block to the previously repeating command block. I’d set it to conditional though:
/execute at @e[tag=boss] run bossbar set minecraft:mob players @p[distance=..20]
So this would make the bossbar visible to all players who are within a 20 block radius around the mob.
And that should do it, hope this can still help.
(edit) Forgot to mention; you can activate this setup by actually tagging a mob. So, for example, to tag a horse next to me as boss I’d use something like:
/tag @e[type=minecraft:horse,distance=..5,limit=1] add boss
How to Use the Bossbar Command in Minecraft
This Minecraft tutorial explains how to use the /bossbar command with screenshots and step-by-step instructions.
You can use the /bossbar command to add, configure or remove a custom bossbar in Minecraft. Let’s explore how to use this cheat (game command).
Supported Platforms
The /bossbar command is available in the following versions of Minecraft:
| Platform | Supported (Version*) |
|---|---|
Java Edition (PC/Mac) | Yes (1.13) |
Pocket Edition (PE) | No |
Xbox 360 | No |
Xbox One | No |
PS3 | No |
PS4 | No |
Wii U | No |
Nintendo Switch | No |
Windows 10 Edition | No |
Education Edition | No |
* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
Bossbar Command
Bossbar Command in Minecraft Java Edition (PC/Mac)
In Minecraft Java Edition (PC/Mac), there are different syntaxes depending on what you would like to do with the bossbar.
To set the text color of the bossbar (default is white):
To set the maximum value of the bossbar (default is 100):
To change the text that appears above the bossbar:
To specify which players can see the bossbar (by default, no players can see the bossbar):
To set the style of the bossbar:
To set the current value of the bossbar:
To set whether the bossbar is visible (default is true):
To list all bossbars:
To remove a bossbar:
To get an attribute of the bossbar:
Definitions
Examples
Example in Java Edition (PC/Mac)
To create a bossbar called digminecraft:bossbar1 with the text «TheChallenge»:
To show the bossbar called digminecraft:bossbar1 to all players:
To set the current value of the bossbar called digminecraft:bossbar1 to 100:
To change the color of the bossbar called digminecraft:bossbar1 to yellow:
To list all bossbars:
To get the current value of the bossbar called digminecraft:bossbar1 :
To remove the bossbar called digminecraft:bossbar1 :
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
2. Type the Command
We will cover examples of how to create a bossbar, show the bossbar to players, set the current value of the bossbar, and change the color of the bossbar.
Create a Bossbar
Let’s start by showing how to create a new bossbar that has an ID of digminecraft:bossbar1 and «TheChallenge» as the text that appears above the bossbar with the following command:
Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.
Once the command has been entered, the bossbar will be created but it won’t yet be visible on the screen. By default, no players have been set up to see the bossbar.
Show the Bossbar to Players
Next, let’s update the settings for the bossbar so that the bossbar shows at the top of the game window for all players. We can show the bossbar called digminecraft:bossbar1 to all players with the following command:
Type the command and press the Enter key to run the command.
Once the command has been entered, you will see the new bossbar appear at the top of the screen. By default, the color of the bossbar is white, the current value of the bossbar is 0, and the max value of the bossbar is 100.
Set the Current Value of the Bossbar
Now, let’s set the current value of the boss bar to 100 (so that the progress bar is full) with the following command:
Type the command and press the Enter key to run the command.
Once the command has been entered, you should see a full progress bar in white since now the current value for the bossbar is set to 100 and the maximum value for this bossbar is 100.
Change the Color of the Bossbar
Next, let’s change the color of the bossbar to a different color instead of white. You can change the bossbar to blue, green, pink, purple, red, white or yellow.
Let’s change the bossbar to yellow with the following command:
Type the command and press the Enter key to run the command.
Once the command has been entered, you should see both the bossbar’s text and the progress bar appear in yellow.
Congratulations, you just learned how to use the /bossbar command in Minecraft!
Other Game Commands
You can use other commands and cheats in Minecraft such as:
Гайд по команде /bossbar
Для просмотра онлайн кликните на видео ⤵
Гайд по КБ #3 Команда /bossbar!Подробнее
БОССБАР МАШИНА! (Небольшой гайд по команде боссбар)Подробнее
Команда /team 1.13+ | Цветной ник | Невидимый ник | Дружелюбные монстры | Гайд для 1.14, 1.15, 1.16Подробнее
Как сделать таймер на боссбаре 1.16.2Подробнее
Как создать свой боссбар в Minecraft Java + хорошая новость в описанииПодробнее
УПРАВЛЯЙ ЧЕМ УГОДНО ВЗГЛЯДОМ! | КОМАНДАПодробнее
Атрибут и где его можно использоватьПодробнее
МАЙНКРАФТ КОМАНДЫ #2 /bossbar // КАМАНДА BOSSBAR // МАЙНКРАФТ ТУТОРИАЛПодробнее
Гайд По Команде /item | Майнкрафт 1.17+Подробнее
Туториал по команде /camerashake в Майнкрафт ПЕ | Команды Minecraft Bedrock EditionПодробнее
Обзор команды /bossbarПодробнее
ПРОСТЕЙШИЙ ТАЙМЕР НА КОМАНДНЫХ БЛОКАХПодробнее
Полный ГАЙД ПО НОВОЙ КОМАНДЕ /execute 1.13 Часть 1Подробнее
Команда Minecraft Bossbar полностью объяснена! [1.15.2] (Учебное пособие)Подробнее
Гайд по новой команде /execute | Часть 2Подробнее
Лучшая Команда для Командного Блока в Майнкрафте (Гайд по команде Scoreboard)Подробнее
BossBarAPI 1.0-BETA
A simple API and server owner tool for using the 1.9 bossbar features.
This is my second resource on Spigot, and it is BossBarAPI.
BossBarAPI, is a very powerful tool for both server owners and developers to take advantage of the BossBar.
Server Owner Note:
I’m working on better support for your end of the plugin, I didn’t put as much time in to the server owner mode compared to the developer mode, but you guys will get better support and more features and such soon!
Developer Note:
When I first used the new Spigot 1.9 BossBar API, I was very confused on why it wasn’t showing to players, or functioning as I thought it would.
With BossBarAPI, you can condense your code from:

There are also events! BarAnimationCycleEvent, for when an animation frame goes by, and PlayerSetBarEvent, for when a player gets their bar set.
Should be about everything for you awesome developers! If you make anything cool with the API, shoot me a message!
You are free to use this any way you want, as long as:
— You give me credit
— You don’t use this in any way that breaks Mojang’s EULA and/or Terms
— You don’t use this in any way that breaks SpigotMC’s EULA and/or Terms
— I can update this resource at any time, and add anything to it that doesn’t violate SpigotMC’s plugin guidelines.
— I don’t have to update this plugin or provide support
— Errors will be PM’d to me instead of left in the review section
Thanks for looking at my resource!
Easy to use config, make your server awesome!
As some of you might have known, 1.9 makes it way easier to add boss bars to a player. This plugin takes full advantage of that!
If you don’t have 1.9+ on your server, this plugin is still functional with some features (like boss bar color and style, multiple bars on top of each other etc.) not available.
As you can see, for each new bar, the line starts with a dash (-). This just means a new list entry.
There are a few keys which of you can take advantage:
Title
The title of the boss bar. Can be colored and, with PlaceholderAPI, supports placeholders. Supports animations
Color
The color of the boss bar. Can be animated.
Valid colors: pink, blue, red, green, yellow, purple, white.
This does not work in versions 1.8 and below. In those versions it will have the classic purple color.
Style
The style of the boss bar. Can also be animated.
Valid styles: solid, segmented-6, segmented-10, segmented-12, segmented-20.
This also does not work in 1.8 and below.
Health
The health of the bossbar, compared to Max-Health. Default value is 100. Can be animated ánd supports placeholders!
Max-Health
The max health of the bossbar. Default value is 100. Can also be animated ánd supports placeholders as well!
Darken-Sky, Play-Music, Create-Fog
Darken-Sky makes a player’s sky go dark, Play-Music plays boss music when the bar appears, and Create-Fog gives players fog. Each one can be animated and can either be ‘true’ or ‘false’, so «Darken-Sky: ‘true|false’»
NOTE: In 1.11, this system has changed without it being mentioned in the API. By default, fog will be created and I believe the sky will be darkened as well. In order to remove those, set all of them to ‘true’
Update-Delay
The delay (in ticks) in between the boss bar updates. Default value is 20 (= 1 second)
Permission
The permission required to see the boss bar. If the value is prefixes with a dash (-), the bar will only be visible if the player doesn’t have the permission.
Enabled-Worlds
The worlds the bar is enabled in. If this is specified, the Disabed-Worlds is ignored. This can be put in the main config (0-space indentation, above or below all bars) to make it apply for each bar.
Each world name must start on a new line, and start with a dash (-)
Disabled-Worlds
Pretty much the same as Enabled-Worlds, although this specifies the worlds in which the bar is disabled.
Permission
The permission required to see the boss bar. Start it with a dash (-) to negate it (those who don’t have the permission can see it)
Display
When to display this boss bar (since version 1.4.0)
Can be: always (default), on-join, on-rejoin, on-first-join, on-world-change, on-respawn, on-block-break, on-block-place
Blocks
Only works when Display is set to on-block-break or on-block-place.
Specifies the list of blocks to display this bar on, e.g. ‘stone, dirt:1, skull:3’
When no data value has been specified, all data values are accepted.
Donate
This plugin is free of course. Donations keep me motivated, however. Skipping a cup of coffee could make a humble programmer very happy!
Minecraft Forums
Setting Bossbar max to scoreboard dummy
I have a dummy scoreboard value TimeLeft, and want to set a bossbars (id:2) maximum value to it. How do I do this?
Thanks heaps
I have a dummy scoreboard value TimeLeft, and want to set a bossbars (id:2) maximum value to it. How do I do this?
Thanks heaps
/execute store result bossbar minecraft:2 value run scoreboard players get TimeLeft
Something like that.
I figured it out for anyone else who has the same problem
/execute store result bossbar max run scoreboard players get @p
but for that, all players need to have the same objective value
also before that command, I use
execute store result bossbar value run scoreboard players get @p
so it sets the bossbars value to max as well
Setting up a bossbar in Minecraft 1.13
The latest snapshot (18w05a) got released today and I’m really excited about this one because we finally get vanilla access to bossbars. You know: those things you get to see when you’re fighting (mini) bosses such as the Ender dragon or the wither. Until now your best shot was to either summon a (renamed) boss somewhere underground (while making sure it was invulnerable so it wouldn’t die) and then somehow continue to update/change its health in order to get a somewhat usable bossbar.
Another option is of course to use plugins, but we’re not going to address those here.
But with the release of 1.13 we have a much better option for this: the /bossbar command!
In order to use a bossbar you first need to create it. You’ll need to define an id and a name. The id is basically the same as any other in Minecraft; consisting of a namespace and an actual name. The name of the bossbar should be a string («JSON object») which contains the name as it will be displayed on screen.
Now that we have a bossbar we’ll need to set it up to make it actually usable. In my example we’re going to use the bossbar to display the health of the players. So the first step is to check a players health value. How to do that? Using the new /data command:
So how to build an arena. Ok, that’s bad pun 🙂
Back to the bossbars! A bossbar isn’t automatically visible to all players, you need to set that up yourself. This allows you to customize it in any way you want. For example I could set it up so that Aya only gets to see her own health and I get to see both hers and my own (no, I’m not trying to cheat, whatever gave you that idea? :)).
Now we pretty much have everything in place. But there’s one last thing missing. How do we get the players health value into the bossbar?
To make this easier on us I set up these command blocks which do everything for setting up the fight. First it switches both Aya and myself from Creative into Adventure mode (to prevent us from accidentally destroying the arena). Next it clears out our inventories and gives us one diamond sword and it also sets the bossbars to visible. And finally, the repeating block on the left (and the chain command block behind it) continues to /execute the store commands I mentioned above, but only if it gets a redstone signal.
When turned off the opposite happens: the repeating command block will stop updating the bossbars, the bossbars are set invisible and both Aya and myself are switched back to Creative mode.
Bonus: Setting up a real bossfight!
Now, using bossbars for players is fun and all but as some of you reminded me: it’s called a boss bar for a reason. So let’s set up a bossfight with the one and only Herobrine! And all you need is 4 command blocks.
Now, I’m not going to pay too much attention to this section (this blog is about boss bars afterall) but I do want to stress out that if you want to learn more about mobs and their properties then /data will become an invaluable command to you. It’s only thanks to /data (and not the Minecraft wiki for a change) that I managed to set up the increased follow range for example.
execute unless entity @e[tag=miniboss] run summon minecraft:zombie
This is also a demonstration of the 1.13 command improvements: the command to summon Herobrine is only executed as long as there isn’t already one around. But as said: I won’t be explaining this command in too much detail, you do the math 🙂
You’re going to need three command blocks (as shown in the screenshot above).
#1: Repeating unconditional command block
execute if entity @e[tag=miniboss] store result bossbar herobrine value run data get entity @e[tag=miniboss,limit=1] Health
This command block will only run if the system actually detects an entity with the tag miniboss. This helps us to reduce the load on the system a bit because the system will only need to check if the entity exists. It doesn’t have to try and get any properties nor does it have to continue updating the bossbar all the time.
#2: Chain conditional command block
execute as @e[tag=miniboss] at @s run bossbar set herobrine players @a[distance=..50]
This command makes sure that if we come within a 50 blocks range of Herobrine then we’ll immediately get to see the bossbar. But there’s more: because this command gets repeated all the time it will also ensure that if you move out of range then the bossbar will disappear.
#3: Chain unconditional command block
execute unless entity @e[tag=miniboss] run bossbar set herobrine players
This will run the bossbar command under the condition that there is no entity around which has the miniboss tag. The effect is that the bossbar will disappear for all players as soon as the boss has been defeated.
Getting your own Herobrine
In case you’re interested in fighting with Herobrine but you don’t want to bother with all these difficult commands then you don’t have to: you can download my Herobrine datapack and use that instead 🙂
And there you have it!
How to set up the bossbars in Minecraft 1.13 (well, basically snapshot 18w05a at the time of writing) and how to actually use them for a real bossfight.




