355: Lightable torches Updated. Added lifetime, light with arrows. [Minecraft Map Making]

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



Minecraft
Game:
Minecraft (2011)
Duration: 46:54
323 views
9


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


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]
2024-06-10CoppitCraft Castle 050: Trees and a statue.



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.