Started by
Isalick34
on
Topic category: Troubleshooting, bugs, and solutions
I'm trying to make a procedure that shows text if you try to mine an ore that your pickaxe can't mine, and it works on vanilla ores, but the game thinks that my custom ores have a harvest level of 0 and I don't know how to change it.
It behaves normally when you actually mine the block but the procedure blocks to get the harvest level say it's 0.
Adding the appropriate block tags to the blocks works with the "Can harvest" 'block', but not the "Get harvest level at" 'block'.
I happen to have run into a similar issue and found this post finding a solution.
Harvest level 0 (wood): forge:needs_wood_tool
Harvest level 0* (gold): forge:needs_gold_tool
Harvest level 1 (stone): minecraft:needs_stone_tool
Harvest level 2 (iron): minecraft:needs_iron_tool
Harvest level 3 (diamond): minecraft:needs_diamond_tool
Harvest level 4 (netherite): forge:needs_netherite_tool
Thanks for the help, I already found a workaround that'll work for when I need the mining level is above 4.
I just made some block tags called "mining_#" and if the block is tagged with mining_#) I just test if the tool harvest level is lower than the number for the tag.