360: Interactive custom ceiling lights. [Minecraft Map Making]

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



Minecraft
Game:
Minecraft (2011)
Duration: 32:29
314 views
22


Ep360: Making some custom lights for the ceiling using display entities, and creating eggs so they can be created and removed quickly and easily.

00:00 Intro
00:55 Setup
01:30 Give eggs
03:05 Controller - place
17:00 Controller - remove
20:05 Controller - main

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:
CUA: scoreboard objectives add light_state dummy

Give Egg - Place:
IUN: give @p slime_spawn_egg{display:{Name:'{"text":"Light: Place"}'}, EntityTag:{id:"minecraft:marker", Tags:["light_place"]}}

Give Egg - Remove:
IUN: give @p strider_spawn_egg{display:{Name:'{"text":"Light: Remove"}'}, EntityTag:{id:"minecraft:marker", Tags:["light_remove"]}}

Controller - Place:
RUA: execute at @e[type=marker, tag=light_place] run setblock ~ ~ ~ light[level=15]
CUA: execute at @e[type=marker,tag=light_place] run summon interaction ~ ~0.8 ~ {Tags:["light","light_base"],response:true,width:0.61f,height:0.2f,Passengers:[{id:"minecraft:block_display", Tags:["light", "casing"], block_state:{Name:"chiseled_polished_blackstone"}, transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.3f,0.1f,-0.3f],scale:[0.6f,0.1f,0.6f]}},{id:"minecraft:block_display", Tags:["light", "bulb"], block_state:{Name:"redstone_lamp", Properties:{lit:"true"}}, transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.25f,0.05f,-0.25f],scale:[0.5f,0.2f,0.5f]}}]}
CUA: kill @e[type=marker, tag=light_place]

Controller - Remove:
RUA: execute at @e[type=marker, tag=light_remove] run setblock ~ ~ ~ air
CUA: execute at @e[type=marker, tag=light_remove] positioned ~ ~0.8 ~ run kill @e[tag=light, distance=..0.25]
CUA: kill @e[type=marker, tag=light_remove]

Controller - Main:
RUA: execute as @e[type=interaction, tag=light_base] at @s store success entity @s interaction.player[] int 0 on target run tag @e[type=interaction, tag=light_base, distance=..0.1, limit=1] add switch_me
CUA: execute as @e[type=interaction, tag=switch_me] store success score @s light_state if score @s light_state matches 0
CUA: execute at @e[type=interaction, tag=switch_me, scores={light_state=1}] run playsound block.stone_button.click_on block @a ~ ~ ~ 0.25 1 0
CUA: execute at @e[type=interaction, tag=switch_me ,scores={light_state=1}] run data modify entity @e[type=block_display, tag=bulb, distance=..0.1, limit=1] block_state set value {Name:"redstone_lamp",Properties:{lit:"true"}}
CUA: execute at @e[type=interaction, tag=switch_me, scores={light_state=1}] run setblock ~ ~ ~ light[level=15]
CUA: execute at @e[type=interaction, tag=switch_me, scores={light_state=0}] run playsound block.stone_button.click_off block @a ~ ~ ~ 0.25 1 0
CUA: execute at @e[type=interaction, tag=switch_me ,scores={light_state=0}] run data modify entity @e[type=block_display, tag=bulb, distance=..0.1, limit=1] block_state set value {Name:"redstone_lamp"}
CUA: execute at @e[type=interaction, tag=switch_me, scores={light_state=0}] run setblock ~ ~ ~ light[level=0]
CUA: tag @e[type=interaction, tag=switch_me] remove switch_me




Other Videos By Infernal Device


2024-07-04369: Working chair in 1.21. [Minecraft Map Making]
2024-07-03368: Drinking too many potions. [Minecraft Map Making]
2024-07-02367: Item Display you can pick up. [Minecraft Map Making]
2024-07-02Channel Update: [001]
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]



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.