363: Can the player see the sky at daytime? [Minecraft Map Making]

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



Minecraft
Game:
Minecraft (2011)
Duration: 15:34
213 views
7


Ep363: Using two predicates to check the time of day and whether or not the player is under cover. Beware vampires

00:00 Intro
00:30 Can see sky
03:35 Is day time/night time
08:30 Is daytime - inverted predicate
12:20 Is daytime - using unless
12:50 Both checks

Version: 1.21

Suggested by: Hasan Topcu

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:

See Sky:
RUA: execute as @a at @s if predicate {"condition":"minecraft:entity_properties","entity":"this","predicate":{"location":{"can_see_sky":true}}} run say I can see the sky!

Is Daytime:
RUA: execute as @a at @s unless predicate {condition:"minecraft:time_check",value:{min:12800,max:23450},period:24000} run say It's daytime!

Is Daytime - Inverted predicate:
RUA: execute as @a at @s if predicate {"condition":"inverted", "term":{"condition":"minecraft:time_check", "value":{"min":12800, "max":23450}}} run say It's daytime!

Both:
RUA: execute as @a at @s if predicate {"condition":"minecraft:entity_properties","entity":"this","predicate":{"location":{"can_see_sky":true}}} unless predicate {"condition":"minecraft:time_check", "value":{"min":12800, "max":23450}} run say Argh! I'm burning!

Notes on inverting a predicate:
{"condition":"inverted", "term":{the predicate}}




Other Videos By Infernal Device


2024-07-07372: Simple thirst mechanism. [Minecraft Map Making]
2024-07-06371: Invisible glowing vanishing parkour blocks. [Minecraft Map Making]
2024-07-05370: Ground breaking heavy boots. [Minecraft Map Making]
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]



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.