Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 141
    • Issues 141
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #633

Closed
Open
Created Nov 28, 2021 by MysteryTimeTrav@MysteryTimeTrav

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)

  1. Put a MythicMobs spawn egg in a dispenser facing to any side except up or down.
  2. Activate the dispenser.
  3. Observe the mob spawning on the corner of the block it should dispense onto.
  4. Attach a comparator clock to the dispenser.
  5. Activate the comparator clock.
  6. Observe the mobs also spawning on the corner of the block.
  7. Turn off the clock.
  8. 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.

glitch

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.

Edited Nov 28, 2021 by MysteryTimeTrav
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking