Spawn entities in water

I tried to make some plant model to upgrade the temperate biome. Placing them on mountains, grass is not a problem. But how it works when i want to place some models also in water?

"water": {
        "spawn_opbjects":{
          "water_1":{
            "none":1,
            "modname:plants:entity": 5
          },
          "water_2":{
            "none":1,
            "modname:plants:entity": 2
          }
        }
  }

I tried this code but doesn’t work :frowning:

BTW: Is it possible to spawn models only nearby water? Like papyrus plants that only grow near water in real life?

2 Likes

@BrunoSupremo you did something like that in the swampbiome right? :slight_smile:

1 Like

I take already a closer look to some other biomes :smiley: one of them was the Swamp Biome. But i think i’m missing something in the entire code…

1 Like

That json alone will do nothing because there is no code to read it. You need the lua files that will search that code and do the spawning, it is not a vanilla thing, that was something I did for the modded biomes.

To spawn around water you can simple raise the water value for that category.

			"mean_offset": {
				"boundary": -5,
				"water": 50
			},

So objects will have a higher chance to spawn there (boundary is near terrain changing elevation)

1 Like

I was afraid that this can be the problem :frowning:

For the spawn around the water definitely i will try this s soon as possible