mojira.dev
MC-9289

Hitting mobs with a sharpness I wooden sword and weakness III crashes the game

I gave myself all different sword types, none of which even register as punching with the weakness III effect active, then I wanted to try enchantments and noticed that no matter how low of a sharpness/smite/bane enchantment I put on anything it would always register as a punch (smite and bane only against the representative mobs).
(I will create another issue about this where I will go into detail about how this works)

To test if this still did damage I put a sharpness 1 on a wooden sword and started smacking a small slime, after doing so for a bit I figured that it didn't do damage but continued for the fun of it, until my game decided to crash.

Linked issues

Attachments

Comments 9

This ticket is invalid as it relates to a modded or 3rd party client/server.

  • Any non-standard client/server build needs to be taken up with the appropriate team, not Mojang.

  • Any plugin issues need to be addressed to the plugin creator.

  • This site is for addressing issues related to the base unmodded MineCraft.

The gameclient is vanilla, therefore it is a vanilla minecraft bug.

Adventuremaps use custom potions (which are a feature of the game, specificly added to be used in the way I did) therefore this should be fixed and not ignored.

Is Modded: Very likely; Jar signature invalidated

If this can be reproduced in vanilla this can be reopened.

Reproduced in the vanilla client after doing a forceupdate.

TMI does not matter since it can be obtained legit but via a third party program (eg. MCEdit). Jens had done that specifically for adventure map makers

Full report at:
C:\Users\Victor\AppData\Roaming\.minecraft\crash-reports\crash-2013-02-06_22.53.06-client.txt
Please show that file to Mojang, NOT just this screen!

Yes now it looks good thanks 🙂

Further testing reveals it's the sword.

Note:

Description: Unexpected error
java.lang.IllegalArgumentException: n must be positive
	at java.util.Random.nextInt(Unknown Source)
	at sb.q(SourceFile:827)
	at bcq.a(SourceFile:275)

anon

Jens Bergensten

Confirmed

crash, enchantement, weakness

Minecraft 1.4.7, Snapshot 13w05b

Snapshot 13w09c

Retrieved