Blogs Tutorial

/tellraw Passcodes !

  • 1.1k views 0 today
  • 1
  • 0
  • 1
PyroCreative
Lvl 34Artisan Nerd
10
HELLO GUYS!
==================
I'm back, with a rather complicated tutorial!
Today, I am going to show you guys how to make /tellraw passcodes! I will publish a video soon, based on the same tutorial ,
as I am working on the biggest project, I've ever done.
==================
Look at the image of the blog, that is how the password window will look like!
==================
The command for it is :-

/tellraw @a ["",{"text":"============ENTER /b]
PASSKEY============\n CLICK ON NUMBERS TO ENTER]\n"},{"text":"
","bold":true,"color":"gold"},{"text":"[1]
","bold":true,"color":"gold","clickEvent":{"action":"run_command","value":"/scoreboard
players add @p Code 1"}},{"text":"
","bold":true,"color":"gold"},{"text":" [2]
","bold":true,"color":"gold","clickEvent":{"action":"run_command","value":"/scoreboard
players add @p Code 1"}},{"text":"
","bold":true,"color":"gold"},{"text":" [3]
","bold":true,"color":"gold","clickEvent":{"action":"run_command","value":"/scoreboard
players add @p Code 1"}},{"text":" [4] [5]
","bold":true,"color":"gold"},{"text":"[6]","bold":true,"color":"gold","clickEvent":{"action":"run_command","value":"/scoreboard
players add @p Code
1"}},{"text":"\n====================================","bold":true}]
==================
How this works:-
1 scoreboard objective:-

/scoreboard objectives add Code




If a command block will find the player with a score of 4 [when player clicks on all the 4 numbers assigned to the respective obj] , in Code , then it will set it to 0 and replace air blocks, on specified coords.

For example:-
<rep><always active>/testfor @p[score_Code_min=4] (will be triggered when player clicks on 1,2,3,6)
<chain>/scoreboard players set @p Code 0
<chain>/fill x y z x1 y1 z1 minecraft:air


==================================================
the clickEvent command will add the score, and the command block will replace air blocks.
==================================================
Dont worry, I will be posting a vid in the coming week. It will explain better.
==================================================
Diamond if helped and sub 2
====
-pyrotrooper14

  Have something to say?

PyroCreative
11/06/2017 5:30 am
Level 34 : Artisan Nerd
Simplified it :)
1

Welcome