Mojira Archive
MC-278234

Creaking heart won't generate as decorator in configured tree featured

Steps to reproduce:

  1. create a placed_feature with the name tall_pale_tree.json
  2. input code 
    {
        "feature": "minecraft:pale_tree",
        "placement": [
            {
                "type": "minecraft:count",
                "count": 24
            },
            {
                "type": "minecraft:in_square"
            },
            {
                "type": "heightmap",
                "heightmap": "WORLD_SURFACE"
            },
            {
                "type": "minecraft:block_predicate_filter",
                "predicate": {
                    "type": "minecraft:matching_blocks",
                    "offset": [
                        0,
                        -1,
                        0
                    ],
                    "blocks": [
                        "minecraft:grass_block",
                        "minecraft:coarse_dirt"
                    ]
                }
            },
            {
                "type": "minecraft:biome"
            }
        ]
    } 

3. create a configured feature named: pale_tree.json

4. input code

{
    "type": "minecraft:tree",
    "config": {
        "decorators": [
            {
                "type": "minecraft:creaking_heart",
                "probability": 1.0
            },
            {
                "type": "minecraft:pale_moss",
                "ground_probability": 0.8,
                "leaves_probability": 0.15,
                "trunk_probability": 0.4
            }
        ],
        "dirt_provider": {
            "type": "minecraft:simple_state_provider",
            "state": {
                "Name": "minecraft:dirt"
            }
        },
        "foliage_placer": {
            "type": "minecraft:jungle_foliage_placer",
            "height": 2,
            "offset": 0,
            "radius": 2
        },
        "foliage_provider": {
            "type": "minecraft:simple_state_provider",
            "state": {
                "Name": "minecraft:pale_oak_leaves",
                "Properties": {
                    "distance": "7",
                    "persistent": "false",
                    "waterlogged": "false"
                }
            }
        },
        "force_dirt": false,
        "ignore_vines": true,
        "minimum_size": {
            "type": "minecraft:three_layers_feature_size",
            "limit": 1,
            "lower_size": 0,
            "middle_size": 1,
            "upper_limit": 1,
            "upper_size": 4
        },
        "trunk_placer": {
            "type": "minecraft:mega_jungle_trunk_placer",
            "base_height": 24,
            "height_rand_a": 2,
            "height_rand_b": 19
        },
        "trunk_provider": {
            "type": "minecraft:simple_state_provider",
            "state": {
                "Name": "minecraft:pale_oak_log",
                "Properties": {
                    "axis": "y"
                }
            }
        }
    }
} 

Observed Results: When trying to make a tree with the creaking heart decorator for a new configured feature. The creaking heart isn't placed or decorated within the tree. Here is my configured feature. to summon the custom feature use /place feature command

Expected results: When using a creaking heart decorator, I expect one creaking heart to be put vertically within the trunk of the tree, regardless of its orientation or height. I also expect it to be within an 8-block distance from the ground, regardless of how tall the tree is. This would allow the creaking to spawn. Also i would like to point out the new 'probability' tag added to the decoration field. With a probability of 1.0, I would expect there to be a 100% probability of one creaky heart set for each feature. 

Invalid

dylanpereira9990

2024-11-09, 07:12 PM

2024-11-23, 04:23 PM

2024-11-23, 04:23 PM

1

3

Unconfirmed

(Unassigned)

configured_feature, creaking, creaking_heart, datapack, pale_oak, world-generation

24w45a, 24w46a

-