Pumpkin/assets/datapack/data/minecraft/block_transformer/hoe.json

83 lines
1.9 KiB
JSON

[
{
"block_state_provider": {
"type": "minecraft:rule_based",
"rules": [
{
"if_true": {
"type": "minecraft:all_of",
"predicates": [
{
"type": "minecraft:matching_block_tag",
"tag": "minecraft:turns_into_farmland"
},
{
"type": "minecraft:matching_block_tag",
"offset": [
0,
1,
0
],
"tag": "minecraft:air"
}
]
},
"then": {
"id": "minecraft:farmland",
"properties": {
"moisture": "0"
}
}
},
{
"if_true": {
"type": "minecraft:all_of",
"predicates": [
{
"type": "minecraft:matching_blocks",
"blocks": "minecraft:coarse_dirt"
},
{
"type": "minecraft:matching_block_tag",
"offset": [
0,
1,
0
],
"tag": "minecraft:air"
}
]
},
"then": {
"id": "minecraft:dirt"
}
}
]
},
"disallowed_faces": [
"down"
],
"item_damage_per_use": 1,
"sound": "minecraft:item.hoe.till"
},
{
"block_state_provider": {
"type": "minecraft:rule_based",
"rules": [
{
"if_true": {
"type": "minecraft:matching_blocks",
"blocks": "minecraft:rooted_dirt"
},
"then": {
"id": "minecraft:dirt"
}
}
]
},
"drop_strategy": "clicked_face",
"item_damage_per_use": 1,
"loot": "minecraft:till/rooted_dirt",
"sound": "minecraft:item.hoe.till"
}
]