338: Tool for detecting and counting hidden ores. [Minecraft Map Making]
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
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.