[MC-9289] Hitting mobs with a sharpness I wooden sword and weakness III crashes the game Created: 06/Feb/13  Updated: 02/May/17  Resolved: 28/Feb/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.7, Snapshot 13w05b
Fix Version/s: Snapshot 13w09c

Type: Bug
Reporter: anon Assignee: [Mojang] Jeb (Jens Bergensten)
Resolution: Fixed Votes: 0
Labels: crash, enchantement, weakness

Attachments: Text File crash-AnonYmus-client.txt     Text File crash-AnonYmus-server.txt    
Issue Links:
Duplicate
is duplicated by MC-10497 Minecraft Crashes when using many com... Resolved
CHK:
Confirmation Status: Confirmed

 Description   

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.



 Comments   
Comment by Tails [ 11/Feb/13 ]

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)
Comment by Anon Ymus [ 06/Feb/13 ]

Further testing reveals it's the sword.

Comment by Tails [ 06/Feb/13 ]

Yes now it looks good thanks

Comment by Tails [ 06/Feb/13 ]

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!

Comment by Muizz Siddique [ 06/Feb/13 ]

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

Comment by anon [ 06/Feb/13 ]

Reproduced in the vanilla client after doing a forceupdate.

Comment by Tails [ 06/Feb/13 ]
Is Modded: Very likely; Jar signature invalidated

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

Comment by anon [ 06/Feb/13 ]

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.

Comment by Tails [ 06/Feb/13 ]

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.
Generated at Sun Jan 12 12:20:35 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.