Skip to content

Commit

Permalink
add collision_box
Browse files Browse the repository at this point in the history
  • Loading branch information
olebeck committed Jul 24, 2024
1 parent 1432f83 commit 981cee2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/behaviourpack/custom_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ func parseBlock(block protocol.BlockEntry) MinecraftBlock {
}
continue
}

if k == "minecraft:collision_box" {
if enabled, ok := v["enabled"].(uint8); ok {
if enabled == 0 {
components[k] = false
continue
}
}
}
}

if k == "minecraft:custom_components" {
Expand Down

0 comments on commit 981cee2

Please sign in to comment.