Items
-
Introduction
This page will explain you how to edit the items.yml file to create custom items that you can later randomly spawn in your containers
Items file
Here is an example generated with the file. Everything will be explained.
Code (YAML):Other_item:
Material: DIAMOND_SWORD
Displayed name: "&2Short sword"
Lore:
- "&fThis is a very"
- "&fshort sword"
Enchantments:
DAMAGE_ALL: 2
DURABILITY: 2Unbreakable: true
Flags:
- HIDE_ATTRIBUTES
The first line is the internal item name. It must be unique!
Material
It is the Minecraft material name
When in-game you can press F3 + H to show the item material name
Displayed name
It is the custom item name
You can use any Minecraft color code to make your item even more unique
If you wish to put a quote in the name, use double quotes around the name (as shown in the example)
Lore
It is the item additional text that will be displayed in the item description
Enchantments
It is the section that will contain all the enchantments
You can add any enchantment on any item you make, even on a torch or a flower
Unbreakable
It is the boolean value of the unbreakable option of the the item
Set it to true if you want to make the item unbreakable
Flags
It is the section that will contain a list of all the item flags you wish to add to the item
HIDE_ATTRIBUTES will prevent the item to show its damage and attack speed
I will add more customization on later updates
介绍
这一页面将告诉你如何编辑items.yml 文件来创建自定义物品并用于在容器内随机生成.
物品文件
以下为示例配置文件.
Code (YAML):Other_item:
Material: DIAMOND_SWORD
Displayed name: "&2短剑"
Lore:
- "&f这是一把"
- "&f普通的短剑"
Enchantments:
DAMAGE_ALL: 2
DURABILITY: 2
Flags:
- HIDE_ATTRIBUTES
第一行为物品名. 不能与其他物品名重复!
Material
这是Minecraft的 material name
你可以在游戏内按 F3 + H 查看物品材料名
Displayed name
自定义显示的名称
你可以使用任意颜色代码
如果你想要加上引号, 请在两侧加上双引号 (如示例文件)
Lore
物品描述
Enchantments
物品的附魔
可随意添加附魔
Flags
物品flags
HIDE_ATTRIBUTES 可以隐藏伤害、攻击速度等物品属性
未来将更新更多内容 - Loading...
- Loading...
XenCarta PRO
© Jason Axelrod from 8WAYRUN.COM