• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

“MagicSpells/卷轴”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
(创建页面,内容为“__TOC__ 基础魔法。卷轴魔法能够让你创建一个技能卷轴来教会别的玩家。 用法:手握一本书与笔(<code>minecraft:written_book</code>...”)
 
 
(未显示2个用户的4个中间版本)
第1行: 第1行:
 
__TOC__
 
__TOC__
基础魔法。卷轴魔法能够让你创建一个技能卷轴来教会别的玩家。
+
基础魔法。卷轴魔法允许玩家创立一个直接释放技能的卷轴给其他玩家/自己使用。
  
用法:手握一本书与笔(<code>minecraft:written_book</code>),输入<code>/cast tome <魔法名> [使用次数]</code>。不论书中写了哪些内容,都可以正常使用。
+
用法:手握一张纸后输入<code>/cast scroll <魔法名> [使用次数]</code>
 
==设置==
 
==设置==
 
{| class="wikitable" width="100%"
 
{| class="wikitable" width="100%"
第8行: 第8行:
 
!width="10%"|选项!!解释!!width="25%"|默认值
 
!width="10%"|选项!!解释!!width="25%"|默认值
 
|-
 
|-
|consume-book||Whether to remove the book from the player's inventory when all the tome uses are gone.||false
+
|cast-for-free||如果设置为 true, 使用卷轴将不会消耗所需的施法材料. 如果设置为 false, 在使用卷轴前会消耗所需的施法材料.||true
 
|-
 
|-
|allow-overwrite||Whether a tome can be overwritten as a different tome.||false
+
|ignore-cast-perm||如果设置为 false, 玩家使用卷轴施法必须要有 magicspells.cast.<spell>  权限来使用. 如果设置为 true, 可以忽略权限施法.||false
 
|-
 
|-
|default-uses||The number of uses a tome has if an amount isn't specified. A value of -1 means infinite uses.||-1
+
|bypass-normal-checks||如果设置为 true, normal casting checks will be bypassed. 这包括施法材料, 冷却, 施法次数, 禁止魔法的区域和其他约束条件.||false
 
|-
 
|-
|max-uses||The maximum number of uses allowed on a tome.||5
+
|default-uses||默认卷轴可使用次数.||5
 
|-
 
|-
|require-teach-perm||Whether the casting player (the one making the tome) needs the teach permission for the spell being placed in the tome.||true
+
|max-uses||一个卷轴可以使用的最大次数.||10
 
|-
 
|-
|str-usage||The message that appears when using the spell incorrectly.||Usage: While holding a book, /cast tome <spell> [uses]
+
|item-id||卷轴材质物品ID.||339
 
|-
 
|-
|str-no-spell||The message that appears when trying to use an invalid spell.||You do not know a spell with that name.
+
|right-click-cast||是否使用右键施法.||true
 
|-
 
|-
|str-cant-teach||The message that appears if the caster does not have the permission for the spell they're trying to use, and the require-teach-perm option is set to true.||You cannot create a tome with that spell.
+
|left-click-cast||是否使用左键施法.||false
 
|-
 
|-
|str-no-book||The message that appears if the caster is not holding a written book.||You must be holding a book.
+
|remove-scroll-when-depleted||是否在可使用次数耗尽后移除玩家背包内的卷轴.||true
 
|-
 
|-
|str-already-has-spell||The message that appears if the book already has a spell assigned.||That book already contains a spell.
+
|charge-reagents-for-spell-per-charge||如果设置为 true, the reagents for each use of the spell will be charged up-front when the scroll is created.||false
 
|-
 
|-
|str-already-known||The message that appears if a player tries to use a tome but already has the spell it contains.||You already know the %s spell.
+
|require-teach-perm||是否需要传授魔法的权限来创建卷轴.||true
 
|-
 
|-
|str-cant-learn||The message that appears if a player tries to use a tome but does not have the learn permission for the spell it contains.||You cannot learn the spell in this tome.
+
|require-scroll-cast-perm-on-use||如果设置为 true, 使用卷轴的玩家必须要有 magicspells.cast.scroll 权限.||true
 
|-
 
|-
|str-learned||The message that appears if a player successfully learns a spell from a tome.||You have learned the %s spell.
+
|predefined-scrolls [v2.11]||如下所示.||空
 +
|-
 +
|str-scroll-over||The text that appears in chat when a scroll is selected in the player's hotbar.||Spell Scroll: %s (%u uses remaining)
 +
|-
 +
|str-scroll-name||卷轴物品名. 使用 %s 代表魔法名,用 %u 代表可使用次数.||Magic Scroll: %s
 +
|-
 +
|str-scroll-subtext||The sub text on the scroll item. Use %s for spell name and %u for uses remaining.||Uses remaining: %u
 +
|-
 +
|str-usage||Usage text when the spell is used incorrectly.||You must hold a single blank paper and type /cast scroll <spell> <uses>
 +
|-
 +
|str-no-spell||Text that appears if the spell is unknown to the player.||You do not know a spell by that name.
 +
|-
 +
|str-cant-teach||Text that appears if require-teach-perm is true and the player doesn't have the required teach permission.||You cannot create a scroll with that spell.
 +
|-
 +
|str-on-use||Text that appears when a scroll is used.||Spell Scroll: %s used. %u uses remaining.
 +
|-
 +
|str-use-fail||Text that appears when unable to use a scroll.||Unable to use this scroll right now.
 
|}
 
|}
 +
==预定义卷轴==
 +
预定义卷轴可以方便的由别的插件来定义好卷轴以供MagicSpells使用。它需要你对一张纸设置一个关联的卷轴和物品数据值。举例,你拥有一个数据值为1的纸将它变为能使用10次的闪现技能:
 +
每个预定义卷轴必须指定一个数据值,技能真实名称和使用次数(可选项,如果不填则为默认使用次数)
 +
<nowiki>
 +
    predefined-scrolls:
 +
        - 1 blink 10
 +
        - 2 leap 15
 +
        - 3 combust
 +
</nowiki>
 
==举例==
 
==举例==
 
  <nowiki>
 
  <nowiki>
tome:
+
scroll:
     spell-class: ".command.TomeSpell"
+
     spell-class: ".command.ScrollSpell"
     name: tome
+
     name: scroll
    spell-icon: book
+
     description: Create a limited use spell scroll.
     description: Create a tome that teaches a spell.
+
     cast-for-free: true
     cancel-read-on-learn: true
+
    default-uses: 5
     consume-book: true
+
    max-uses: 10
     allow-overwrite: false
+
    item-id: 339
     max-uses: -1
+
     right-click-cast: true
     default-uses: -1
+
     left-click-cast: false
 +
     ignore-cast-perm: false
 +
    remove-scroll-when-depleted: true
 +
     charge-reagents-for-spell-per-charge: false
 
     require-teach-perm: true
 
     require-teach-perm: true
     str-usage: "Usage: While holding a book, /cast tome <spell>"
+
    require-scroll-cast-perm-on-use: true
     str-no-spell: You do not know a spell with that name.
+
    str-scroll-name: "Magic Scroll: %s"
 +
    str-scroll-subtext: "Uses remaining: %u"
 +
     str-scroll-over: "Spell Scroll: %s (%u uses remaining)"
 +
    str-usage: |
 +
        You must hold a single blank paper
 +
        and type /cast scroll <spell> <uses>.
 +
     str-no-spell: You do not know a spell by that name.
 
     str-cant-teach: You cannot create a tome with that spell.
 
     str-cant-teach: You cannot create a tome with that spell.
     str-no-book: You must be holding a book.
+
     str-cast-self: You have created a spell scroll for %s.
    str-already-has-spell: That book already contains a spell.
+
     str-on-use: "Spell Scroll: %s used. %u uses remaining."
    str-already-known: You already know the %s spell.
+
     str-use-fail: Unable to use this scroll right now.
     str-cant-learn: You cannot learn the spell in this tome.
 
    str-learned: You have learned the %s spell.
 
     str-cast-self: You have created a spell tome.
 
</nowiki>
 
==高级==
 
MagicSpells是通过物品上一行Lore来识别卷轴的。这行Lore被设定为黑色并附有“Magic”效果所以玩家看不到。文本如下:
 
<nowiki>
 
&0&kMS$:tome:spell,uses
 
 
</nowiki>
 
</nowiki>
卷轴魔法在默认的情况下名字是<code>tome</code>,上述tome的位置为配置文件里卷轴魔法的真实名称。上述spell的位置为魔法的真实名称。上述uses的位置为剩余的使用次数。你可以通过任何别的方法来给物品添加Lore使Magicspells识别它为卷轴。举例,使用RecipeManager你可以这样来创建卷轴:
 
<nowiki>
 
COMBINE
 
 
redstone + glowstone_dust + book
 
 
= written_book
 
@bookitem title 愚蠢的瞬移技能
 
@bookitem author 我是作者
 
@itemlore &0&kMS$:tome:blink,1
 
</wiki>
 

2018年1月11日 (四) 20:28的最新版本

基础魔法。卷轴魔法允许玩家创立一个直接释放技能的卷轴给其他玩家/自己使用。

用法:手握一张纸后输入/cast scroll <魔法名> [使用次数]

设置

选项 解释 默认值
cast-for-free 如果设置为 true, 使用卷轴将不会消耗所需的施法材料. 如果设置为 false, 在使用卷轴前会消耗所需的施法材料. true
ignore-cast-perm 如果设置为 false, 玩家使用卷轴施法必须要有 magicspells.cast.<spell> 权限来使用. 如果设置为 true, 可以忽略权限施法. false
bypass-normal-checks 如果设置为 true, normal casting checks will be bypassed. 这包括施法材料, 冷却, 施法次数, 禁止魔法的区域和其他约束条件. false
default-uses 默认卷轴可使用次数. 5
max-uses 一个卷轴可以使用的最大次数. 10
item-id 卷轴材质物品ID. 339
right-click-cast 是否使用右键施法. true
left-click-cast 是否使用左键施法. false
remove-scroll-when-depleted 是否在可使用次数耗尽后移除玩家背包内的卷轴. true
charge-reagents-for-spell-per-charge 如果设置为 true, the reagents for each use of the spell will be charged up-front when the scroll is created. false
require-teach-perm 是否需要传授魔法的权限来创建卷轴. true
require-scroll-cast-perm-on-use 如果设置为 true, 使用卷轴的玩家必须要有 magicspells.cast.scroll 权限. true
predefined-scrolls [v2.11] 如下所示.
str-scroll-over The text that appears in chat when a scroll is selected in the player's hotbar. Spell Scroll: %s (%u uses remaining)
str-scroll-name 卷轴物品名. 使用 %s 代表魔法名,用 %u 代表可使用次数. Magic Scroll: %s
str-scroll-subtext The sub text on the scroll item. Use %s for spell name and %u for uses remaining. Uses remaining: %u
str-usage Usage text when the spell is used incorrectly. You must hold a single blank paper and type /cast scroll <spell> <uses>
str-no-spell Text that appears if the spell is unknown to the player. You do not know a spell by that name.
str-cant-teach Text that appears if require-teach-perm is true and the player doesn't have the required teach permission. You cannot create a scroll with that spell.
str-on-use Text that appears when a scroll is used. Spell Scroll: %s used. %u uses remaining.
str-use-fail Text that appears when unable to use a scroll. Unable to use this scroll right now.

预定义卷轴

预定义卷轴可以方便的由别的插件来定义好卷轴以供MagicSpells使用。它需要你对一张纸设置一个关联的卷轴和物品数据值。举例,你拥有一个数据值为1的纸将它变为能使用10次的闪现技能: 每个预定义卷轴必须指定一个数据值,技能真实名称和使用次数(可选项,如果不填则为默认使用次数)

    predefined-scrolls:
        - 1 blink 10
        - 2 leap 15
        - 3 combust

举例

scroll:
    spell-class: ".command.ScrollSpell"
    name: scroll
    description: Create a limited use spell scroll.
    cast-for-free: true
    default-uses: 5
    max-uses: 10
    item-id: 339
    right-click-cast: true
    left-click-cast: false
    ignore-cast-perm: false
    remove-scroll-when-depleted: true
    charge-reagents-for-spell-per-charge: false
    require-teach-perm: true
    require-scroll-cast-perm-on-use: true
    str-scroll-name: "Magic Scroll: %s"
    str-scroll-subtext: "Uses remaining: %u"
    str-scroll-over: "Spell Scroll: %s (%u uses remaining)"
    str-usage: |
        You must hold a single blank paper 
        and type /cast scroll <spell> <uses>.
    str-no-spell: You do not know a spell by that name.
    str-cant-teach: You cannot create a tome with that spell.
    str-cast-self: You have created a spell scroll for %s.
    str-on-use: "Spell Scroll: %s used. %u uses remaining."
    str-use-fail: Unable to use this scroll right now.