355: Lightable torches Updated. Added lifetime, light with arrows. [Minecraft Map Making]
Ep355: Updating the lightable torches to the newer versions of Minecraft, and also adding a lifetime until the torch goes out, and the ability to light it with flame arrows .
00:00 Intro
01:50 Setup
01:35 Give eggs
04:05 Controller - place
08:45 Controller - remove
12:35 Controller - check block
13:10 Controller - main
32:00 Controller - arrow
37:15 Controller - timer
Version: 1.20.6
Commands: GalSergey
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 lit_click dummy
CUA: scoreboard objectives add lit_switch dummy
CUA: scoreboard objectives add lit_timer dummy
Give Egg - Place:
IUN: give @p slime_spawn_egg[entity_data={id:"minecraft:marker", Tags:["torch_place"]}]
Give Egg - Remove:
IUN: give @p strider_spawn_egg[entity_data={id:"minecraft:marker", Tags:["torch_remove", "torch"]}]
Controller - Remove:
RUA: execute at @e[type=marker,tag=torch_remove] run setblock ~ ~ ~ air
CUA: execute at @e[type=marker,tag=torch_remove] run kill @e[tag=torch, distance=..0.25]
Controller - Main:
RUA:execute at @e[type=marker,tag=torch_place] run summon interaction ~ ~ ~ {Tags:["torch","torch_base"],response:true,width:0.251f,height:0.63f,Passengers:[{id:"minecraft:block_display",Tags:["torch"],
transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,0f,-0.5f],scale:[1f,1f,1f]},block_state:{Name:"minecraft:redstone_torch",Properties:{lit:"false"}}}]}
CUA: execute at @e[type=marker,tag=torch_place] run setblock ~ ~ ~ light[level=0]
CUA: kill @e[type=marker,tag=torch_place]
CUA: execute at @e[type=interaction,tag=torch_base] unless predicate {"condition":"minecraft:location_check","predicate":{"block":{"blocks":["minecraft:torch","minecraft:light"]}}} run kill @e[tag=torch,distance=...1]
CUA: execute as @e[type=interaction,tag=torch_base] store success score @s lit_click store success entity @s interaction.player[] int 0 on target if items entity @s weapon flint_and_steel
CUA: execute at @e[type=interaction,tag=torch_base,scores={lit_click=1}] run setblock ~ ~ ~ torch
CUA: execute as @e[type=interaction,tag=torch_base,scores={lit_click=1}] store success score @s lit_switch on passengers run data modify entity @s block_state set value {Name:"minecraft:air"}
CUA: execute at @e[type=interaction,tag=torch_base,scores={lit_click=1,lit_switch=1}] run playsound minecraft:item.flintandsteel.use block @a ~ ~ ~ 1
CUA: execute as @e[type=interaction,tag=torch_base,scores={lit_click=0}] at @s on passengers run setblock ~ ~ ~ light[level=0]
CUA: execute as @e[type=interaction,tag=torch_base,scores={lit_click=0}] store success score @s lit_switch on passengers run data modify entity @s block_state set value {Name:"minecraft:redstone_torch",Properties:{lit:"false"}}
CUA: execute at @e[type=interaction,tag=torch_base,scores={lit_click=0,lit_switch=1}] run playsound minecraft:block.fire.extinguish block @a ~ ~ ~ 0.25 2
CUA: scoreboard players reset @e[type=interaction,tag=torch_base,scores={lit_click=0..1}] lit_click
Controller - Arrow
RUA: execute as @e[type=interaction,tag=torch_base] at @s unless block ~ ~ ~ torch if entity @e[type=arrow,distance=..0.6,nbt=!{Fire:-1s}] run tag @s add light_me
CCA: execute as @e[type=interaction, tag=light_me] at @s run setblock ~ ~ ~ torch
CCA: execute as @e[type=interaction, tag=light_me] store success score @s lit_switch on passengers run data modify entity @s block_state set value {Name:"minecraft:air"}
CCA: execute as @e[type=interaction, tag=light_me] at @s run kill @e[type=arrow, distance=..0.6, limit=1]
CCA: tag @e[type=interaction, tag=light_me] remove light_me
Controller - Timer:
RUA: execute as @e[type=interaction,tag=torch_base] at @s if block ~ ~ ~ torch run scoreboard players add @s lit_timer 1
CUA: execute as @e[type=interaction,tag=torch_base,scores={lit_timer=100..}] on passengers run data modify entity @s block_state set value {Name:"minecraft:redstone_torch",Properties:{lit:"false"}}
CUA: execute at @e[type=interaction,tag=torch_base,scores={lit_timer=100..}] run setblock ~ ~ ~ light[level=0]
Controller changes for timer:
Main:
CUA: execute as @e[type=interaction,tag=torch_base,scores={lit_click=1}] at @s store success score @s lit_timer run setblock ~ ~ ~ torch
Arrow:
CUA: execute as @e[type=interaction, tag=light_me] at @s store success score @s lit_timer run setblock ~ ~ ~ torch
Other Videos By Infernal Device
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.