Add proper boxes structure to minecraft:collision_box (1.21.130)#164
Open
ahnsunggwan45 wants to merge 4 commits intoCustomiesDevs:masterfrom
Open
Add proper boxes structure to minecraft:collision_box (1.21.130)#164ahnsunggwan45 wants to merge 4 commits intoCustomiesDevs:masterfrom
boxes structure to minecraft:collision_box (1.21.130)#164ahnsunggwan45 wants to merge 4 commits intoCustomiesDevs:masterfrom
Conversation
|
Using // "minecraft:collision_box": false
"minecraft:collision_box": {
"boxes": [],
"enabled": 0
}
// "minecraft:collision_box": true
"minecraft:collision_box": {
"boxes": [],
"enabled": 1
}
// "minecraft:collision_box": {
// "origin": [-8, 0, -8],
// "size": [16, 8, 16]
// }
"minecraft:collision_box": {
"boxes": [
{
"maxX": 16,
"maxY": 8,
"maxZ": 16,
"minX": 0,
"minY": 0,
"minZ": 0
}
],
"enabled": 1
}// "minecraft:collision_box": [
// {
// "origin": [-8, 0, -8],
// "size": [16, 16, 16]
// },
// {
// "origin": [-8, 0, -8],
// "size": [8, 24, 8]
// }
// ]
"minecraft:collision_box": {
"boxes": [
{
"maxX": 16,
"maxY": 16,
"maxZ": 16,
"minX": 0,
"minY": 0,
"minZ": 0
},
{
"maxX": 8,
"maxY": 24,
"maxZ": 8,
"minX": 0,
"minY": 0,
"minZ": 0
}
],
"enabled": 1
} |
Member
|
Could you fix the formatting / indentation of the file, so we can see the diff more clearly? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bedrock 1.21.130 enforces a new schema for
minecraft:collision_boxthat requires aboxeslist defining min/max coordinates for collision shapes.Customies previously generated only
originandsize, which caused the client to crash shortly after joining.This commit adds the required
boxes: ListTag<CompoundTag>entry using local block coordinates (0 → size), ensuring the collision box matches the new format and preventing client-side crashes.Only the collision_box component was modified; all existing behavior and APIs remain unchanged.