How to make a colorized sign that updates on button click - Minecraft Command Blocks Guide

How to make a colorized sign that updates on button click - Minecraft Command Blocks Guide

Subscribers:
10,700
Published on ● Video Link: https://www.youtube.com/watch?v=OPhvlbkZsxY



Minecraft
Game:
Minecraft (2011)
Category:
Guide
Duration: 16:21
991 views
28


#minecraft #signs #update
Always wanting to make a shop with signs or update your signs when a button is pressed? You will learn it in this tutorial

In this tutorial and guide we learn the following:
- How to check the inventory to see if someone has sufficient items
- How to clear inventory but only if there are enough items
- Store inventory data in the scoreboard as score
- Colorizing a sign with the setblock command
- Using JSON in tellraw and signs to show text, score and selector

Commands used:
Create a dummy
- scoreboard objective add cGreenWool dummy

Use the counted objective and store it
- execute as @p store result score @s cGreenWool run clear @s minecraft:green_wool 0

(Optional) tellraw the amount to the player
- tellraw @p [{"text":"Green Wool in inventory: ","color":"green"},{"score":{"name":"@p","objective":"cGreenWool"},"color":"gold"}]

(Optional) show cGreenWool as sidebar display
- scoreboard objectives setdisplay sidebar cGreenWool

Clear inventory based on score (only the final command)
- clear @p[scores={cGreenWool=1..}] minecraft:green_wool 1

Setblock the air / sign:
- setblock ~ ~ ~ minecraft:air replace
- setblock ~ ~ ~ minecraft:oak_wall_sign[facing=east] {"Text1":'{"text":"Green Wool","color":"aqua"}',"Text2":'{"selector":"@p","color":"cyan"}',"Text3":'{"score":{"name":"@p","objective":"cGreenWool"},"color":"gold"}'} replace

0:00 Intro
2:06 Clear and store items
9:30 Setblock the sign

All tutorials are made in the Forgotten Colonies server, read more about it here:
- https://www.forgottencolonies.com/

Check out the entire playlist here:
- https://www.youtube.com/watch?v=x_l5RCVrdlE&list=PLHd3EltAylPSbwBEpmOnOgI--sXhiBtrG

Subscribe! Subscribing is free and helps us grow.

Join our discord:
- https://discord.gg/CDtGd7x

Join this channel to get access to perks:
- https://www.youtube.com/channel/UCxnPA3lQx8rBUzEpdIgzOaA/join







Tags:
color
colorized
colored
signs
sign
oak wall sign
wall sign
auto
update
guide
tutorial
help
how to
minecraft



Other Statistics

Minecraft Statistics For Forgotten Games

Forgotten Games presently has 156,182 views for Minecraft across 41 videos, with His channel uploaded over 1 day worth of Minecraft videos. This makes up 5.16% of the content that Forgotten Games has uploaded to YouTube.