Minecraft Wiki
No edit summary
m (Added ancient mob, added singular name for enchanted mobs for consistency)
Line 6: Line 6:
 
sheetsize = 192,
 
sheetsize = 192,
 
stylesheet = true,
 
stylesheet = true,
url = require( [[Module:Sprite]] ).getUrl( 'DungeonsEntityCSS.png', 'version=1614808104506', 'dungeonsentity-sprite' ),
+
url = require( [[Module:Sprite]] ).getUrl( 'DungeonsEntityCSS.png', 'version=1614893169144', 'dungeonsentity-sprite' ),
 
},
 
},
 
sections = {
 
sections = {
Line 20: Line 20:
 
['abomination-vine'] = { pos = 84, section = 2 },
 
['abomination-vine'] = { pos = 84, section = 2 },
 
Alex = { pos = 103, section = 6 },
 
Alex = { pos = 103, section = 6 },
  +
['ancient-mob'] = { pos = 171, section = 3 },
  +
['ancient-mobs'] = { pos = 171, section = 3 },
 
Annika = { pos = 104, section = 6 },
 
Annika = { pos = 104, section = 6 },
 
['arch-illager'] = { pos = 2, section = 2 },
 
['arch-illager'] = { pos = 2, section = 2 },
Line 57: Line 59:
 
Elaine = { pos = 111, section = 6 },
 
Elaine = { pos = 111, section = 6 },
 
Emerald = { pos = 142, section = 6 },
 
Emerald = { pos = 142, section = 6 },
  +
['enchanted-mob'] = { pos = 72, section = 3 },
 
['enchanted-mobs'] = { pos = 72, section = 3 },
 
['enchanted-mobs'] = { pos = 72, section = 3 },
 
['enchanted-sheep'] = { pos = 75, section = 4 },
 
['enchanted-sheep'] = { pos = 75, section = 4 },

Revision as of 21:26, 4 March 2021

[view | edit | history | purge]DocumentationJump to code ↴

This module stores sprite data for the {{DungeonsEntitySprite}} template.

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

[view | edit | history | purge]The above documentation is transcluded from Module:DungeonsEntitySprite/doc.
return {
	settings = {
		image = 'DungeonsEntityCSS.png',
		linkprefix = 'MCD:',
		name = 'DungeonsEntity',
		sheetsize = 192,
		stylesheet = true,
		url = require( [[Module:Sprite]] ).getUrl( 'DungeonsEntityCSS.png', 'version=1614893169144', 'dungeonsentity-sprite' ),
	},
	sections = {
		{ name = 'Skins', id = 6 },
		{ name = 'Enemies', id = 2 },
		{ name = 'Neutrals', id = 5 },
		{ name = 'Friendlies', id = 4 },
		{ name = 'Other', id = 3 },
		{ name = 'Uncategorised', id = 1 },
	},
	ids = {
		['?'] = { pos = 1, section = 1 },
		['abomination-vine'] = { pos = 84, section = 2 },
		Alex = { pos = 103, section = 6 },
		['ancient-mob'] = { pos = 171, section = 3 },
		['ancient-mobs'] = { pos = 171, section = 3 },
		Annika = { pos = 104, section = 6 },
		['arch-illager'] = { pos = 2, section = 2 },
		Archeologist = { pos = 105, section = 6 },
		['arctic-fox'] = { pos = 45, section = 4 },
		['armored-mountaineer'] = { pos = 147, section = 2 },
		['armored-piglin'] = { pos = 151, section = 2 },
		['armored-piglin-hunter'] = { pos = 163, section = 2 },
		['armored-pillager'] = { pos = 69, section = 2 },
		['armored-skeleton'] = { pos = 70, section = 2 },
		['armored-vindicator'] = { pos = 61, section = 2 },
		['armored-zombie'] = { pos = 71, section = 2 },
		Baako = { pos = 106, section = 6 },
		['baby-chicken'] = { pos = 37, section = 4 },
		['baby-ghast'] = { pos = 161, section = 4 },
		['baby-goat'] = { pos = 96, section = 5 },
		['baby-panda'] = { pos = 55, section = 4 },
		['baby-zombie'] = { pos = 36, section = 2 },
		bat = { pos = 38, section = 4 },
		Bediako = { pos = 107, section = 6 },
		bee = { pos = 74, section = 4 },
		blacksmith = { pos = 68, section = 4 },
		blaze = { pos = 86, section = 2 },
		['blaze-spawner'] = { pos = 167, section = 2 },
		['cave-spider'] = { pos = 19, section = 2 },
		['charged-creeper'] = { pos = 168, section = 2 },
		chicken = { pos = 37, section = 4 },
		['chicken-jockey'] = { pos = 20, section = 2 },
		['chicken-jockey-tower'] = { pos = 67, section = 2 },
		Christina = { pos = 108, section = 6 },
		['corrupted-cauldron'] = { pos = 59, section = 2 },
		cow = { pos = 39, section = 4 },
		creeper = { pos = 21, section = 2 },
		Dani = { pos = 109, section = 6 },
		Darian = { pos = 110, section = 6 },
		drowned = { pos = 87, section = 2 },
		Elaine = { pos = 111, section = 6 },
		Emerald = { pos = 142, section = 6 },
		['enchanted-mob'] = { pos = 72, section = 3 },
		['enchanted-mobs'] = { pos = 72, section = 3 },
		['enchanted-sheep'] = { pos = 75, section = 4 },
		enchanter = { pos = 5, section = 2 },
		enderman = { pos = 22, section = 2 },
		EndRogue = { pos = 112, section = 6 },
		Eshe = { pos = 113, section = 6 },
		Esperanza = { pos = 114, section = 6 },
		evoker = { pos = 23, section = 2 },
		Explorer = { pos = 115, section = 6 },
		fox = { pos = 157, section = 4 },
		Frosty = { pos = 116, section = 6 },
		['frozen-zombie'] = { pos = 6, section = 2 },
		Fuego = { pos = 117, section = 6 },
		['fungus-thrower'] = { pos = 158, section = 2 },
		geomancer = { pos = 7, section = 2 },
		['geomancer-bomb'] = { pos = 100, section = 2 },
		['geomancer-wall'] = { pos = 101, section = 2 },
		ghast = { pos = 153, section = 2 },
		['gift-wrapper'] = { pos = 76, section = 4 },
		goat = { pos = 96, section = 5 },
		Greta = { pos = 118, section = 6 },
		guardian = { pos = 162, section = 2 },
		Hal = { pos = 119, section = 6 },
		['heart-of-ender'] = { pos = 60, section = 2 },
		Hedwig = { pos = 120, section = 6 },
		Hex = { pos = 121, section = 6 },
		hoglin = { pos = 154, section = 2 },
		horse = { pos = 155, section = 2 },
		['hovering-inferno'] = { pos = 160, section = 2 },
		husk = { pos = 24, section = 2 },
		['ice-chunk'] = { pos = 102, section = 2 },
		iceologer = { pos = 4, section = 2 },
		['icy-creeper'] = { pos = 85, section = 2 },
		Igor = { pos = 122, section = 6 },
		illusioner = { pos = 8, section = 2 },
		['iron-golem'] = { pos = 40, section = 4 },
		["jack-o'-lantern-trap"] = { pos = 77, section = 2 },
		Jade = { pos = 123, section = 6 },
		['jungle-abomination'] = { pos = 56, section = 2 },
		['jungle-zombie'] = { pos = 9, section = 2 },
		['key-golem'] = { pos = 18, section = 3 },
		leapleaf = { pos = 57, section = 2 },
		llama = { pos = 41, section = 4 },
		Llamaskin = { pos = 143, section = 6 },
		Loge = { pos = 124, section = 6 },
		['luxury-merchant'] = { pos = 78, section = 4 },
		Mage = { pos = 145, section = 2 },
		['magma-cube'] = { pos = 156, section = 2 },
		Mayeso = { pos = 125, section = 6 },
		['mob-spawner'] = { pos = 64, section = 2 },
		mooshroom = { pos = 25, section = 2 },
		['mooshroom-monstrosity'] = { pos = 10, section = 2 },
		Morris = { pos = 126, section = 6 },
		['mossy-skeleton'] = { pos = 11, section = 2 },
		mountaineer = { pos = 98, section = 2 },
		['mystery-merchant'] = { pos = 79, section = 4 },
		['nameless-one'] = { pos = 12, section = 2 },
		necromancer = { pos = 65, section = 2 },
		Neo = { pos = 127, section = 6 },
		NetherWarrior = { pos = 128, section = 6 },
		Nuru = { pos = 144, section = 6 },
		['obsidian-monstrosity'] = { pos = 80, section = 2 },
		ocelot = { pos = 53, section = 4 },
		Pake = { pos = 129, section = 6 },
		panda = { pos = 55, section = 4 },
		parrot = { pos = 42, section = 4 },
		phantom = { pos = 26, section = 2 },
		pig = { pos = 43, section = 4 },
		['piggy-bank'] = { pos = 49, section = 3 },
		piglin = { pos = 88, section = 2 },
		['piglin-brute'] = { pos = 150, section = 2 },
		['piglin-hunter'] = { pos = 88, section = 2 },
		['piglin-merchant'] = { pos = 165, section = 2 },
		pillager = { pos = 83, section = 2 },
		['pink-slime'] = { pos = 3, section = 2 },
		['poison-quill-vine'] = { pos = 58, section = 2 },
		['polar-bear'] = { pos = 62, section = 5 },
		pufferfish = { pos = 89, section = 2 },
		Qamar = { pos = 130, section = 6 },
		['quest-giver'] = { pos = 149, section = 4 },
		['quick-growing-vine'] = { pos = 54, section = 2 },
		rabbit = { pos = 73, section = 4 },
		['rampart-captain'] = { pos = 146, section = 2 },
		ravager = { pos = 90, section = 2 },
		['redstone-cube'] = { pos = 13, section = 2 },
		['redstone-golem'] = { pos = 14, section = 2 },
		['redstone-monstrosity'] = { pos = 15, section = 2 },
		['redstone-sentry'] = { pos = 169, section = 2 },
		['royal-guard'] = { pos = 16, section = 2 },
		Sam = { pos = 131, section = 6 },
		Sergey = { pos = 132, section = 6 },
		sheep = { pos = 44, section = 4 },
		Shikoba = { pos = 133, section = 6 },
		silverfish = { pos = 27, section = 2 },
		skeleton = { pos = 28, section = 2 },
		['skeleton-horseman'] = { pos = 29, section = 2 },
		['skeleton-vanguard'] = { pos = 63, section = 2 },
		slime = { pos = 30, section = 2 },
		['soul-wizard'] = { pos = 81, section = 4 },
		spider = { pos = 31, section = 2 },
		['squall-golem'] = { pos = 91, section = 2 },
		squid = { pos = 92, section = 2 },
		Steve = { pos = 134, section = 6 },
		stray = { pos = 32, section = 2 },
		Sven = { pos = 135, section = 6 },
		['target-dummy'] = { pos = 50, section = 3 },
		['tempest-golem'] = { pos = 93, section = 2 },
		Tim = { pos = 136, section = 6 },
		['trader-llama'] = { pos = 99, section = 4 },
		Valorie = { pos = 137, section = 6 },
		vex = { pos = 33, section = 2 },
		['village-merchant'] = { pos = 82, section = 4 },
		villager = { pos = 46, section = 4 },
		vindicator = { pos = 34, section = 2 },
		['vindicator-chef'] = { pos = 66, section = 2 },
		Violet = { pos = 138, section = 6 },
		['wandering-trader'] = { pos = 47, section = 4 },
		Wargen = { pos = 139, section = 6 },
		['web-spider'] = { pos = 148, section = 2 },
		whisperer = { pos = 52, section = 2 },
		['wind-caller'] = { pos = 94, section = 2 },
		windcaller = { pos = 94, section = 2 },
		['Winter Warrior'] = { pos = 140, section = 6 },
		witch = { pos = 35, section = 2 },
		['wither-skeleton'] = { pos = 95, section = 2 },
		['wither-skeleton-archer'] = { pos = 95, section = 2 },
		wolf = { pos = 48, section = 4 },
		['woodland-sentry'] = { pos = 170, section = 2 },
		['wooly-cow'] = { pos = 97, section = 4 },
		wraith = { pos = 17, section = 2 },
		['wretched-wraith'] = { pos = 51, section = 2 },
		Zola = { pos = 141, section = 6 },
		zombie = { pos = 36, section = 2 },
		['zombified-armored-piglin'] = { pos = 159, section = 2 },
		['zombified-armored-piglin-hunter'] = { pos = 164, section = 2 },
		['zombified-fungus-thrower'] = { pos = 166, section = 2 },
		['zombified-piglin'] = { pos = 152, section = 2 },
		['zombified-piglin-hunter'] = { pos = 152, section = 2 },
	},
}