#Pickaxe Dig Slowly & Dig With Hand Drop Loot
1 messages · Page 1 of 1 (latest)
Oh, and here's the code of the block
{
"format_version": "1.20.30",
"minecraft:block": {
"description": {
"identifier": "jl:amber_ore",
"menu_category": {
"category": "nature",
"group": "itemGroup.name.ore"
}
},
"components": {
"minecraft:display_name": "tile.jl:amber_ore.name",
"minecraft:destructible_by_explosion": {
"explosion_resistance": 20
},
"minecraft:destructible_by_mining": {
"seconds_to_destroy": 15
},
"minecraft:light_emission": 0.3,
"minecraft:on_player_destroyed": {
"event": "jl:xp_reward"
},
"minecraft:loot": "loot_tables/blocks/jl/amber_ore.json",
"tag:iron_pick_diggable": {}
},
"events": {
"jl:xp_reward": {
"run_command": {
"command": ["structure load ore_xp_reward ~ ~ ~"]
}
}
}
}
}
Vanilla tools, unfortunately, do not properly detect custom blocks so they all mine the same speed.
For your second part, you would need to use match tools in the loot table section
that's sad to hear 😔
but thank you very much for helping me solve the problem, Sir.
🙂
do i add this to solve the 2nd part, Sir?
"permutations": [
{
"condition": "q.is_item_name_any('slot.weapon.mainhand', 0, 'minecraft:iron_pickaxe')",
"components": {
"minecraft:loot": "loot_tables/blocks/jl/amber_ore"
}
}
]