Adding Y-level Chunk Borders #1

Closed
opened 2024-09-08 06:21:22 +00:00 by tentyped · 3 comments
tentyped commented 2024-09-08 06:21:22 +00:00 (Migrated from github.com)

I was looking at the game recently (AKA. just 5 minutes ago) and noticed that chunks don't exactly have a Y limit (Haven't read the code enough to check yet). I recommend adding explicit limits in the chunk structure, especially for the lower Y, as it's generally useless to not limit it. You could also replicate Minecraft by using the random library and putting a 75% chance that it will spawn in a specific block (make sure not to have overlapping blocks) for 3 blocks above the limit and just a normal filled bedrock layer at the bottom.

I was looking at the game recently (AKA. just 5 minutes ago) and noticed that chunks don't exactly have a Y limit (Haven't read the code enough to check yet). I recommend adding explicit limits in the chunk structure, especially for the lower Y, as it's generally useless to not limit it. You could also replicate Minecraft by using the random library and putting a 75% chance that it will spawn in a specific block (make sure not to have overlapping blocks) for 3 blocks above the limit and just a normal filled bedrock layer at the bottom.
EvanatorM commented 2024-09-08 11:09:43 +00:00 (Migrated from github.com)

Thanks for checking out the code! The chunks are all 32 blocks tall. I know that the infinite height is useless, but I decided to keep it for now because it's cool to say my world has infinite height. I'll definitely limit it if I start actually making a game out of this project.

Thanks for checking out the code! The chunks are all 32 blocks tall. I know that the infinite height is useless, but I decided to keep it for now because it's cool to say my world has infinite height. I'll definitely limit it if I start actually making a game out of this project.
tentyped commented 2024-09-09 00:36:57 +00:00 (Migrated from github.com)

Honestly the no height limit may be actually useful for builders if they want to build large structures, but its the bottom Y that's the problem. There's no limit to how deep you can mine. I'd recommend adding a minimum Y level and building the chunk up from there

Honestly the no height limit may be actually useful for builders if they want to build large structures, but its the bottom Y that's the problem. There's no limit to how deep you can mine. I'd recommend adding a minimum Y level and building the chunk up from there
EvanatorM commented 2024-09-13 12:20:36 +00:00 (Migrated from github.com)

Yeah I'm hoping to eventually make a game out of this (that'll be different from Minecraft lol) so I will definitely add a limit to it then. For now though, this is kinda just a simple little engine, so I'm just going to leave it for now

Yeah I'm hoping to eventually make a game out of this (that'll be different from Minecraft lol) so I will definitely add a limit to it then. For now though, this is kinda just a simple little engine, so I'm just going to leave it for now
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TheZone/ScuffedMinecraft#1
No description provided.