Balance
This commit is contained in:
parent
d59c12882b
commit
45ad5d88d0
4 changed files with 21 additions and 3 deletions
|
@ -3,7 +3,7 @@ org.gradle.jvmargs = -Xmx1G
|
||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
version = 2.2.0
|
version = 2.2.1
|
||||||
maven_group = xyz.limepot
|
maven_group = xyz.limepot
|
||||||
archives_base_name = roses_mod
|
archives_base_name = roses_mod
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ import net.minecraft.item.ItemGroups;
|
||||||
import net.minecraft.item.Items;
|
import net.minecraft.item.Items;
|
||||||
import net.minecraft.loot.LootPool;
|
import net.minecraft.loot.LootPool;
|
||||||
import net.minecraft.loot.entry.ItemEntry;
|
import net.minecraft.loot.entry.ItemEntry;
|
||||||
|
import net.minecraft.loot.provider.number.ConstantLootNumberProvider;
|
||||||
import net.minecraft.registry.Registries;
|
import net.minecraft.registry.Registries;
|
||||||
import net.minecraft.registry.Registry;
|
import net.minecraft.registry.Registry;
|
||||||
import net.minecraft.registry.RegistryKey;
|
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();
|
final Identifier ROSE_BUSH_LOOT_TABLE_ID = Blocks.ROSE_BUSH.getLootTableId();
|
||||||
LootTableEvents.MODIFY.register((resourceManager, lootManager, id, tableBuilder, source) -> {
|
LootTableEvents.MODIFY.register((resourceManager, lootManager, id, tableBuilder, source) -> {
|
||||||
if (source.isBuiltin() && ROSE_BUSH_LOOT_TABLE_ID.equals(id)) {
|
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);
|
tableBuilder.pool(poolBuilder);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"type": "minecraft:block",
|
"type": "minecraft:block",
|
||||||
"pools": [
|
"pools": [
|
||||||
{
|
{
|
||||||
"rolls": 2,
|
"rolls": 3,
|
||||||
"entries": [
|
"entries": [
|
||||||
{
|
{
|
||||||
"type": "minecraft:item",
|
"type": "minecraft:item",
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue