diff --git a/gradle.properties b/gradle.properties index 5115976..ad42f14 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs = -Xmx1G org.gradle.parallel = true # Mod Properties -version = 2.2.0 +version = 2.2.1 maven_group = xyz.limepot archives_base_name = roses_mod diff --git a/src/main/java/xyz/limepot/roses_mod/RosesMod.java b/src/main/java/xyz/limepot/roses_mod/RosesMod.java index 79a4598..005f4df 100644 --- a/src/main/java/xyz/limepot/roses_mod/RosesMod.java +++ b/src/main/java/xyz/limepot/roses_mod/RosesMod.java @@ -11,6 +11,7 @@ import net.minecraft.item.ItemGroups; import net.minecraft.item.Items; import net.minecraft.loot.LootPool; import net.minecraft.loot.entry.ItemEntry; +import net.minecraft.loot.provider.number.ConstantLootNumberProvider; import net.minecraft.registry.Registries; import net.minecraft.registry.Registry; import net.minecraft.registry.RegistryKey; @@ -74,7 +75,7 @@ public class RosesMod implements ModInitializer { final Identifier ROSE_BUSH_LOOT_TABLE_ID = Blocks.ROSE_BUSH.getLootTableId(); LootTableEvents.MODIFY.register((resourceManager, lootManager, id, tableBuilder, source) -> { if (source.isBuiltin() && ROSE_BUSH_LOOT_TABLE_ID.equals(id)) { - LootPool.Builder poolBuilder = LootPool.builder().with(ItemEntry.builder(RosesMod.ROSE_FLOWER));; + LootPool.Builder poolBuilder = LootPool.builder().rolls(ConstantLootNumberProvider.create(3)).with(ItemEntry.builder(RosesMod.ROSE_FLOWER));; tableBuilder.pool(poolBuilder); } }); diff --git a/src/main/resources/data/roses_mod/loot_tables/blocks/cyan_rose_bush.json b/src/main/resources/data/roses_mod/loot_tables/blocks/cyan_rose_bush.json index 9e19db2..db5735b 100644 --- a/src/main/resources/data/roses_mod/loot_tables/blocks/cyan_rose_bush.json +++ b/src/main/resources/data/roses_mod/loot_tables/blocks/cyan_rose_bush.json @@ -2,7 +2,7 @@ "type": "minecraft:block", "pools": [ { - "rolls": 2, + "rolls": 3, "entries": [ { "type": "minecraft:item", diff --git a/src/main/resources/data/roses_mod/recipes/cyan_rose_bush.json b/src/main/resources/data/roses_mod/recipes/cyan_rose_bush.json new file mode 100644 index 0000000..3c87f19 --- /dev/null +++ b/src/main/resources/data/roses_mod/recipes/cyan_rose_bush.json @@ -0,0 +1,17 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + " ", + " WW", + " WW" + ], + "key": { + "W": { + "item": "roses_mod:cyan_rose" + } + }, + "result": { + "item": "minecraft:cyan_rose_bush", + "count": 1 + } +}