<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-TW">
		<id>https://wikiarc.tianjimc.com/index.php?action=history&amp;feed=atom&amp;title=Item_Meta</id>
		<title>Item Meta - 修訂歷史</title>
		<link rel="self" type="application/atom+xml" href="https://wikiarc.tianjimc.com/index.php?action=history&amp;feed=atom&amp;title=Item_Meta"/>
		<link rel="alternate" type="text/html" href="https://wikiarc.tianjimc.com/index.php?title=Item_Meta&amp;action=history"/>
		<updated>2026-10-05T08:59:30Z</updated>
		<subtitle>本 Wiki 上此頁面的修訂歷史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wikiarc.tianjimc.com/index.php?title=Item_Meta&amp;diff=114&amp;oldid=prev</id>
		<title>Tianji：创建页面，内容为“Some newer items have additional attributes that cannot be described by the item id alone. For example, the enchantment on a sword, the colour of wool and fireworks…”</title>
		<link rel="alternate" type="text/html" href="https://wikiarc.tianjimc.com/index.php?title=Item_Meta&amp;diff=114&amp;oldid=prev"/>
				<updated>2018-04-14T17:05:17Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“Some newer items have additional attributes that cannot be described by the item id alone. For example, the enchantment on a sword, the colour of wool and fireworks…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Some newer items have additional attributes that cannot be described by the item id alone. For example, the enchantment on a sword, the colour of wool and fireworks &lt;br /&gt;
effects/colours. These are stored in an additional field known as 'meta data'.&lt;br /&gt;
&lt;br /&gt;
Currently items with meta data can only be acquired via the /give, /i or /enchant commands, or by using kits, with the exception being 'name' which can be achieved using an Anvil.&lt;br /&gt;
&lt;br /&gt;
{{see|Command_Reference/Spawning}}&lt;br /&gt;
&lt;br /&gt;
=Global Meta Data=&lt;br /&gt;
&lt;br /&gt;
ALL items can have a Name and Lore (or description) applied to them. You can use an underscore '_' to create a space and a pipe '|' within lore to create a new line. You can also use the Essentials colour syntax to colour this meta information as seen below.&lt;br /&gt;
&lt;br /&gt;
===Name===&lt;br /&gt;
Provide a name for the item which is shown in inventory tooltips and hotbar descriptions.&lt;br /&gt;
&lt;br /&gt;
You can use normal Essentials colour codes.&lt;br /&gt;
&lt;br /&gt;
name:&amp;lt;item name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 /i dsword 1 name:&amp;amp;fThe_&amp;amp;4Monster&amp;amp;f_mash&lt;br /&gt;
&lt;br /&gt;
===Lore===&lt;br /&gt;
Otherwise known as a description, sets text for the item which is shown in inventory tooltips and hotbar descriptions.&lt;br /&gt;
&lt;br /&gt;
You can use normal Essentials colour codes, and | for new lines.&lt;br /&gt;
&lt;br /&gt;
lore:&amp;lt;Item description&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 /i daxe 1 lore:KHobbits'_ban_hammer&lt;br /&gt;
 /i bow 1 name:Mighty_twang lore:Through|the|ages&lt;br /&gt;
