Create Big Cannons

Create Big Cannons

2M Downloads

Cannon components over 1 block in size can be walked through

cakeGit opened this issue ยท 1 comments

commented

Describe the bug
Quite minor and more a polish, but you can walk into cannon components if you are walking diagonally,

  • OS: Windows
  • Version: All - Doing this on 1.18.2-beta-0.5.jar

To Reproduce
Steps to reproduce the behavior:

  1. Go in-game
  2. Place down a cannon chamber with a hitbox larger than 1 block
  3. Walk into the cannon diagonally
  4. Player will no-clip into the cannon

This is because Minecraft will not check blocks that are not immediately next to the player, and ignore hitboxes you are already in.
This is very annoying, but I would suggest making a hitbox where the corners are cut out like:
image

Expected behavior
Cannon to block moving inside

Screenshots

Walking into a regular block-size cannon chamber:
image

Walking into a larger cannon chamber:
image

commented

Shrunk the collision hitboxes to the 16 x 16 block. you will be able to walk through some of the visual cannon but it shouldn't be too off-putting