Why are all numbers in Minecraft a power of 2?

el
- in Worlds
8

Also: I mean z. B. The construction limit (256), an inventory stack (64), the amount of strongholds in a world (128) and much more.

Why is that?

Ch

Maybe because of the binary numbers ^^

64 = 1000000

128 = 10000000

256 = 100000000

el

I know that something has to do with it, but why why does it help

cl

Binary system

Al
1

This should represent a link to the dual system. E.g.
6 bit → 2 ^ 6 = 64
7 bit → 2 ^ 7 = 128
8 bit → 2 ^ 8 = 256
This was done in times when storage space was optimized bit by bit in order to manage storage as economically as possible. It's just based on those times to get a touch of nostalgia for computer science.
Nowadays the variable types in the main memory are much larger (mostly 4 bytes), and often even accompanied by dead bytes in order to better organize memory structures.

cl

Is usually chosen arbitrarily.

Ch

I do not know myself.

el

I've been waiting for an answer like this, thank you

el

OK