&lt;br /&gt;
====Permissions====&lt;br /&gt;
*{{Perm|itemspawn.meta-title}}&lt;br /&gt;
*{{Perm|itemspawn.meta-lore}}&lt;br /&gt;
&lt;br /&gt;
=Usage in Kits=&lt;br /&gt;
{{see|Kits}}&lt;br /&gt;
Below is an example of how item meta can be utelised in kits. These are defined in the Essentials [http://wiki.ess3.net/cfg/ config.yml] file, which ships with a number of default examples.&lt;br /&gt;
&lt;br /&gt;
It's also worth noting that kits can use any of the token substitutions avaliable in [http://wiki.ess3.net/wiki/Help_Files#Manual_Files Manual files]. Of particular note is the {PLAYER} token, which can be used to further personalise kit items. Take care with which tokens you use however, as many aren't suitable for item meta given its character length restrictions.&lt;br /&gt;
&lt;br /&gt;
 mychoicekit:&lt;br /&gt;
     delay: 600&lt;br /&gt;
     items:&lt;br /&gt;
       - 278 1 efficiency:1 durability:1 fortune:1 name:&amp;amp;4Gigadrill lore:The_drill_that_&amp;amp;npierces|the_heavens&lt;br /&gt;
       - ironsword 1 knockback:1 name:{PLAYER}&amp;amp;c'_chopper lore:Chops_them_good!&lt;br /&gt;
       - 277 1 digspeed:3 name:Dwarf lore:Diggy|Diggy|Hole&lt;br /&gt;
       - 298 1 color:255,255,255 name:Top_Hat lore:Good_day,_Good_day&lt;br /&gt;
       - 279:780 1&lt;br /&gt;
&lt;br /&gt;
=Enchanting=&lt;br /&gt;
&lt;br /&gt;
Items spawned with &amp;lt;code&amp;gt;/i&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;/give&amp;lt;/code&amp;gt; can also have enchantments added to them. Unless you have enabled 'unsafe-enchantments' in the Essentials configuration file, you will be limited to the Bukkit defaults for particular enchantment types. 'Knockback' for example, has a maximum level of Knockback II (2) so attempting anything higher will simply result in that maximum.If however, you choose to enable 'unsafe-enchantments' you will be able to ignore these limits. '''Warning: Mixing and overleveling some enchantments can cause issues with clients, servers and plugins.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Command syntax: /&amp;amp;lt;command&amp;amp;gt; &amp;amp;lt;item|numeric&amp;amp;gt; [amount [enchantment name:value...]] - amount is required.&lt;br /&gt;
&lt;br /&gt;
For a list of available enchants equip the desired item in-hand and issue &amp;lt;code&amp;gt;/enchant&amp;lt;/code&amp;gt;. It will present you with the available 'safe' options for that item.&lt;br /&gt;
&lt;br /&gt;
Note: Multiple enchantments can be provided by separating the name:value with a space.&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
 /i diamondpickaxe 1 efficiency:1 durability:1 fortune:1&lt;br /&gt;
 /give Evonuts woodensword 1 fireaspect:2&lt;br /&gt;
 /i ironsword 1 efficiency:1 looting:1 silktouch:1&lt;br /&gt;
&lt;br /&gt;
====Permissions====&lt;br /&gt;
*{{Perm|enchantments.[enchantmentname]}}&lt;br /&gt;
&lt;br /&gt;
=Fireworks=&lt;br /&gt;
{{FMeta}}&lt;br /&gt;
Command syntax: /&amp;amp;lt;command&amp;amp;gt; &amp;amp;lt;item|numeric&amp;amp;gt; [amount [attribute:value...]] - amount is required.&lt;br /&gt;
&lt;br /&gt;
Note: multiple, comma separated values, can be given for 'color' and 'effect' only.&lt;br /&gt;
&lt;br /&gt;
===Colour===&lt;br /&gt;
The initial colour of the explosion. Multiple values can be separated with a comma.&lt;br /&gt;
&lt;br /&gt;
color:&amp;lt;color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 color:white&lt;br /&gt;
 color:black,white,yellow&lt;br /&gt;
&lt;br /&gt;
===Shape===&lt;br /&gt;
The resulting shape of the explosion, if not defined the default is 'small ball' which rarely produces an effect.&lt;br /&gt;
&lt;br /&gt;
shape:large|creeper|star|burst&lt;br /&gt;
&lt;br /&gt;
 shape:star&lt;br /&gt;
&lt;br /&gt;
===Fade===&lt;br /&gt;
Color(s) that the firework will change to shortly after the explosion.&lt;br /&gt;
&lt;br /&gt;
fade:&amp;lt;color&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 fade:red&lt;br /&gt;
 fade:red,white,lime&lt;br /&gt;
&lt;br /&gt;
===Effects===&lt;br /&gt;
Effects to be applied to the explosion. Multiple values can be separated with a comma.&lt;br /&gt;
&lt;br /&gt;
effect:trail|twinkle&lt;br /&gt;
&lt;br /&gt;
 effect:trail&lt;br /&gt;
 effect:trail,twinkle&lt;br /&gt;
&lt;br /&gt;
===Power===&lt;br /&gt;
The flight duration of the rocket, this can also be set on held fireworks with /firework power [1-4]&lt;br /&gt;
&lt;br /&gt;
power:&amp;lt;1-4&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 power:4&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
 /i firework 1 name:Angry_Creeper color:red fade:green type:creeper power:1&lt;br /&gt;
 /i firework 1 name:StarryNight color:yellow,orange fade:blue type:star effect:trail,twinkle power:1&lt;br /&gt;
&lt;br /&gt;
 ''Console''&lt;br /&gt;
 give playerName firework 2 name:SolarWind color:yellow,orange fade:red shape:large effect:twinkle color:yellow,orange fade:red shape:ball effect:trail color:red,purple fade:pink shape:star effect:trail power:1&lt;br /&gt;
&lt;br /&gt;
''Note: There is a limit of 100 characters for in-game chat.''&lt;br /&gt;
&lt;br /&gt;
====Permissions====&lt;br /&gt;
*{{Perm|itemspawn.meta-firework}}&lt;br /&gt;
*{{Perm|itemspawn.meta-firework-multiple}}&lt;br /&gt;
&lt;br /&gt;
=Books=&lt;br /&gt;
&lt;br /&gt;
===Title===&lt;br /&gt;
The book title, supports colour code formatting. If 'name:' is used here instead of 'title:' the book title will be italicised. &lt;br /&gt;
&lt;br /&gt;
title:&amp;lt;title&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Author===&lt;br /&gt;
The author of the book, supports colour code formatting.&lt;br /&gt;
&lt;br /&gt;
author:&amp;lt;author&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Lore===&lt;br /&gt;
A description for the book.&lt;br /&gt;
&lt;br /&gt;
lore:&amp;lt;description&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Book===&lt;br /&gt;
&lt;br /&gt;
{{see|Help Files}}&lt;br /&gt;
Creating custom books is possible by using the book.txt file in the Essentials plugin root folder.&lt;br /&gt;
In this file you can create a named section or chapter which starts with #.  These can then be used in item meta using book:&amp;lt;name of section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Essentials comes with a example book, in /kit color, but can also be spawned using the example command below. In the example book.txt, the chapter 'Colors' can be spawned by using book:Colors.&lt;br /&gt;
&lt;br /&gt;
See book example [https://github.com/essentials/Essentials/blob/2.x/Essentials/src/book.txt here.] &lt;br /&gt;
&lt;br /&gt;
book:&amp;lt;section name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
 /i writtenbook 1 title:&amp;amp;4Book_&amp;amp;9o_&amp;amp;6Colors author:KHobbits lore:Ingame_color_codes book:Colors&lt;br /&gt;
&lt;br /&gt;
====Permissions====&lt;br /&gt;
*{{Perm|itemspawn.meta-title}}&lt;br /&gt;
*{{Perm|itemspawn.meta-author}}&lt;br /&gt;
*{{Perm|itemspawn.meta-lore}}&lt;br /&gt;
*{{Perm|itemspawn.meta-book}}&lt;br /&gt;
*{{Perm|itemspawn.meta-chapter-[chapter]}}&lt;br /&gt;
&lt;br /&gt;
=Potions=&lt;br /&gt;
&lt;br /&gt;
Potion meta data takes 3 parameters, 'effect', 'power' and 'duration' or shorthands of 'e', 'p' and 'd' respectively. All 3 parameters are required and need to be in this order. For multiple potion effects repeat the series (see below for exmaples).&lt;br /&gt;
&lt;br /&gt;
{{PMeta}}&lt;br /&gt;
===Effect===&lt;br /&gt;
Any number of different potion effects can be simultaneously active on a player, even in the case of opposite potion effects such as Strength and Weakness. It is not possible to apply the same potion effect multiple times, however, even if the effects are of different levels (e.g. Strength and Strength II cannot both be active at the same time). In the event of using a potion that applies an effect already active on the player, the new version of the effect overwrites the old effect, giving a new level and full duration if the new effect is of equal or greater level. An attempt to use a potion that applies a weaker version of an already-active effect consumes the potion but does not apply the new effect.&lt;br /&gt;
&lt;br /&gt;
effect:&amp;lt;potion effect&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 effect:speed&lt;br /&gt;
&lt;br /&gt;
===Power===&lt;br /&gt;
&lt;br /&gt;
The power or level for the potion effect. This can also be a negative value which essentially inverts the effect. Jump becomes lower in height, heal actually causes damage, etc etc. &lt;br /&gt;
&lt;br /&gt;
power:-127 to 128&lt;br /&gt;
&lt;br /&gt;
 power:2&lt;br /&gt;
&lt;br /&gt;
===Duration===&lt;br /&gt;
&lt;br /&gt;
Provided as seconds.&lt;br /&gt;
&lt;br /&gt;
duration:&amp;lt;duration amount&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 duration:120&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
 /i potion 1 effect:speed power:2 duration:60&lt;br /&gt;
 /i potion 3 effect:heal power:1 duration:240 effect:jump power:50 duration:30&lt;br /&gt;
&lt;br /&gt;
====Permissions====&lt;br /&gt;
*{{Perm|potions.[potionname]}}&lt;br /&gt;
*{{Perm|potions.multiple}}&lt;br /&gt;
&lt;br /&gt;
=Leather Armor=&lt;br /&gt;
&lt;br /&gt;
Leather armor can be coloured by crafting dyes in with a piece of leather armor, alternatively they can be acquired using /give, /i commands or in [[Kits]]. Note, the syntax for colours varies slightly from that of Fireworks above as it is provided in comma separated RGB format (0-255).&lt;br /&gt;
&lt;br /&gt;
color:&amp;lt;red&amp;gt;,&amp;lt;green&amp;gt;,&amp;lt;blue&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can test out your colors by using http://www.colorschemer.com/online.html&lt;br /&gt;
&lt;br /&gt;
 color:226,29,34&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
 /i leatherhelmet 1 name:A_Raspberry_Beret color:199,44,72 lore:The_kind_u_find|in_a_second_hand_store&lt;br /&gt;
&lt;br /&gt;
=Mob Heads=&lt;br /&gt;
There are five variants of mob heads: Skeleton, Wither Skeleton, zombie, human and Creeper.&lt;br /&gt;
&lt;br /&gt;
===Head types===&lt;br /&gt;
Provided as either an id with an integer 0-4 (eg. 397:2) or with the values below.&lt;br /&gt;
&lt;br /&gt;
397:0-4&lt;br /&gt;
or&lt;br /&gt;
skeletonhead|witherhead|zombiehead|humanhead|creeperhead&lt;br /&gt;
&lt;br /&gt;
===Player heads=== &lt;br /&gt;
For 397:3 or 'humanhead' above, an extra argument is provided for player/owner.&lt;br /&gt;
&lt;br /&gt;
397:3 1 player:Notch&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
 /i 397:1 1&lt;br /&gt;
 /i witherhead 1&lt;br /&gt;
 &lt;br /&gt;
 /i 397:3 1 player:Khobbits&lt;br /&gt;
&lt;br /&gt;
=Tool durability=&lt;br /&gt;
It is also possible to spawn tools with a pre-defined durability level, that is to say how 'worn' the item in question is. Refer to the table below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;itemid&amp;gt;:&amp;lt;durability level&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Tools usage table&lt;br /&gt;
|-&lt;br /&gt;
|Gold&lt;br /&gt;
|33 uses&lt;br /&gt;
|-&lt;br /&gt;
|Wood&lt;br /&gt;
|60 uses&lt;br /&gt;
|-&lt;br /&gt;
|Stone&lt;br /&gt;
|132 uses&lt;br /&gt;
|-&lt;br /&gt;
|Iron&lt;br /&gt;
|251 uses&lt;br /&gt;
|-&lt;br /&gt;
|Diamond&lt;br /&gt;
|1562 uses&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Examples====&lt;br /&gt;
 /i 279:780 1&lt;br /&gt;
 /i goldpickaxe:32 1&lt;/div&gt;</summary>
		<author><name>Tianji</name></author>	</entry>

	</feed>