Command Block Tutorial #140: Portable Lantern Commands in Minecraft (1.18+)

Subscribers:
8,160
Published on ● Video Link: https://www.youtube.com/watch?v=JjOcBYc6uss



Minecraft
Game:
Minecraft (2011)
Category:
Tutorial
Duration: 7:49
540 views
14


In this video I will show how to give yourself a special lantern that allows you to light your way without the need to place on the ground.

Commands:

* To get the Portable Lantern: /give @p minecraft:lantern{HideFlags:1,Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Portable Lantern\"}"}}

1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:lantern",tag:{display:{Name:"{\"text\":\"Portable Lantern\"}"}}}]}] run execute at @p run setblock ~ ~ ~ minecraft:light[level=9] keep

2. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:lantern",tag:{display:{Name:"{\"text\":\"Portable Lantern\"}"}}}]}] run execute at @p run fill ~-3 ~1 ~-3 ~1 ~-1 ~-1 air replace light

3. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:lantern",tag:{display:{Name:"{\"text\":\"Portable Lantern\"}"}}}]}] run execute at @p run fill ~ ~2 ~ ~ ~-1 ~ air replace light

4. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:lantern",tag:{display:{Name:"{\"text\":\"Portable Lantern\"}"}}}]}] run execute at @p run fill ~1 ~ ~-1 ~3 ~ ~3 air replace light

5. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:lantern",tag:{display:{Name:"{\"text\":\"Portable Lantern\"}"}}}]}] run execute at @p run fill ~-3 ~ ~-3 ~-1 ~ ~1 air replace light

6. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:lantern",tag:{display:{Name:"{\"text\":\"Portable Lantern\"}"}}}]}] run execute at @p run fill ~-1 ~ ~1 ~3 ~ ~3 air replace light

7. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:lantern",tag:{display:{Name:"{\"text\":\"Portable Lantern\"}"}}}}] run execute at @p run fill ~ ~ ~ ~ ~ ~ air replace light

Bonus Command (To get a Light Block): /give @p light{BlockStateTag:{level:"7"}} 1

Music:

1. Gaming Sound FX:

* Monkeys Spinning Monkeys (Kevin MacLeod) - Gaming Background Music (HD):
https://www.youtube.com/watch?v=pr42azVZi3o




Other Videos By RedstoneKnightX


2022-06-12Mod Showcase #42: Elementary Staffs Mod (New Update)(Minecraft 1.16.5)
2022-06-12Minecraft 1.19 Showcase: The Wild Update
2022-06-05Mod Showcase #41: Upgraded Netherite Mod (Minecraft 1.16.5)
2022-05-29Command Block Tutorial #147: Special Villager Bell Commands in Minecraft (1.18+)
2022-05-22Command Block Tutorial #146: Ground Pound Commands in Minecraft (1.18+)
2022-05-15Command Block Tutorial #145: Potion Banner Commands in Minecraft (1.18+)
2022-05-08Command Block Tutorial #144: Ghost Mode Commands in Minecraft (1.18+)
2022-05-01Command Block Tutorial #143: Double Jump Commands in Minecraft (1.18+)
2022-04-24Command Block Tutorial #142: Potion Ore Commands in Minecraft (1.18+)
2022-04-17Command Tutorial #141: Easter Bunny Commands in Minecraft(1.18+) (Easter Day Edition)
2022-04-10Command Block Tutorial #140: Portable Lantern Commands in Minecraft (1.18+)
2022-04-03Command Block Tutorial #139: Sharpest Blade Commands in Minecraft (1.18+)
2022-03-27Command Block Tutorial #138: Potion Food Commands in Minecraft (1.18+)
2022-03-20Command Block Tutorial #137: Remote Creeper Bomb Commands in Minecraft (1.18+)
2022-03-13Command Block Tutorial #136: Hunter Crossbow Commands in Minecraft (1.18+)
2022-03-06Command Block Tutorial #135: Poisonous Moss Commands in Minecraft (1.18+)
2022-02-27Command Block Tutorial #134: Smoke Bomb Commands in Minecraft (1.18+)
2022-02-20Command Block Tutorial #133: Climbing Hook Commands in Minecraft (1.18+)
2022-02-13Mod Showcase #40: Colds Claws Mod (Minecraft 1.16.5)
2022-02-06Mod Showcase #39: Jet Boots Mod (Minecraft 1.16.5)
2022-01-30Mod Showcase #38: Shrink Mod (Minecraft 1.16.5)



Tags:
Minecraft
Gaming
GamePlay
Tutorials



Other Statistics

Minecraft Statistics For RedstoneKnightX

RedstoneKnightX presently has 1,527,317 views for Minecraft across 384 videos, with His channel uploaded over 2 days worth of Minecraft videos. This is 85.45% of the total watchable video on RedstoneKnightX's YouTube channel.