Legacy Fabric-Api

Legacy Fabric-Api

70.5k Downloads

hi do you guys want a free biome api

valoeghese opened this issue ยท 57 comments

commented

I will make one if I get 6 thumbs up reactions within the next 24 hours

commented

image
that was quick

commented

image
commentceptioned 1 hour ago
now remove bikeshed tag

commented

finally
yes please do it :)

should have these :-

  • adding biomes
  • syncing biome ids (look at the content registries module)
  • adding features to them
commented

> Syncing Biome IDs
oh no

commented

> adding features to them
that's not how it works in these versions. Instead you manipulate the biome decorator properties (or whatever you named it, I only know the old mcp name). For more control you override the biome's decorate/populate method.
Certain things like tree type is done in a method in the biome.

commented

If you want to add custom features to existing biomes, instead there should be an event for biome decoration/population. I can add that in my PR.

commented

I know this because I started mc modding by learning biome stuff on 1.12.2, and I know that 1.8.9 world gen is very similar to 1.12.2

commented

adding features to them
that's not how it works in these versions. Instead you manipulate the biome decorator properties (or whatever you named it, I only know the old mcp name). For more control you override the biome's decorate/populate method.
Certain things like tree type is done in a method in the biome.

check out #30
that was for ores
shedaniel didn't like it though so I closed it

commented

If you want to add custom features to existing biomes, instead there should be an event for biome decoration/population. I can add that in my PR.

finally someone other than me is making an enhancement pull request

commented

Back in 1.12.2 forge days we just hooked into the world decoration event and checked if the biome matched our conditions. It's simpler and I think it works well

commented

Back in 1.12.2 forge days we just hooked into the world decoration event and checked if the biome matched our conditions

that would be suitable for us too

commented

might probably need multiple callbacks

commented

Forge literally had an event for every single feature in addition to it's world gen decoration callback. I'm not implementing all those callbacks. ๐Ÿ˜‰

commented

which is?

commented

Just a single callback

commented

I mean, I'll implement the useful callbacks, just won't have an event posted for every single vanilla feature like forge does lol

commented

so what are these useful callbacks?
could you give some examples of what you plan to implement?

commented

I had done something similar in #30
but, shedaniel didn't like it so ๐Ÿฆ€

commented

Most Likely:

  • hills/shores/rivers if I have time. don't want to overdo it
  • definitely vanilla continental biome gen and fabric's variant system (the latter of which I think I wrote half of anyway)
  • world decoration callback
commented

Idk how ID sync works so if you want that someone would have to tell me

commented

ids are written and read from a file

commented

well, I know how to do it as in per-world registries, as I wrote that for cursed legacy. But not networking

commented

registering of biomes may have to happen in content-registries-v1

commented

syncing raw ids is done by writing them to a file. so removing a mod doesn't break your worlds

commented

I thought you were talking about server-client sync

commented

I know how to sync raw ids per world as I wrote cursed legacy's version of that.
I just can't do server-client sync

commented

we've never had any issues about syncing ids across sides yet

commented

@shedaniel what do you think about per world biome ids?

commented

Making id sync in beta 1.7.3 tiles and items was a pain btw ๐Ÿ˜‰

commented

oh yea I think ids in content registries are done per world

commented

noooo not the ๐Ÿšฒ ๐Ÿ 

commented

anyway I only have 1/6 thumbs up reactions so far, so I might not even make the pr :tiny_Potao

commented

6 thumbs ups and i'll remove it because something's actually gonna happen then ๐Ÿ˜œ

commented

you got three ๐Ÿ‘ already :tiny_potato:

commented

now four ;)

commented

now five :D

commented

six!!!!!!

commented

now six :)

commented

image
How tf r u guys so popular

commented

look at this. yall're a suggested search. Not "past search." Suggested

commented

Also how do I know this isn't just you and your 8 alts :Wink:

commented

shedaniel is now officially a boogiemonster101 alt

commented

How in the actual f*k have you not mapped the OverworldChunkGenerator yet. It's literally class_427

commented

at least I'm familiar enough with the code to be able to deal with it when it's obf

commented

method_1323 is the decoration/population of features

commented

field_901 controls whether sand should fall instnatly and stuff

commented

not all of us know biomes well

commented

HOW THE ACTUAL F*CK DID YOU MAP THE BIOME DECORATION METHOD AS BUILD SURFACE WTF

commented

idot :irr

commented

irr

commented

fake news. no biome api. fix or remove. no mcp names. format or bad

commented

I'm also going to make an ExtendedBiome interface which can be used for biomes to edit some aspects of world gen not controlled by the biome decorator (lakes)

commented

NOO you can't just make me spend 1 hour writing the biome api!!!1!!1!1!

commented

Haha I have school first and then my D&D group so you'll have to wait ๐Ÿ˜

commented

@valoeghese I told people on every discord server I was in where I wouldn't get banned to go put a thumbs up on the comment ๐Ÿ˜‰

commented

valoghese closed their pr.