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 132
    • Issues 132
    • 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
  • #1216

Closed
Open
Created Jul 21, 2023 by Tigran Har@TigranHar

Mount Bug

Summary

When using MythicMobsAPI (package - io.lumine.mythic...) to set a passenger of a Mythic Mob, the passenger doesn't appear to be on the Mythic Mob and can walk around freely. However, the passenger cannot break/place blocks, and any interaction (e.g. shooting a bow, throwing a snowball/egg) happens from the top of the Mythic Mob.

Steps to reproduce Step 1. Create a MythicMob like this-

<MYTHICMOB_NAME>: Type: CHICKEN Display: "MYTHICMOB_NAME" Health: 300 Damage: 0 Skills: - model{mid=broom_wood;n=false;ride=false;drive=true;driver=false} @self ~onSpawn - mountmodel{driver=false;drive=true;ride=true} Options: AlwaysShowName: false Collidable: true Silent: true PreventSunBurn: true MovementSpeed: 0

Step 2. Use the command mm mobs spawn <MYTHICMOB_NAME> to spawn the ridable mob.

Step 3. Use this Java code to mount the MythicMob and register it in your main class

@EventHandler
    public void onPlayerInteract(PlayerInteractEntityEvent event) {
        Entity clickedEntity = event.getRightClicked();
        Player player = event.getPlayer();

        // Check if the clicked entity is a chicken
        if (clickedEntity.getType() == EntityType.CHICKEN) {
            // Cancel the default behavior of right-clicking the entity
            event.setCancelled(true);

            // Mount
            clickedEntity.addPassenger(player);
        }
    }

Step 4. Join your server and right click a chicken

Current behavior

The passenger appears to not ride the Mythic mob, but interactions happen from the position of the Mythic Mob

Intended correct behavior

The passenger should appear on the top of the Mythic Mob

Server log file

https://pastebin.com/fX9pHZyz

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking