218: Multi level keycard system. [Minecraft Map Making]

Subscribers:
3,860
Published on ● Video Link: https://www.youtube.com/watch?v=pXcE1-vWq9Y



Minecraft
Game:
Minecraft (2011)
Duration: 15:30
1,149 views
19


Ep218: Making keycards that will activate anything for their level and lower.

Suggested by: Tactical Turtles

Java Version: 1.19

Commands, builds and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
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.

Commands used:

Setup:
IUN: scoreboard objectives add level dummy

Give keycards:
IUN: give @p music_disc_blocks{keyCard:1b,display:{Name:'{"text":"Keycard: Level 1","italic":false}', Lore:['{"text":"Allow access to Level 1."}']}, HideFlags:255}
IUN: give @p music_disc_far{keyCard:2b,display:{Name:'{"text":"Keycard: Level 2","italic":false}', Lore:['{"text":"Allow access up to Level 2."}']}, HideFlags:255}
IUN: give @p music_disc_mall{keyCard:5b,display:{Name:'{"text":"Keycard: Level 5","italic":false}', Lore:['{"text":"Allow access up to Level 5."}']}, HideFlags:255}

Door: Level 1:
IUN: execute store result score #keycard level run data get entity @p SelectedItem.tag.keyCard
CUA: execute if score #keycard level matches 1.. run say Door Open
CUA: execute if score #keycard level matches ..0 run say Please use valid keycard


The following version is not really worth doing.
It's two NBT checks just to say if the hand is empty.

Door: Level 5: [With NBT check for empty hand]
IUN: execute store result score #keycard level run data get entity @p SelectedItem.tag.keyCard
CUA: execute if score #keycard level matches 5.. run say Door Open
CUA: execute if score #keycard level matches 1..4 run say Insufficient level
CUA: execute if entity @p[nbt={SelectedItem:{}}] run execute if score #keycard level matches ..0 run say Please use valid keycard
CUA: execute unless entity @p[nbt={SelectedItem:{}}] run say That's your hand!







Tags:
minecraft
adventure map
map making
commands
command blocks
1.18
custom commands
redstone
map ideas
map suggesstions
custom maps
1.19



Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 182,428 views spread across 865 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.