mojira.dev
MC-10558

Internal error when using /effect with an id >31

If you use /effect and set the id value to be greater than 31 instead of displaying "There is no such mob effect with that id" it displays the internal error message that means the command has generally broken.

See attachment (the outputs are from me trying numbers 30 to 33. I have also tried this with 43 (i was entering random numbers as parameters when I tried this)

The exact command I ran was " /effect @p 33 " in case it is something else causing the message.

Attachments

Comments 4

Confirmed:

2013-02-28 21:16:59 [CLIENT] [INFO] [CHAT] ºcThere is no such mob effect with ID 31
2013-02-28 21:17:05 [CLIENT] [INFO] [CHAT] ºcAn unknown error occurred while attempting to perform this command
java.lang.ArrayIndexOutOfBoundsException: 32
        at ae.b(SourceFile:40)
        at y.a(SourceFile:51)
        at jg.d(SourceFile:478)
        at jg.a(SourceFile:460)
        at cw.a(SourceFile:44)
        at ch.b(SourceFile:59)
        at jg.d(SourceFile:59)
        at jh.b(SourceFile:35)
        at bja.b(SourceFile:84)
        at net.minecraft.server.MinecraftServer.r(SourceFile:480)
        at net.minecraft.server.MinecraftServer.q(SourceFile:397)
        at bix.q(SourceFile:122)
        at net.minecraft.server.MinecraftServer.run(SourceFile:331)
        at go.run(SourceFile:573)

it does this because, although there can be 32 potion effects, some of which are for modders, anything above this limit causes the index in the list of potions to exceed maximum

i cant join my world.
i used /effect 0 500 1
Why?

[media]

?
when i join the world i only see the dirt wallpaper... 😞 HELP ME PLEASSSSEEEE

Remove the problematic potion effects with an NBT editor, e.g. NBT explorer.
See the format here : http://www.minecraftwiki.net/wiki/Player.dat

Sir Lord Jeff

Jens Bergensten

Confirmed

command, effect, effects, internal

Snapshot 13w09b

Snapshot 13w09c

Retrieved