- 欢迎来到Minecraft插件百科!
- 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
- 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289
EliteMobs/创建自定义战利品
创建自定义战利品
5.0.0的版本,自定义战利品系统已经有了很大的改进.另一个wiki 将会告诉你这一功能工作的方式(from a more technical / dev perspective), 而本页面将引导你创建自定义的战利品.
入门
This guide will focus on the webapp I created for the plugin. You can find the link to that webapp by clicking here. While it is entirely possible to write custom loot manually, I find this solution to be more reliable for most admins as it does all the strict yml formatting out for the admins.
This webapp and other resources are, as always, available on my website https://magmaguy.com/.
物品名
This is not the name that shows up in-game, but the name that gets used by the item parser. I recommend you make this unique and name it after the custom in-game item name, without using any color codes.
物品类型
Determines what item the custom item will be. Make sure you pick a material type from this list and write it down exactly in the same format as in that page or else it will not work.
物品展示名
Determines the in-game name of the item. Supports the regular Minecraft color and formatting codes like &a
物品描述
Sets the in-game item lore. Can have multiple lines. Accepts color and formatting codes.
附魔 (可选)
Sets the in-game enchantments. All Minecraft enchantments should be listed there. Make sure you remember to set the level of the enchantment.
药水效果 (可选)
Sets the potion effects associated to the item. All Minecraft potion effects should be listed there. Make sure you remember to set the level of the potion effect. Can be applied in a variety of ways through the tags.
药水效果 : 作用于玩家
Makes the potion effect associated to the item apply to the person wearing the item.
药水效果 : 作用于敌人
Makes the potion effect apply to the living entity hit by the item.
药水效果: 屡次作用于玩家
Makes the potion effect last forever as long as the player is wearing the item. Does not do anything if the entity that is set to get the potion effect is the enemy.
药水效果: 在敌人受伤时起作用 Makes the potion effect only apply when a living entity is hit by the item*. Does not do anything if the entity that is set to get the potion effect is the enemy, as this is the only possible behavior.
权重 (可选)
设置物品的掉率. 掉率可以是动态或静态的.
动态权重
The item is added to the dynamic custom loot list. This loot only drops at level-appropriate mobs, preventing things such as level 2 Elite Mobs dropping god armor or level 200 Elite Mobs dropping complete garbage. This is the recommended behavior, and is what the plugin defaults to when no values are present.
静态权重
Any numeric value (which have to be over 1) will make the item static and be added to the static custom loot list. The value is counted as a weight under a weighted probability system. The higher the weight, the higher the chance that this item, from all static items and not from all items in general will drop (for more details, please refer to the page about how the item drop mechanics work).
This specific setting was created with charms and unique items in mind. These type of utility items do not have an inherent combat worth, and are usually just a handy thing to have, as they can refill food or give players night vision.
Please try to avoid leaving items useful to combat in this category, as it will break the item progression and potentially flood the server with easy-to-obtain powerful armor and weapons.
- Still counts if the item is just being held in the right or left hand as long as the living entity gets struck by the player.