- Баллы
- 16
- Имя в Minecraft
- Demxfour
Здравствуйте!
Ищу способ сделать разный цвет цифры при разных её значениях.
Например, если температура тела игрока от 36 до 37, то оно будет такого цвета: 36 а если от 37 до 38, то таким: 37. Соответственно, при значении температуры 39 и более, цвет будет красным (39).
Также с болезнями: если игрок не болеет, то в скорборд должно выводится "здоров", а в противном случае "название болезни".
Использую плагин AnimatedScoreboard, за температуру и болезни отвечает Disease.
Вот конфигурация AnimatedScoreboard'a:
Заранее спасибо за ваши ответы!
Ищу способ сделать разный цвет цифры при разных её значениях.
Например, если температура тела игрока от 36 до 37, то оно будет такого цвета: 36 а если от 37 до 38, то таким: 37. Соответственно, при значении температуры 39 и более, цвет будет красным (39).
Также с болезнями: если игрок не болеет, то в скорборд должно выводится "здоров", а в противном случае "название болезни".
Использую плагин AnimatedScoreboard, за температуру и болезни отвечает Disease.
Вот конфигурация AnimatedScoreboard'a:
#This is where you create the scoreboard, the first section will always be the title.
#Every section after that will be a line displayed on the scoreboard. You can have a max
#of 15 lines display due to the limitations of minecraft.
display:
#This is the first section, it will always be the title of the scoreboard.
#You can also use placeholders here if you want.
title:
#This is the text that will be display as the title, it can have as many lines as you want and it will automatically rotate through them or
#choose a random one, depending on what you set random to.
text:
- " &8 [&6Состояние здоровья&8] &r "
#If this is true there will be a random line every time it updates.
#If it is false than it will rotate through them and you can make some animations with it.
random: false
#The time between updates, 20 ticks is 1 second.
#Every x ticks it will go to the next line, if random is false, once all lines are displayed it will go to the first line.
interval: 2
#This section is the first line, here you set the data of that line. It doesn't matter what the name of the section is, as long
# as there is no other section with the exact same name
line-1:
#Same as with the title, no limit on text. If you just put " " here it will display a blank line on the scoreboard.
text:
- " "
#If it should be random or not.
random: false
#The time between updates, 20 ticks is 1 second.
#Every x ticks it will go to the next line, if random is false, once all lines are displayed it will go to the first line.
interval: 200
#The score display next to the text, this can only be a number and not removed.
# If the score of the other lines are higher than this one, they will be displayed above this one.
score: 1
line-2:
text:
- "&2 Температура тела: &f%disease_temperature%°C "
random: false
interval: 20
score: 1
#Every section after that will be a line displayed on the scoreboard. You can have a max
#of 15 lines display due to the limitations of minecraft.
display:
#This is the first section, it will always be the title of the scoreboard.
#You can also use placeholders here if you want.
title:
#This is the text that will be display as the title, it can have as many lines as you want and it will automatically rotate through them or
#choose a random one, depending on what you set random to.
text:
- " &8 [&6Состояние здоровья&8] &r "
#If this is true there will be a random line every time it updates.
#If it is false than it will rotate through them and you can make some animations with it.
random: false
#The time between updates, 20 ticks is 1 second.
#Every x ticks it will go to the next line, if random is false, once all lines are displayed it will go to the first line.
interval: 2
#This section is the first line, here you set the data of that line. It doesn't matter what the name of the section is, as long
# as there is no other section with the exact same name
line-1:
#Same as with the title, no limit on text. If you just put " " here it will display a blank line on the scoreboard.
text:
- " "
#If it should be random or not.
random: false
#The time between updates, 20 ticks is 1 second.
#Every x ticks it will go to the next line, if random is false, once all lines are displayed it will go to the first line.
interval: 200
#The score display next to the text, this can only be a number and not removed.
# If the score of the other lines are higher than this one, they will be displayed above this one.
score: 1
line-2:
text:
- "&2 Температура тела: &f%disease_temperature%°C "
random: false
interval: 20
score: 1
Заранее спасибо за ваши ответы!
Последнее редактирование: