Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Timery w MC - Szinton
- LICZNIK 1:
- Dodanie tablicy:
- scoreboard objectives add timer1 dummy Timer1
- scoreboard objectives setdisplay sidebar timer1
- Naliczanie timera:
- scoreboard players add @a timer1 1
- scoreboard players add @a[score_timer1_min=1] timer1 1
- Włączanie i wyłączanie timera:
- setblock 9977 67 20023 minecraft:redstone_block
- blockdata 9977 68 20023 {auto:1b}
- scoreboard players set @p timer1 1
- blockdata 9977 68 20023 {auto:0b}
- Podawanie wyniku:
- tellraw @p {"text":"Twoj wynik to: ","color":"blue","extra":[{"score":{"objective":"timer1","name":"@p"}}]}
- Resetowanie wyniku:
- scoreboard players set @p timer1 0
- LICZNIK 2:
- Wyświetlanie tekstu nad hotbarem:
- title @a actionbar {"score":{"objective":"timer1","name":"@p"},"color":"red","bold":"true"}
- LICZNIK 3:
- Dodanie tablic:
- scoreboard objectives add t1 dummy T1
- scoreboard objectives add sekundy dummy Sekundy
- scoreboard objectives setdisplay sidebar sekundy
- Naliczanie timera:
- scoreboard players add @a[score_t1_min=0] t1 1
- Przeliczanie na sekundy:
- scoreboard players add @a[score_t1_min=20] sekundy 1
- scoreboard players set @a[score_t1_min=20] t1 0
- Resetowanie tablic:
- scoreboard players set @p t1 -1
- scoreboard players set @p sekundy 0
- Podawanie wyniku:
- tellraw @p {"text":"Twoj czas to: ","color":"gold","extra":[{"score":{"objective":"sekundy","name":"@p"}},{"text":"s!"}]}
- LICZNIK 4:
- Naliczanie timera:
- scoreboard players add @a[score_t1_min=0] t1 5
- Przeliczanie na sekundy:
- scoreboard players add @a[score_t1_min=100] sekundy 1
- scoreboard players set @a[score_t1_min=100] t1 0
- Wyświetlanie tekstu nad hotbarem:
- title @p[score_t1_min=1] actionbar {"score":{"objective":"sekundy","name":"@p"},"extra":[{"text":":"},{"score":{"objective":"t1","name":"@p"}}],"color":"aqua"}
- Podawanie wyniku:
- tellraw @p {"text":"Twoj czas to: ","color":"gold","extra":[{"score":{"objective":"sekundy","name":"@p"}},{"text":","},{"score":{"objective":"t1","name":"@p"}},{"text":"s!"}]}
- LICZNIK 5:
- Wyświetlanie tekstu nad hotbarem:
- title @p[score_t1_min=10] actionbar {"score":{"objective":"sekundy","name":"@p"},"extra":[{"text":":"},{"score":{"objective":"t1","name":"@p"}}],"color":"aqua"}
- title @p[score_t1_min=1,score_t1=9] actionbar {"score":{"objective":"sekundy","name":"@p"},"extra":[{"text":":0"},{"score":{"objective":"t1","name":"@p"}}],"color":"aqua"}
- Podawanie wyniku:
- tellraw @p[score_t1_min=10] {"text":"Twoj czas to: ","color":"gold","extra":[{"score":{"objective":"sekundy","name":"@p"}},{"text":","},{"score":{"objective":"t1","name":"@p"}},{"text":"s!"}]}
- tellraw @p[score_t1_min=1,score_t1=9] {"text":"Twoj czas to: ","color":"gold","extra":[{"score":{"objective":"sekundy","name":"@p"}},{"text":",0"},{"score":{"objective":"t1","name":"@p"}},{"text":"s!"}]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement