Cuberite Forum
Block State transition - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Block State transition (/thread-3365.html)



Block State transition - 12xx12 - 06-28-2021

Just wanted to give a heads-up.

This is more or less working. More or less....
The most important thing is to merge the other BlockState class and fixing the API.

I have some questions:

1) Do we want to add the new world loading in this PR? So actually loading block states from disk

2) do we want to purge all bugs or yolo the merge and fix it afterwards? Game breaking bugs excluded I am talking about placing blocks, breaking stuff, ...
3) At the moment world loading is as sow as generating a new one. This is because I have to iterate through every block and switch to its block state. Is this acceptable [for now]?


RE: Block State transition - NiLSPACE - 06-29-2021

If it were up to me I'd say:
1) No, world loading can be done at a later date.
2) Ideally yes, but if there are only a few minor bugs that can be fixed later that'd be fine as well.
3) What is the alternative for this?


RE: Block State transition - 12xx12 - 06-29-2021

(06-29-2021, 02:39 AM)NiLSPACE Wrote: If it were up to me I'd say:
1) No, world loading can be done at a later date.
2) Ideally yes, but if there are only a few minor bugs that can be fixed later that'd be fine as well.
3) What is the alternative for this?

2) it seems playable. I am caught in creative because I broke the core pluginĀ 
3) see 1)


RE: Block State transition - 12xx12 - 06-29-2021

And reguarding 1)

Loading a pre block-state map requires us to do more then just iterating through the map and switching block/meta to blockstate.

Large plants for example are now stored differently and to convert the top block you need the lower block. Previously the top block only knew it was the top block


RE: Block State transition - NiLSPACE - 06-29-2021

Is it a one-time conversion or would it have to be redone as soon as the chunk is unloaded and reloaded? If worldloading can prevent this perhaps it's more important than I initially thought.


RE: Block State transition - 12xx12 - 06-29-2021

To do it properly it would be a one time thing (like with any minecraft update)

We just need a proper way to write block states to disk -> world loading,saving