Spawn Eggs Improperly Placed By Dispenser
Summary
Basically, when a mob is spawned by a MythicMobs egg in a dispenser, instead of spawning centered, it spawns on the corner of where it should be placed. Also, when a redstone clock is attached to the dispenser, the last mob spawned when the clock turns off is spawned on the corner on top of the dispenser regardless of direction.
Steps to reproduce
Nothing appears in logs, debug, or console. (I recommend doing this with an armor stand mob since they don't move around so it's easier to observe)
- Put a MythicMobs spawn egg in a dispenser facing to any side except up or down.
- Activate the dispenser.
- Observe the mob spawning on the corner of the block it should dispense onto.
- Attach a comparator clock to the dispenser.
- Activate the comparator clock.
- Observe the mobs also spawning on the corner of the block.
- Turn off the clock.
- Observe the last mob spawned getting spawned on top of the dispenser and sitting on the corner.
Current behavior
What happens currently is that when a mob egg is placed in a dispenser, it spawns directly at the coordinate instead of at the center of the block of air that it should be placed. Aka, it spawns on the corner of the block it should be placed onto.
Another issue is that a dispenser attached to a redstone clock will spawn the mob on the corner on top of the dispenser regardless of the direction the dispenser is facing.
Intended correct behavior
What should happen is that the mob spawns like any normal spawn egg does when put in a dispenser. Spawning centered on the block that the dispenser face is oriented towards.
Server log file
Nothing appears in the console nor does anything appear in the server logs. I believe it's an oversight when making the code because it's likely to be a simple error as spawning it at -100, 50, -100 is actually the corner of a block while -100.5, 50, -100.5 is the center of the block.
Debug log snippet
Nothing appears in the console nor does anything appear in the server logs or debug logs. I believe it's an oversight when making the code.
Proposed fixes
I believe the spawning on a corner is an oversight when making the code because it's likely to be a simple error as spawning it at -100, 50, -100 is actually the corner of a block while -100.5, 50, -100.5 is the center of the block.
However, the issue with the mob eggs spawning on top of the dispenser when attached to redstone clock is likely to be a bug. But nothing shows up on console, logs, or debug. The redstone clock issue may be an error in that it can't process it fast enough but I'm not sure.
the obsidian wall is there because I was testing this with TNT. I have an observer clock used in this test but it has the same results and pulse rate as a comparator clock.