Display a title to players with a set scoreboard value!

Display a title to players with a set scoreboard value! - Top view of set of bright old metal coins with etchings and inscriptions with numbers

I own a minecraft server and I am making a TnT run minigame all from command blocks for good experience working with CMD blocks.

So I wanted to basically display a title to the players in the minigame. So I decided to do this via a scoreboard. So when they get teleported to the arena, they have a value set to 1 on a scoreboard objective, I then want to display this title to the players with a value of 1.

How is this done?



Best Answer

Create scoreboard objective:

/scoreboard objectives add inArena dummy

Run on clock to give people in the arena an inArena score of 1:

/scoreboard players set @a inArena 0
/scoreboard players set @a[x=<X>, y=<y>, z=<z>, dx=<X length>, dy=<Y length>, dz=<Z length>] inArena 1

To display the title to people with inArena of 1:

/title @a[score_inArena_min = 1] <Title>



Pictures about "Display a title to players with a set scoreboard value!"

Display a title to players with a set scoreboard value! - Aged television set with control panel and plastic case near wall in building on white background
Display a title to players with a set scoreboard value! - Wake up and workout title on light box surface surrounded by colorful sport equipment
Display a title to players with a set scoreboard value! - Interior of modern light shop with wooden shelves with various books and stationery composed with creative decorative elements



How do you give a player a title in Minecraft?

Remember to enter a command in Minecraft, open the chat window and then type the command. Once the cheat has been entered, the title screen (with title and subtitle) will appear on the player's screen.

How do you show scoreboard in Minecraft?

Scoreboard Command
  • To add an objective: /scoreboard objectives add <objective> <criteria> [displayName]
  • To remove an objective: /scoreboard objectives remove <objective>
  • To list all objectives: /scoreboard objectives list.
  • To set how the objectives are displayed: /scoreboard objectives setdisplay <slot> [objective]




  • How to Display Personal Stats/Scoreboard (PS4,WIN10,PE,XBOX)




    More answers regarding display a title to players with a set scoreboard value!

    Answer 2

    A simple Specification tag may be used.

    /title @a[score_(ObjectiveName)_(min/max)] title {"text":"Insert Message Here"}
    

    [score_(ObjectiveName)_(min/max)] is your Specification Tag, this can be used in many ways like specifying for a certain gamemode (m=[0-3]), being at coordinates (x=[Insert X Coord.] y=[Insert Y Coord.] z=[Insert Z Coord.]) to being in a certain range of a certain axis of those coordinates (... dx=[Difference] dy=[Difference] dz=[Difference]).

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Jitu Mondal, Anete Lusina, Karolina Grabowska, Rachel Claire