How to Create Custom NPC Shops – Tutorial Series #004

Commands:Step 1: Add Scoreboard! 1) /scoreboard objectives add Coins dummy Coins2) /scoreboard objectives setdisplay sidebar Coins Step 2: NPC Buy Shop!1) /execute @p[x=52,y=4,z=1,r=8,c=1,scores={Coins=0..99}] ~ ~ ~ tellraw @s {“rawtext”:[{“text”:”§cInsufficient Coins!”}]} 2) /execute @p[x=52,y=4,z=1,r=8,c=1,scores={Coins=0..99}] ~ ~ ~ playsound mob.creeper.say @s 1) /execute @p[x=52,y=4,z=1,r=8,c=1,scores={Coins=100..}] ~ ~ ~ tag @s add Buy 2) /execute @a[tag=Buy] ~ ~ ~ […]

Read More

How to Remove Player Offline – Tutorial Series #002

Commands:Step 1: Add Scoreboards 1) /scoreboard objectives add Coins dummy “§gCoins”2) /scoreboard objectives add CoinsDisplay dummy “§gCoins” Step 2: Add Player Offline Commands 1) /scoreboard objectives remove CoinsDisplay 2) /scoreboard objectives add CoinsDisplay dummy “§gCoins” 3) /execute @a ~ ~ ~ scoreboard players operation @p CoinsDisplay = @p Coins 4) /scoreboard objectives setdisplay list CoinsDisplay […]

Read More