338: Tool for detecting and counting hidden ores. [Minecraft Map Making]

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



Minecraft
Game:
Minecraft (2011)
Duration: 11:50
265 views
9


Ep338: Making a tool that the player can use to detect ores hidden in the ground and tell them how many there are.

READ ME:
Thanks to the comments I realize I have used a non vanilla tag when making this tutorial. Rather annoying there is no list of ore blocks in vanilla. You can still use this to search for an existing block tag from vanilla, or a specific block type.

Version:1.19

Episode 252 - Count blocks in an area:    • 252: Count blocks in an area. [Minecr...  

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 used_coas used:carrot_on_a_stick
CUA: scoreboard objectives add ore_count dummy

Give:
IUN: give @p carrot_on_a_stick{detector:true}

Controller:
RUA: execute as @a[scores={used_coas=1..}, nbt={SelectedItem:{tag:{detector:true}}}] at @s store result score @s ore_count run clone ~-1 ~-1 ~-1 ~1 ~-10 ~1 ~-1 ~-10 ~-1 filtered #c:ores force
CUA: execute as @a[scores={used_coas=1.., ore_count=0}] run title @s actionbar [{"text":"Ore Count: 0", "color":"red"}]
CUA: execute as @a[scores={used_coas=1.., ore_count=0}] at @s run playsound block.note_block.bass master @s ~ ~ ~ 1 0.1 0
CUA: execute as @a[scores={used_coas=1.., ore_count=1..}] run title @s actionbar [{"text":"Ore Count: ", "color":"dark_green"},{"score":{"name":"@s","objective":"ore_count"}}]
CUA: execute as @a[scores={used_coas=1.., ore_count=1..}] at @s run playsound block.note_block.bit master @s ~ ~ ~ 1 2 0
CUA: scoreboard players reset @a used_coas
CUA: scoreboard players reset @a ore_count




Other Videos By Infernal Device


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.
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]



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.