BetterAltay icon indicating copy to clipboard operation
BetterAltay copied to clipboard

api for set biom temperature

Open efor89 opened this issue 3 years ago • 10 comments

Description

hi can you add an api that we can change the biom temperature in a chunk? or that we can change rain to snow without change the biomeid?

getChunk()->setBiomeTemperature()

or something else to change the rain to snow

Justification

in the moment i can only make that its snowing with getChunk()->setBiomId(12). but with this you can not set the biomid back to the normal biomid. there are to manny bioms in one world to set it back to normal biomid. so with temp i think we can let it snow without change the biomid. or some networkpacket can handle this idk. start rain is easy but for start snow it give nothing?

Alternative methods

efor89 avatar Dec 26 '22 15:12 efor89

?

efor89 avatar Jan 27 '23 11:01 efor89

get the biome of the chunk then change it to what u want then reset it

CulteredSaint avatar Apr 02 '23 12:04 CulteredSaint

@Benedikt05 closed

CulteredSaint avatar Apr 02 '23 12:04 CulteredSaint

no @CulteredSaint thats not working if you do it like this you have to save all biom ids from all chunks in 1 file that you can give every chunk the correct biom id back.

efor89 avatar Apr 03 '23 12:04 efor89

and i think you dont read wat i have written

efor89 avatar Apr 03 '23 12:04 efor89

no @CulteredSaint thats not working if you do it like this you have to save all biom ids from all chunks in 1 file that you can give every chunk the correct biom id back.

wrong u save the biome id in an array then u change it again if u want and when the plugin disables it gets all modified chunks and reset their biomeid

CulteredSaint avatar Apr 03 '23 12:04 CulteredSaint

u want to change tempature right? then what i said is the solution since u will reset the tempature anyways

CulteredSaint avatar Apr 03 '23 12:04 CulteredSaint

i want that it snow in every chunk i need it for a weather plugin. but if i walk in my worlds with so manny bioms i cant save all the biom ids and set it back to normal biomid its super easy to start rain in all worlds but start snow in the worlds is not working only if the biom have id 12 and if i change all the biom ids in all chunks how can i set the chunks back to normal ids like 1, 2, 3, 4 and so on i can save the chunk coords with biom id in a json yes but thats so much that the json have 1 million lines and array is not good for it, for example if the server crash the ids are away

efor89 avatar Apr 03 '23 14:04 efor89

just save them in db

CulteredSaint avatar Apr 28 '23 14:04 CulteredSaint

its not like u will be able to open the db

CulteredSaint avatar Apr 28 '23 14:04 CulteredSaint