203: Raycast experiments with command blocks. [Minecraft Map Making]

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



Minecraft
Game:
Minecraft (2011)
Duration: 15:20
1,887 views
119


Ep203: Seeing if we can make a reasonable raycasting system using command blocks.

Java Version: 1.19

Commands, builds and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/amU84KykEu

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.

Commands used:

Setup:
IUN: scoreboard objectives add raycast used:carrot_on_a_stick

Initialize ray:
RUA: execute as @a[scores={raycast=1..}] at @s positioned ~ ~1.5 ~ run summon area_effect_cloud ~ ~ ~ {Tags:["ray"], Radius:0f, Duration:20}
CUA: execute as @a[scores={raycast=1..}] at @s positioned ~ ~1.5 ~ rotated as @s run tp @e[tag=ray,distance=0..0.5] ~ ~ ~ ~ ~
CUA: scoreboard players reset @a raycast

Move Ray:
RUA: execute as @e[tag=ray] at @s if block ~ ~ ~ air run tp ^ ^ ^0.3

Message on hit:
RUA: execute as @e[tag=ray] at @s unless block ~ ~ ~ air store success entity @s Duration int 0 run tellraw @a {"text":"hit"}

Setblock on hit:
RUA: execute as @e[tag=ray] at @s unless block ~ ~ ~ air store success entity @s Duration int 0 run setblock ~ ~ ~ red_wool replace

Tag entity on hit:
RUA: execute as @e[tag=ray] at @s run tag @e[distance=0.1..1, type=!player] add hitMe
CUA: kill @e[tag=hitMe]
CCA: kill @e[tag=ray]

Test particles:
RUA: execute at @e[tag=ray] run particle flame ~ ~ ~ 0 0 0 0 1 normal




Other Videos By Infernal Device


2023-11-07208: Experimental - Levitating blocks with raycast. No Datapack. [Minecraft Map Making]
2023-11-06CoppitCraft Castle 004: Cool cave and going deep.
2023-11-06207: A wizard that turns into bats to escape. [Minecraft Map Making]
2023-11-03036: Kill it with fireworks?! [Run for your Life. Modded Minecraft Series]
2023-11-02206: Item checking Wishing Well. [Minecraft Map Making]
2023-11-02CoppitCraft Castle 003: A friend to keep me safe.
2023-11-01205: Unique player ID's in one command. [Minecraft Map Making]
2023-10-31035: We made it! [Run for your Life. Modded Minecraft Series]
2023-10-30204: The Eye. Door guardian. [Minecraft Map Making]
2023-10-29CoppitCraft Castle 002: Defending the homestead.
2023-10-28203: Raycast experiments with command blocks. [Minecraft Map Making]
2023-10-27034: To the Shyrelands!!! Almost... [Run for your Life. Modded Minecraft Series]
2023-10-26202: Repulsive armour stands. [Minecraft Map Making]
2023-10-25CoppitCraft Castle 001: First few nights on our new island.
2023-10-24033: "Who's a good boy!?" [Run for your Life. Modded Minecraft Series]
2023-10-23201: Changing pages and creating books on a lectern. [Minecraft Map Making]
2023-10-23200: Controlling villagers with books. [Minecraft Map Making]
2023-10-20032: The Minecraft Gods hate me today! [Run for your Life. Modded Minecraft Series]
2023-10-19199: Book controlled 2 axis moving platform. [Minecraft Map Making]
2023-10-18031: Fighting the Mega Flower Vinocorne. [Run for your Life. Modded Minecraft Series]
2023-10-17198: Small moving platforms. [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 182,428 views spread across 865 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.