This mod adds a completely invisible collision box with customizable size! The hitbox doesn't have to align with the block grid! You can use this in maps or in singleplayer creative worlds!
This mod is made for creative mode and commands.
Why not use shulkers or boats?
There is no way to make them fully invisible, and if you make shulkers invulnerable, they still make an attack sound.
Example usage:
/summon collision-entity:collision ~ ~ ~ {size:[1,2,3]}
This will create a collision entity at your position with size X: 1 Y: 2 Z: 3
Note: If you want to have a fraction in the size, you need to add .0 to every number.
X: 1 Y: 2 Z: 3.4 -> size:[1.0,2.0,3.4]
To see the entity hitbox, use F3+B.
You can still break and place blocks through and in the collision entity.
If you want to prevent interacting through the entity, you can summon an interaction entity (minecraft:interaction) in the same exact location with the same size.
If you want to prevent placing blocks in the entity, you can replace the blocks you want to stay empty with minecraft:piston_head (aka block 36).
How to Install Collision Entity (Mod)
Collision Entity by 7410 is verified for Fabric across Minecraft versions 1.21.1, 1.21.3, 1.21.4 (latest release: 1.1-1.21.4, file size: 84 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.1, 1.21.3, 1.21.4) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Collision Entity file into your Minecraft
.minecraft/modsfolder and launch the game.