此插件可用于创建法术物品和自定义附魔。
它自带法力系统、冷却时间、“蓄力施法”、特效以及法术功能。
这些附魔适用于弓、雪球、鸡蛋等物品。
items.yml
这是 SpellItems 最重要的部分,因为可以使用它来创建自定义物品和附魔
items.yml
命令
- /siGive [玩家] [...物品]
- /siEnchant [附魔名称]
- /siHelp [命令]
权限
- spellitems.*
- spellitems.give
- spellitems.enchant
- spellitems.help
物品语法
id_OR_customItemName:<损坏值> <最小数量>:<最大数量> <获得物品的概率> <附魔1_id_或_自定义附魔名称>:<附魔1等级>,... <名称>,<描述1>,<描述2>,<描述3>
- 第一个参数可以是简单的物品 ID,也可以是 items.yml 中自定义物品的内部名称
- 当设置了最小数量和最大数量时,实际数量将在两者之间随机生成(包含边界值)
- 获得物品的概率可以在 0(这没有意义)到 100 之间
- 附魔 ID
- 可以是原版附魔 ID,也可以是 items.yml 中自定义附魔的内部名称
- 或者 -1 以完全忽略此附魔
- 或者 -10 仅获得发光效果而不施加任何附魔
- 如果指定了附魔 ID,则必须同时设置附魔等级
- 名称和描述可以包含空格
- 警告:不要更改自定义物品的名称或描述,否则它将无法正常工作
- 如果不需要,你可以省略大部分内容。一些示例:
- 1 -> 1 个石头
- 35 1:10 -> 1-10 个白色羊毛
- 6:3 5 100 -1:0 Plant -> 5 个名为“Plant”的丛林树苗
我知道这看起来可能像 MagicSpells 的一个克隆版,但它具有一些 MagicSpells 所没有的功能,比如自定义附魔。
此外,此插件主要是为了与我的另一个插件 Dwarves vs Zombies 配合使用而创建的,但现在也可以在不使用该插件的情况下单独使用。
This Plugin can be used to create Spellitems and custom Enchantments.
It comes with a Manasystem, Cooldowns, "charging up spells", effects and Spells.
The enchantments work on Bows, Snowballs, Eggs, ...
items.yml
This is the most important part of SpellItems as it can be used to create custom Items and Enchantments
items.yml
Commands
- /siGive [player] [...item]
- Gives a Player an Item using the SpellItems Syntax
- /siEnchant [enchantment_name]
- Enchants to Item you are currently holding with a custom Enchantment
- /siHelp [commad]
- Can be used to get a detailed description of all commands
Permissions
- spellitems.*
- spellitems.give
- spellitems.enchant
- spellitems.help
Itemsyntax
id_OR_customItemName:<damagevalue> <min_count>:<max_count> <chance_to_get_item> <enchant1_id_OR_customEnchantmentName>:<enchant1_level>,... <name>,<lore1>,<lore2>,<lore3>
- The first argument can either be a simple Itemid or the internal name of a Customitem from the items.yml
- When min_count and max_count are set the ammount will be randomized between the two(including them)
- chance_to_get_item can be between 0(this would make no sense) and 100
- enchant_ids
- can either be vanilla Enchantmentids or the internal name of a Customenchantment from the items.yml
- or -1 to completly ignore this Enchantment
- or -10 to only get the glow effect without any Enchantment
- If you specify an enchant_id you have to also set the enchant_level
- Name and Lore can contain spaces
- WARNING: Do not change the Name or Lore of a Customitem or it will not work
- You can leave most of it out if you don't need it. Some examples:
- 1 -> 1 Stone
- 35 1:10 -> 1-10 White wool
- 6:3 5 100 -1:0 Plant -> 5 Jungletreesaplings with the Name "Plant"
I know that this might look like an clone of MagicSpells but it has some features that MagicSpells doesn't have. Like custom enchantments.
Also this Plugin was mostly created for use with my other Plugin Dwarves vs Zombies but now can be used without it.
评论 0
登录后参与评分
还没有评论,来抢沙发吧