430: Title and music when entering an area. [Minecraft Map Making]
Membership:
Ep430: Showing a title and playing a sound when a player enters an area.
00:00 Intro
02:00 Controller
07:30 Stop sound
08:30 Setup title
Version: 1.21
Commands, builds, hacks and ideas for people making their own Minecraft maps.
Check out my collabs on Coppit's channel:
Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.176.10:28386
Discord: https://discord.gg/amU84KykEu
The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.
Since angled brackets are not allowed in YouTube descriptions you will have to replace "greater than" and "less than" with the appropriate angled bracket.
Commands used:
Controller:
RUA: execute positioned x y z as @a[tag=!enter_area_a, distance=..3] run tag @s add target
CCA: execute as @a[tag=target] run title @s title {"text":"Location: Area A","color":"green"}
CCA: execute as @a[tag=target] run stopsound @s master minecraft:music_disc.creator
CCA: execute as @a[tag=target] run playsound minecraft:music_disc.creator master @s ~ ~ ~ 1 1 0
CCA: execute as @a[tag=target] run tag @s add enter_area_a
CUA: execute positioned x y z as @a[tag=enter_area_a, distance=3.1..] run tag @s remove enter_area_a
CUA: tag @a[tag=target] remove target
Setup title:
IUN: title @a times 60 20 10
Stop music:
IUN: stopsound @a master minecraft:music_disc.creator