Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debucketing a mob on the side of a block causes the mob to suffocate #2

Open
RhythmicSys opened this issue Feb 21, 2023 · 1 comment

Comments

@RhythmicSys
Copy link
Member

image

If you debucket a mob on the side of a block it will spawn inside of that block and suffocate

@Peashooter101
Copy link
Member

It is still possible to suffocate a mob.

For example, if the interaction point is close to a wall but the BlockFace is UP, the mob's hitbox may be within the wall. This is not behavior I want.

Other examples include trying to debucket a Ghast in a 1x2 space but this one I was willing to accept as "will not fix".

The current solution fixes most issues like basic placing on the side of a block, but not all.

@Peashooter101 Peashooter101 reopened this Feb 24, 2023
Peashooter101 added a commit that referenced this issue Feb 24, 2023
Thanks @BillyGalbreath for the Spawn Entity Consumer type beat.

Ender Dragon can now be bucketed. Billy pointed that one out too.

Mob "adjust location" removed temporarily, may be used later for a TODO for placement based on bounding box.

Debucket now requires you to right click block action.

Location related changes for #2, mobs now spawn in the center of the empty block. Maybe don't spawn mobs in the ceiling right now.

Kept adjustLoc() for now since I plan on doing bounding box checks when debucketing soon (like not suffocating your mob when they spawn in the ceiling).

Co-Authored-By: William Blake Galbreath <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants