Minecraft Wiki

The Minecraft Wiki is no longer considered as official by Microsoft and therefore several changes are required to be made, including to the wiki's logo. Please read this announcement for more information.

READ MORE

Minecraft Wiki
Advertisement
Minecraft Wiki
This is the documentation page. It will be transcluded into the main module page. See Template:Documentation for more information

Usage[]

The code is comprised of two major editable sections:

  • Categories
  • Sprites

Categories[]

To add a category, use this template:

{ name = 'Category Name', id = "Number" },

Replace "Category Name" with the desired name, with all spaces replaced with minus symbols. For example, to make a category named Code Template, you would replace Category Name with code-template.

Replace "Number" with the id of the category. To do this, check which ids are already in use. Currently, the ids 1 to 8 are in use. Use the number directly after the last numerical id number currently in use.

After you have found the correct code, insert it directly below the existing categories. Take care to put it before }, , which signifies the end of the code for the categories.

Example: { name = 'Melee Enemies', id = 2 },

Sprites[]

To add a sprite, use this template:

['Sprite Name'] = { pos = "Position on Sprite sheet", section = "Category id" },

Replace "Sprite Name" with the desired name, with all spaces replaced with minus symbols. For example, to make a sprite named Sprite Template, you would replace Category Name with sprite-template.

Replace "Position on Sprite Sheet" with the position of the sprite you are creating on the sprite sheet, which is found in Template:DungeonsEntitySprite. To do this, count the number of sprites from left to right on each row until you reach the sprite which you intend to use. This is the number you will replace "Position on Sprite Sheet" with.

Replace "Category id" with the id of the category you wish the sprite to be displayed as. For example, if the sprite displays a neutral mob, then you would use the id "5".

After you have found the correct code, insert it in the proper alphabetical row in the sprite list inside the code. Make sure that there is a comma directly after the } at the end of your sprite's code.

Example: ['arch-illager'] = { pos = 2, section = 7 },

Result: , Arch-Illager



Advertisement