This commit is contained in:
Sollace 2024-03-02 00:35:23 +00:00
parent 06015ee10b
commit 2f74a90afc
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
8 changed files with 12 additions and 8 deletions

View file

@ -149,7 +149,11 @@ public record Tree (
)), configuredFeatureId, placements.values().stream()
.collect(Collectors.toUnmodifiableSet()),
sapling,
sapling.map(saplingBlock -> Registry.register(Registries.BLOCK, saplingId.get().withPrefixedPath("potted_"), Blocks.createFlowerPotBlock(saplingBlock))));
sapling.map(saplingBlock -> {
Block flowerPot = Registry.register(Registries.BLOCK, saplingId.get().withPrefixedPath("potted_"), Blocks.createFlowerPotBlock(saplingBlock));
UBlocks.TRANSLUCENT_BLOCKS.add(flowerPot);
return flowerPot;
}));
if (REGISTRY.isEmpty()) {
bootstrap();

View file

@ -1,6 +1,6 @@
{
"parent": "minecraft:block/flower_pot_cross",
"textures": {
"plant": "unicopia:block/golden_oak_sapling"
"plant": "unicopia:item/golden_oak_sapling"
}
}

View file

@ -1,6 +1,6 @@
{
"parent": "minecraft:block/flower_pot_cross",
"textures": {
"plant": "unicopia:block/green_apple_sapling"
"plant": "unicopia:item/green_apple_sapling"
}
}

View file

@ -1,6 +1,6 @@
{
"parent": "minecraft:block/flower_pot_cross",
"textures": {
"plant": "unicopia:block/mango_sapling"
"plant": "unicopia:item/mango_sapling"
}
}

View file

@ -1,6 +1,6 @@
{
"parent": "minecraft:block/flower_pot_cross",
"textures": {
"plant": "unicopia:block/palm_sapling"
"plant": "unicopia:item/palm_sapling"
}
}

View file

@ -1,6 +1,6 @@
{
"parent": "minecraft:block/flower_pot_cross",
"textures": {
"plant": "unicopia:block/sour_apple_sapling"
"plant": "unicopia:item/sour_apple_sapling"
}
}

View file

@ -1,6 +1,6 @@
{
"parent": "minecraft:block/flower_pot_cross",
"textures": {
"plant": "unicopia:block/sweet_apple_sapling"
"plant": "unicopia:item/sweet_apple_sapling"
}
}

View file

@ -1,6 +1,6 @@
{
"parent": "minecraft:block/flower_pot_cross",
"textures": {
"plant": "unicopia:block/zapling"
"plant": "unicopia:item/zapling"
}
}