356: Simple Locked door experiment. [Minecraft Map Making]

Subscribers:
3,590
Published on ● Video Link: https://www.youtube.com/watch?v=vgWIcw4liA8



Minecraft
Game:
Minecraft (2011)
Duration: 17:28
224 views
11


Ep356: Using an interaction entity to lock a wooden door.

00:00 Intro
01:10 Setup
01:35 Give key
02:25 Summon interaction
04:35 Controller

Version: 1.19.4

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

Check out my collabs on Coppit's channel:    / coppitj  

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord:   / discord  

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:

Setup:
IUN: scoreboard objectives add key_check dummy

Give:
IUN: give @p tripwire_hook{key:door}

Summon:
IUN: summon interaction 94.9 56 -9952 {Tags:["door_lock"], height:2}

Controller:
RUA: execute as @e[type=interaction,tag=door_lock] store success score @s key_check on target if entity @s[nbt={SelectedItem:{tag:{key:door}}}]
CUA: execute as @e[type=interaction,tag=door_lock,scores={key_check=0}] on target run tellraw @s {"text":"You need a key!"}
CCA: playsound entity.zombie.attack_wooden_door master @a 95 56 -9952 1 1 0
CUA: execute as @e[type=interaction,tag=door_lock,scores={key_check=1}] run setblock 95 55 -9953 redstone_wall_torch[facing=north]
CCA: kill @e[tag=door_lock]
CUA: scoreboard players reset @e[type=interaction,tag=door_lock,scores={key_check=0..1}] key_check
CUA: execute as @e[type=interaction, tag=door_lock] run data remove entity @s interaction
CUA: execute if block 95 56 -9952 spruce_door[open=false] run setblock 95 55 -9953 pink_wool
CCA: summon interaction 25.9 56 15 {Tags:["door_lock"], height:2}




Other Videos By Infernal Device


2024-06-30365: Hidden wall safe. [Minecraft Map Making]
2024-06-30366: Smoke Bomb. Updated to 1.21. [Minecraft Map Making]
2024-06-29364: Experimental mini farm for 1.21. [Minecraft Map Making]
2024-06-28363: Can the player see the sky at daytime? [Minecraft Map Making]
2024-06-27362: Table you can place and remove items from. [Minecraft Map Making]
2024-06-26361: Sword in a stone which can be pulled out. [Minecraft Map Making]
2024-06-25360: Interactive custom ceiling lights. [Minecraft Map Making]
2024-06-24359: Timed commands using a predicate. [Minecraft Map Making]
2024-06-23358: Mob death checking for Tower Defence. Updated. [Minecraft Map Making]
2024-06-22357: Rechargeable Gas mask with limited uses. [Minecraft Map Making]
2024-06-21356: Simple Locked door experiment. [Minecraft Map Making]
2024-06-20355: Lightable torches Updated. Added lifetime, light with arrows. [Minecraft Map Making]
2024-06-19354: Countdown timer with ticking sound. [Minecraft Map Making]
2024-06-18353: Modifying sidebar look for an effect selector. [Minecraft Map Making]
2024-06-17352: Floor crafting in 1.20.6. [Minecraft Map Making]
2024-06-16351: Checking mob deaths for a tower defence game. [Minecraft Map Making]
2024-06-15350: Is player following checkpoint path? Race lap counter. [Minecraft Map Making]
2024-06-14349: Did a player throw this item? Experiments. [Minecraft Map Making]
2024-06-13348: Torches that players can light and put out. [Minecraft Map Making]
2024-06-12347: Web Potion. Detecting where potions land. [Minecraft Map Making]
2024-06-11346: Infectious zombie plague. [Minecraft Map Making]



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 181,722 views spread across 860 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.