D
I GOT IT WORKING! So all I had to do was add a "broken by player" check so the other half doesnt drop.
The side that is directly broken drops either: dye if broken with a sword, and a rose if not broken with a sword. Both of the other side's checks fail so it drops nothing.
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "minecraft:red_dye",
"functions": [
{
"function": "minecraft:set_count",
"count": 2
}
],
"conditions": [
{
"condition": "minecraft:block_state_property",
"block": "minecraft:rose_bush",
"properties": {
"half": "lower"
}
},
{
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:wooden_sword",
"minecraft:stone_sword",
"minecraft:iron_sword",
"minecraft:golden_sword",
"minecraft:diamond_sword",
"minecraft:netherite_sword"
]
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:red_dye",
"functions": [
{
"function": "minecraft:set_count",
"count": 2
}
],
"conditions": [
{
"condition": "minecraft:block_state_property",
"block": "minecraft:rose_bush",
"properties": {
"half": "upper"
}
},
{
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:wooden_sword",
"minecraft:stone_sword",
"minecraft:iron_sword",
"minecraft:golden_sword",
"minecraft:diamond_sword",
"minecraft:netherite_sword"
]
}
}
]
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
},
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "minecraft:rose_bush",
"conditions": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type": "minecraft:player"
}
},
{
"condition": "minecraft:block_state_property",
"block": "minecraft:rose_bush",
"properties": {
"half": "lower"
}
},
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:wooden_sword",
"minecraft:stone_sword",
"minecraft:iron_sword",
"minecraft:golden_sword",
"minecraft:diamond_sword",
"minecraft:netherite_sword"
]
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:rose_bush",
"conditions": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type": "minecraft:player"
}
},
{
"condition": "minecraft:block_state_property",
"block": "minecraft:rose_bush",
"properties": {
"half": "upper"
}
},
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:wooden_sword",
"minecraft:stone_sword",
"minecraft:iron_sword",
"minecraft:golden_sword",
"minecraft:diamond_sword",
"minecraft:netherite_sword"
]
}
}
}
]
}
]
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}