#Custom Feature generate only on Dirt

1 messages · Page 1 of 1 (latest)

scarlet radishBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1749446151:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

drowsy island
#

This is what I have, currently just spamming randomness

  "feature": "fauna_and_flora:carpet",
  "placement": [
    {
      "type": "minecraft:height_range",
      "height": {
        "absolute": 0
      }
    },
    {
      "type": "minecraft:block_predicate_filter",
      "predicate": {
        "type": "minecraft:matching_blocks",
        "blocks": [
          "minecraft:dirt"
        ]
      }
    },
    {
      "type": "minecraft:count",
      "count": 256
    },
    {
      "type": "minecraft:in_square"
    }
  ]
}```

I'm sure there's a feature or something that I'm simply missing that would make this a lot easier
uneven flower
#

If you want it to cover all dirt, you probably want to use a vegetation patch feature. You can make it so that it can only replace dirt blocks, make it place dirt blocks, and then make the vegetation have a 1.0 chance and place whatever feature or block you're trying to place. Then you can simply have the placed feature place in every chunk

#

Block predicate filter would be what you want otherwise but without a super high count you wouldn't get the 100% coverage you want without serious performance impacts, if even

drowsy island
#

I don't want it to cover everything that was bad wording I want it to generate on top of everything

uneven flower
#

You want it on top of all dirt, yes?

drowsy island
#

yeah

uneven flower
#

What I described does that

#

I see how I misspoke, edited

drowsy island
#

I'm using misode and none of the placed feature options say vegetation patch

uneven flower
#

It's a configured feature type

drowsy island
#

Nono I want to place the feature on the dirt

uneven flower
#

Yes, I understand

drowsy island
#

I already have a feature made

#

I don't want to make a new feature

uneven flower
#

Vegetation patch is a beautiful feature that lets you place other features on every block of the patch

#

It's perfectly tailored for exactly what you want to do here

drowsy island
#

Oh I see now ok

#

I must be missing something

#
  "type": "minecraft:vegetation_patch",
  "config": {
    "surface": "floor",
    "depth": 1,
    "vertical_range": 1,
    "extra_bottom_block_chance": 0,
    "extra_edge_column_chance": 0,
    "vegetation_chance": 1,
    "xz_radius": 10,
    "replaceable": "#minecraft:dirt",
    "ground_state": {
      "type": "minecraft:simple_state_provider",
      "state": {
        "Name": "minecraft:dirt"
      }
    },
    "vegetation_feature": "fauna_and_flora:carpet"
  }
}```

```{
  "feature": "fauna_and_flora:carpet_patch",
  "placement": [
    {
      "type": "minecraft:height_range",
      "height": {
        "absolute": 0
      }
    }
  ]
}```
uneven flower
#

Your placed feature feels incomplete

#

Just a height range isn't gonna do much

drowsy island
#

Idk man it crashed my game :/

#

I have no idea what happened 😭

uneven flower
#

This isn't likely to crash your game on its own. Could have been a memory thing if you've been doing a lot of worldgen stuff

drowsy island
#

The dimension has 3 features 😭

uneven flower
#

Vanilla Minecraft places tons of these in lush caves, with way more intensive placements

drowsy island
#

I must be doing something wrong

uneven flower
#

So eventually it runs out of memory

drowsy island
#

ohhhhk

#

I've been making new worlds for it

uneven flower
#

Same deal, yeah

drowsy island
#

right

#

what's wrong with my placed feature?

uneven flower
#

Well the reason it's not placing is that just a height range placement isn't going to do a lot

#

Indeed, this is just placing the feature at Y=0

#

Is that what you want?

drowsy island
#

It's been generating my other features

#

Yep

#

that's where everything is it's basically a superflat

uneven flower
#

Ah I see

drowsy island
#

that's where the dirt I want covered is

uneven flower
#

You're sure you added this to the biome?

drowsy island
#

yep

#

it's in the biome features

uneven flower
#

It might need to technically try to place above the ground so it can scan down and find it

#

I recommend using a heightmap placement instead, assuming this is open to the sky

drowsy island
#

it isn't

#

there's a roof like in the nether

uneven flower
#

Really making this hard on yourself huh?

drowsy island
#

I guess so

#

:?

uneven flower
#

Then try count_on_every_layer

drowsy island
#

Minecraft is still crashing I'll test this as soon as I can

uneven flower
#

Is the crash giving anything in logs?

drowsy island
#

is the xz_radius too big

drowsy island
uneven flower
drowsy island
#

It couldn't give errors it was crashing tho

uneven flower
#

Which means it could be a few other things

#

How many biomes does your dimension have?

drowsy island
#

1 so far I might add more

uneven flower
#

Ok, so that narrows it down

#

You said there's two or three other features? Let's see what those placed features are

drowsy island
#

We've got the one I've shown you, one that places a single block every few blocks in like a square and another that does lines

#

so like they're all the same thing in different shapes

uneven flower
#

Doesn't super matter what they're supposed to look like, please show what's in their placed feature files

#

Some placement types don't play well together and can cause these kinds of crashes

drowsy island
#

ok

#
{
  "feature": "fauna_and_flora:fluorescent_froglight",
  "placement": [
    {
      "type": "minecraft:height_range",
      "height": {
        "absolute": 4
      }
    },
    {
      "type": "minecraft:rarity_filter",
      "chance": 1
    },
    {
      "type": "minecraft:count",
      "count": 16
    },
    {
      "type": "minecraft:random_offset",
      "xz_spread": {
        "type": "minecraft:weighted_list",
        "distribution": [
          {
            "weight": 1,
            "data": 0
          },
          {
            "weight": 1,
            "data": 4
          },
          {
            "weight": 1,
            "data": 8
          },
          {
            "weight": 1,
            "data": 12
          }
        ]
      },
      "y_spread": 0
    }
  ]
}```
#
  "feature": "fauna_and_flora:termite_line_east",
  "placement": [
    {
      "type": "minecraft:height_range",
      "height": {
        "absolute": 0
      }
    },
    {
      "type": "minecraft:rarity_filter",
      "chance": 1
    },
    {
      "type": "minecraft:count",
      "count": 8
    },
    {
      "type": "minecraft:random_offset",
      "xz_spread": {
        "type": "minecraft:weighted_list",
        "distribution": [
          {
            "weight": 1,
            "data": 2
          },
          {
            "weight": 1,
            "data": 6
          },
          {
            "weight": 1,
            "data": 10
          },
          {
            "weight": 1,
            "data": 14
          }
        ]
      },
      "y_spread": 0
    }
  ]
}```
#

And then the same thing but north

uneven flower
#

Hm, not those then

#

It could indeed be the xz radius on the patch then, have you tried reducing it yet?

drowsy island
#

No I haven't gotten the chance

#

game is still opening

uneven flower
#

Ok, well try that next. Maybe something like 4 to be safe

#

And then if that works you can try to find the middleground

drowsy island
#

I've dropped it to 2 yeah

#

must be a bigger issue

#

even at 2 it crashes the game

#

Oh ok logs are working this time it's giving a stack overflow error

#

and this is like a huge error

scarlet radishBOT
#
Question Closed

Your question, #1381494478757433465 (Custom Feature generate only on Dirt), was resolved!

Original Message

#1381494478757433465 message

Duration open

48m

drowsy island
#

Does anybody else have ideas?

uneven flower
#

I didn't respond because you just said you had a big error, I assumed you were working through it

#

I can't help you if I don't know you need help