potted plant drops oops

This commit is contained in:
nelle 2024-12-19 15:18:58 -07:00
parent cf27d61973
commit e7d056a214
10 changed files with 73 additions and 107 deletions

View file

@ -0,0 +1,35 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:flower_pot"
}
],
"rolls": 1.0
},
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "roses_mod:cyan_rose"
}
],
"rolls": 1.0
}
]
}

View file

@ -0,0 +1,35 @@
{
"type": "minecraft:block",
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:flower_pot"
}
],
"rolls": 1.0
},
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"entries": [
{
"type": "minecraft:item",
"name": "roses_mod:rose_flower"
}
],
"rolls": 1.0
}
]
}

View file

@ -27,6 +27,9 @@ public class RosesLootTableProvider extends FabricBlockLootTableProvider {
addDrop(RosesBlocks.INSTANCE.getRoseFlower()); addDrop(RosesBlocks.INSTANCE.getRoseFlower());
addDrop(RosesBlocks.INSTANCE.getCyanRoseFlower()); addDrop(RosesBlocks.INSTANCE.getCyanRoseFlower());
addPottedPlantDrops(RosesBlocks.INSTANCE.getPottedRose());
addPottedPlantDrops(RosesBlocks.INSTANCE.getPottedCyan());
addDrop(Blocks.ROSE_BUSH, roseBushDrops(Blocks.ROSE_BUSH, Objects.requireNonNull(RosesBlocks.INSTANCE.getRoseFlower()).asItem(), 2.0F, 5.0F)); addDrop(Blocks.ROSE_BUSH, roseBushDrops(Blocks.ROSE_BUSH, Objects.requireNonNull(RosesBlocks.INSTANCE.getRoseFlower()).asItem(), 2.0F, 5.0F));
addDrop(RosesBlocks.INSTANCE.getCyanRoseBush(), roseBushDrops(RosesBlocks.INSTANCE.getCyanRoseBush(), Objects.requireNonNull(RosesBlocks.INSTANCE.getCyanRoseFlower()).asItem(), 2.0F, 5.0F)); addDrop(RosesBlocks.INSTANCE.getCyanRoseBush(), roseBushDrops(RosesBlocks.INSTANCE.getCyanRoseBush(), Objects.requireNonNull(RosesBlocks.INSTANCE.getCyanRoseFlower()).asItem(), 2.0F, 5.0F));
} }

View file

@ -1,14 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "roses_mod:cyan_rose"
}
]
}
]
}

View file

@ -1,14 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 2,
"entries": [
{
"type": "minecraft:item",
"name": "roses_mod:cyan_rose"
}
]
}
]
}

View file

@ -1,14 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "roses_mod:rose_flower"
}
]
}
]
}

View file

@ -1,17 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
[
{
"item": "roses_mod:cyan_rose_bush"
},
{
"item": "roses_mod:cyan_rose"
}
]
],
"result": {
"item": "minecraft:cyan_dye",
"count": 2
}
}

View file

@ -1,17 +0,0 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" ",
" WW",
" WW"
],
"key": {
"W": {
"item": "roses_mod:cyan_rose"
}
},
"result": {
"item": "roses_mod:cyan_rose_bush",
"count": 1
}
}

View file

@ -1,14 +0,0 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
[
{
"item": "roses_mod:rose_flower"
}
]
],
"result": {
"item": "minecraft:red_dye",
"count": 1
}
}

View file

@ -1,17 +0,0 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" ",
" WW",
" WW"
],
"key": {
"W": {
"item": "roses_mod:rose_flower"
}
},
"result": {
"item": "minecraft:rose_bush",
"count": 1
}
}