Java Edition.png

Java Edition:Long Name Mob

From Minecraft Discontinued Features Wiki
Jump to navigation Jump to search
LongNameSheep.png

When updating strings from 17w50 straight to 18w21b-18w22a, the game appends extra characters to the string.

Obtaining

This requires a custom named mob from 12w41a (1.4.2 snapshot) through 17w50a (1.13 snapshot). The mob then must be directly updated to (or stored in unloaded chunks until) 18w21b/18w22a. This then adds additional characters to the custom name. Since items also can be renamed via this method, any mob in the game except for the ender dragon can also have these long names via name tags or spawn eggs.

Characters

Different characters convert to different characters upon updating. All custom named items have {"text":" added to the beginning of the name, and "} added to the end of the name. This causes all custom named items to look like this: {"text":"<previous name>"}. Using this method alone, along with previously naming the mob with all 35 characters, allows for a custom name of 46 characters, which is 11 more than the maximum. Other specific characters affected are below. The best possible combination of characters would be 35 of any of these characters <>='& which would result in a total of 221 characters.

  • A backslash \ becomes \\.
  • A double quote " becomes \".
  • A greater than symbol > becomes \u003e.
  • A less than symbol < becomes \u003c.
  • An equal sign symbol = becomes \u003d.
  • An and symbol & becomes \u0026.
  • A single quote ' becomes \u0027.

Downgrading

Downgrade2.png
Warning: Downgrading 
This feature uses downgrading which can result in crashes, data loss, or corruption, and requires specific versions. Follow the page instructions carefully.

If you downgrade to before 17w50a[1] and upgrade back to 18w21b/18w22a, the name will increase again. With this method, the player can obtain a mob with a name length of 65,524. Going beyond this limit will cause errors while saving the string to NBT. The growth is exponential due to the automatic addition of 4 double quotes with every trip to 18w21b/18w22a.

Caution! - As the mob's name increases, the game starts lagging more and more when the mob's name tag or boss bar is rendered.

The maximum number of characters after a number of downgrades (needs updating, using / is faster than using &)
  • 0 - 221
  • 1 - 310
  • 2 - 485
  • 3 - 832
  • 4 - 1,523
  • 5 - 2,902
  • 6 - 5,657
  • 7 - 11,164
  • 8 - 22,175
  • 9 - 44,194
  • 10 - 88,229
  • 11 - 176,296
  • 12 - 352,427
  • 13 - 704,686
  • 14 - 1,409,201
  • 15 - 2,818,228

Formula for Calculation of Name Length

(A+4)2X + (C)2|X-1| + 3C(X-1-|X-1|) + B + 5C + 7X - 4, ( A,B,C,X ≥ 0 ), (A,B,C,X ∋ ℕ)
A = Number of Backslashes/Quotation Marks
B = Number of Normal Characters
C = Number of (</>/'/=/&)
X = Number of Downgrades/Updates to 18w21b/18w22a

Gallery

Combos

See also


References

  1. Downgrading from 18w21b to 17w50a doesn't seem to work so you'll need to go through another version first