336: Checking light levels at the players position. [Minecraft Map Making]

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



Minecraft
Game:
Minecraft (2011)
Duration: 5:08
171 views
11


Ep336: Using a predicate in a command block to check the light levels at a position, no datapack required.

Version: 1.20.6

Misode's predicate generator: https://misode.github.io/predicate/

Useful predicate wiki: https://minecraft.wiki/w/Predicate

Suggested by: 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" with the appropriate angled bracket. Ascii code: 62

Commands used:

Setup:
IUN: scoreboard objectives add sound_timer dummy

Command:
RUA: execute as @a at @s if predicate {"condition": "minecraft:location_check","predicate":{"light":{"light":{"min":12,"max": 14}}}} run say It's dark here!




Other Videos By Infernal Device


2024-06-10CoppitCraft Castle 050: Trees and a statue.
2024-06-10345: Code entry by copying held block to item display. [Minecraft Map Making]
2024-06-09344: Item frame that displays the first item in a chest. [Minecraft Map Making]
2024-06-08343: Updated. Big moving chain. [Minecraft Map Making]
2024-06-07342: Detecting weather. [Minecraft Map Making]
2024-06-06341: Top down camera view, remote controlled entity with button detection. [Minecraft Map Making]
2024-06-05340: Moving mechanical chain decoration. [Minecraft Map Making]
2024-06-04339: Rotating room. [Minecraft Map Making]
2024-06-03338: Tool for detecting and counting hidden ores. [Minecraft Map Making]
2024-06-02337: Concept: Magic staff with homing missiles. [Minecraft Map Making]
2024-05-31336: Checking light levels at the players position. [Minecraft Map Making]
2024-05-30335: UPDATED: Run command every n ticks to player near tagged entity. [Minecraft Map Making]
2024-05-30334: Waystones. [Minecraft Map Making]
2024-05-29333: Text display force fields. [Minecraft Map Making]
2024-05-29332: Villager dialogue using clickable tellraw. [Minecraft Map Making]
2024-05-27331: Run command every n ticks to player near tagged entity. [Minecraft Map Making]
2024-05-26330: Fireflies in a jar as a light source. [Minecraft Map Making]
2024-05-24329: Placing saved structures with commands. [Minecraft Map Making]
2024-05-23327: Updated: Will o the wisp that leads players to a POI. [Minecraft Map Making]
2024-05-23326: Alternate: Entity following entity. [Minecraft Map Making]
2024-05-23CoppitCraft Castle 049: Cannons and crenellations.



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.