Tech Reborn

Tech Reborn

30M Downloads

Rubber Log Needs More Blockstates

KenyMylankca opened this issue ยท 4 comments

commented

asdsa
you can't place the rubber log just like that jungle log in the picture... can you please fix this? thanks!

commented

The blocksates that make up the sap spots are using up a good deal of the 16 states. I can look into doing this in 1.12 but it may have to be a 1.13 thing when we have access to more states.

commented

I was thinking about this issue and I think it could be fixed in 1.12. While the most common method of encoding metadata is bitpacking, where there would be too many blockstates needed (2 bits for sap side, 1 for has sap, and 2 for axis = 5 bits), it is theoretically possible to encode all possible combinations in 15 different states. Instead of bitpacking, you could use arithmetic encoding: there are only 3 axes, and 5 different possibilities for the sap side (4 for each side / 1 for "no side"), leading to 15 combinations, pack able into 4 bits.

Of course, this change would break all worlds like what happened with the leaves metadata changes in the beta days. Still, it is possible.

commented

i would recommend a method that will render sap on the log without the blockstate... but itd be a bit hard to code :D so dunno..

commented

Breaking worlds is not an option, it will happen in 1.13