Not MythicMobs Bug: dropbug

Discussion in 'Bug Reports' started by Avalon, Aug 1, 2018.

  1. Avalon

    Avalon New Member
    Supporter

    Joined:
    Mar 22, 2017
    Messages:
    26
    Likes Received:
    0
    Enter a brief description of what is broken dropbug

    What version of Minecraft are you using? 1.12

    What server jar are you using? Paper

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? builds 2429

    Code:
    [12:28:37] [Server thread/WARN]: [MythicMobs] Task #227 for MythicMobs v4.4.1-SNAPSHOT generated an exception
    java.lang.ClassCastException: io.lumine.xikage.mythicmobs.drops.DropTable cannot be cast to io.lumine.xikage.mythicmobs.drops.MythicDropTable
        at com.gmail.berndivader.mythicmobsext.mechanics.DropMythicItemMechanic.createItemStack(DropMythicItemMechanic.java:82) ~[?:?]
        at com.gmail.berndivader.mythicmobsext.mechanics.DropMythicItemMechanic.a(DropMythicItemMechanic.java:65) ~[?:?]
        at com.gmail.berndivader.mythicmobsext.mechanics.DropMythicItemMechanic.castAtEntity(DropMythicItemMechanic.java:59) ~[?:?]
        at io.lumine.xikage.mythicmobs.skills.SkillMechanic.lambda$executeTargetedEntitySkill$0(SkillMechanic.java:408) ~[?:?]
        at java.lang.Iterable.forEach(Unknown Source) ~[?:1.8.0_181]
        at io.lumine.xikage.mythicmobs.skills.SkillMechanic.executeTargetedEntitySkill(SkillMechanic.java:404) ~[?:?]
        at io.lumine.xikage.mythicmobs.skills.SkillMechanic$3.run(SkillMechanic.java:361) ~[?:?]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:63) ~[patched_1.12.2.jar:git-Paper-1524]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:423) ~[patched_1.12.2.jar:git-Paper-1524]
        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:839) ~[patched_1.12.2.jar:git-Paper-1524]
        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1524]
        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:773) ~[patched_1.12.2.jar:git-Paper-1524]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) ~[patched_1.12.2.jar:git-Paper-1524]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_181]
    [12:28:38] [Server thread/WARN]: [MythicMobs] Task #230 for MythicMobs v4.4.1-SNAPSHOT generated an exception
    java.lang.ClassCastException: io.lumine.xikage.mythicmobs.drops.DropTable cannot be cast to io.lumine.xikage.mythicmobs.drops.MythicDropTable
        at com.gmail.berndivader.mythicmobsext.mechanics.DropMythicItemMechanic.createItemStack(DropMythicItemMechanic.java:82) ~[?:?]
        at com.gmail.berndivader.mythicmobsext.mechanics.DropMythicItemMechanic.a(DropMythicItemMechanic.java:65) ~[?:?]
        at com.gmail.berndivader.mythicmobsext.mechanics.DropMythicItemMechanic.castAtEntity(DropMythicItemMechanic.java:59) ~[?:?]
        at io.lumine.xikage.mythicmobs.skills.SkillMechanic.lambda$executeTargetedEntitySkill$0(SkillMechanic.java:408) ~[?:?]
        at java.lang.Iterable.forEach(Unknown Source) ~[?:1.8.0_181]
        at io.lumine.xikage.mythicmobs.skills.SkillMechanic.executeTargetedEntitySkill(SkillMechanic.java:404) ~[?:?]
        at io.lumine.xikage.mythicmobs.skills.SkillMechanic$3.run(SkillMechanic.java:361) ~[?:?]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:63) ~[patched_1.12.2.jar:git-Paper-1524]
        at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:423) ~[patched_1.12.2.jar:git-Paper-1524]
        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:839) ~[patched_1.12.2.jar:git-Paper-1524]
        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1524]
        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:773) ~[patched_1.12.2.jar:git-Paper-1524]
        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665) ~[patched_1.12.2.jar:git-Paper-1524]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_181]
    Example Configurations
     
    #1
  2. Avalon

    Avalon New Member
    Supporter

    Joined:
    Mar 22, 2017
    Messages:
    26
    Likes Received:
    0
  3. Omanoctoa

    Omanoctoa Active Member
    Supporter Premium Supporter

    Joined:
    Mar 10, 2016
    Messages:
    371
    Likes Received:
    33
    That's strange. Can we see the Skill and Droptable that is probably causing the issue? Does this occur for all dropped items or only certain ones?
     
    #3
  4. Avalon

    Avalon New Member
    Supporter

    Joined:
    Mar 22, 2017
    Messages:
    26
    Likes Received:
    0
    藍水晶礦:
    Type: Armor_stand
    Display: '&9藍水晶礦石'
    Health: 30000
    Damage: 0
    Skills:
    - skill{s=mine6} @PIR{r=3} ~onDamaged
    - skill{s=mining1-1} @PIR{r=3} ~onDamaged
    - skill{s=mining1-2} @PIR{r=3} ~onDamaged
    - skill{s=mining1-3} @PIR{r=3} ~onDamaged
    - skill{s=mining1-4} @PIR{r=3} ~onDamaged
    - skill{s=mining1-5} @PIR{r=3} ~onDamaged
    - skill{s=mining1-6} @PIR{r=3} ~onDamaged
    - skill{s=remove} @self ~onSpawn
    - healpercent{m=1} @self ~onDamaged
    - modifymobscore{objective=mine;action=add;value=1} ~onSignal:mine6
    - skill{s=Equipitem_1} @self ~onSpawn
    Options:
    Invincible: false
    NoGravity: true
    PreventItemPickup: true
    Persistent: true
    Silent: true
    Collidable: false
    NoAI: true
    AlwaysShowName: false
    KnockbackResistance: 0.2
    Despawn: false
    MovementSpeed: 0.28
    MaxuncommonbatDistance: 25
    PreventOtherDrops: true
    Silent: true
    Invisible: true

    藍寶石:
    Drops:
    - 藍寶石 1-2 0.015
    - 1:0 1-2 1
    - 351:4 1-2 0.35

    I use the drop system
    Making 3D mineral drops

    No problem at 4.40
     
    #4
    Last edited: Aug 8, 2018
  5. Omanoctoa

    Omanoctoa Active Member
    Supporter Premium Supporter

    Joined:
    Mar 10, 2016
    Messages:
    371
    Likes Received:
    33
    The only thing I can think of is it does not understand "藍寶石" as an item name. Is it possible to use another name for the item, or call it by an ID? The item is a sapphire, right?

    Also, consider moving from ID numbers (like 351:1) to item_names. So 351:1 would be minecraft:dye:1
    The ID numbers are being removed.
     
    #5
  6. Avalon

    Avalon New Member
    Supporter

    Joined:
    Mar 22, 2017
    Messages:
    26
    Likes Received:
    0
    the 藍寶石 is items.yml

    藍寶石:
    Id: 293
    Data: 75
    Lore:
    - '&1淺藍色的寶石,感覺可以煉製'
    - '&7挖掘青金礦石偶爾出現的稀有產物'
    Options:
    Unbreakable: true
    HideFlags: true
    Display: '&9藍寶石'

    in 4.4.0 use good
     
    #6
  7. Omanoctoa

    Omanoctoa Active Member
    Supporter Premium Supporter

    Joined:
    Mar 10, 2016
    Messages:
    371
    Likes Received:
    33
    Ohh 4.4.0 the version. I understand now...I was trying to figure out what 4.40 was :D

    If it worked in previous MythicMobs versions then it is a bug. Thank you for clarifying.
     
    #7
  8. Avalon

    Avalon New Member
    Supporter

    Joined:
    Mar 22, 2017
    Messages:
    26
    Likes Received:
    0
    I hope the author can fix it.
     
    #8

Share This Page