|
|
(未显示3个用户的54个中间版本) |
第1行: |
第1行: |
| {{Plugin Infobox
| | 请转向[[MythicMobsExtension/New]] |
| |icon=
| |
| <gallery>
| |
| MythicMobsExtensionicon.png
| |
| </gallery>
| |
| |plugin=MythicMobsExtension
| |
| |version=1.238f
| |
| |pre=
| |
| |ver=
| |
| |author=muhahahahe
| |
| |URL=https://www.spigotmc.org/resources/mythicmobsextension.51884/
| |
| }}
| |
| {{待完善}}
| |
| =插件介绍=
| |
| 这个插件是基于API链接mythicmobs的,可以给你的mythicmobs插件添加60多种机械,50多种条件和10多个目标.
| |
| =前置=
| |
| 至少4.1以上版本的 [https://www.spigotmc.org/resources/%E2%9A%94-mythicmobs-%E2%96%BAthe-1-custom-mob-creator%E2%97%84.5702/ MythicMobs]<br />
| |
|
| |
| 一些机械需要用到 [https://dev.bukkit.org/projects/holographic-displays HolographicDisplays]
| |
| =条件Conditions=
| |
| 条件的使用方法和mythicmobs内的用法一样<br />
| |
| | |
| [http://mythicmobs.net/manual/doku.php/conditions/start#how_do_conditions_work 官方教程]
| |
| ----
| |
| ==可用条件列表==
| |
| {| class="wikitable"
| |
| |-
| |
| |-
| |
| | attackable || behind || [http://mineplugin.org/MythicMobsExtension#.E6.A3.80.E6.B5.8B.E7.94.9F.E7.89.A9.E7.BE.A4.E7.B3.BB BiomeFix] || crouching || damageable
| |
| |-
| |
| || eir || facingDirection || FactionsFlag || getBowTension || getIndicator
| |
| |-
| |
| | hasMeta || hasSpawner || hasTarget || inFaction || inFront
| |
| |-
| |
| || inMobArena || inMotion || inSolidBlock || isBurning || isGoggling
| |
| |-
| |
| | isPresent || isSpinning || isStunned || isVehicle || jumping
| |
| |-
| |
| || lastBowTension || lastDamageCause || leir || lookAtMe || looksAtMe
| |
| |-
| |
| | MobsInRadius || moveSpeed || onCooldown || onSolidBlock || ownerAlive
| |
| |-
| |
| || ownsItem || ownsItemSimple || parsedStance || pir || playerTime
| |
| |-
| |
| | playerWeather || relativeDirection || running || sameFaction || sameSpawner
| |
| |-
| |
| || sameWorld || sleeping || testfor || vDistance || WGDenySpawnFlag||WGStateFlag
| |
| |}
| |
| | |
| ==总体条件==
| |
| ''译者注:mm怪物即为mythicmobs内的怪物''
| |
| ===检测生物群系===
| |
| - biomefix{b=[SINGLE/ARRAY];action=[BOOLEAN]}
| |
| 检测施放者或目标所在的生物群系
| |
| 例子: - biomefix{b=DESERT,PLAINS;action=true}
| |
| ===实体===
| |
| - eir{types=[SINGLE/ARRAY/ALL];amount=[数值/数值范围];radius=[数值];action=[boolean];insameblock/isb=[BOOLEAN]}
| |
| 检测在所给出范围内的实体数
| |
| 例子: - eir{types=ARMOR_STAND;amount=1;radius=5;action=true}
| |
| | |
| - leir{types=[SINGLE/ARRAY/ALL];amount=[数值/数值范围];radius=[数值];action=[boolean];insameblock/isb=[BOOLEAN]}
| |
| 检测所给数值范围内的实体数
| |
| 例子: - leir{types=ZOMBIE,SQUID;amount=2;radius=15;action=true}
| |
| | |
| - mobsinradius{mobtypes=[SINGLE/ARRAY/ALL];a=[NUMERIC/NUMERIC范围];r=[NUMERIC];action=[BOOLEAN]}
| |
| 检测施放者/目标/特定位置在所给范围内的怪物数量
| |
| 例子: - mobsinradius{m=ALL;a=5to10;r=20;action=TRUE}
| |
|
| |
| ===朝向===
| |
| - facingdirection{d=[CARDINAL-POINT];action=[BOOLEAN]}
| |
| 检测目标是否看着指定的方向
| |
| 例子: - facingdirection{f=SOUTH_WEST;action=true}
| |
| ===派系===
| |
| - factionsflag{flag=[SINGLE/ARRAY];action=[BOOLEAN]}
| |
| 检测 派系内是否有已设置或未设置的flag
| |
| 例子: - factionsflag{flag=firespread;action=false}
| |
| | |
| - infaction{faction=[STRING/ARRAY];action=[BOOLEAN]}
| |
| 检测施放者是否在一个派系内
| |
| 注意: 只对mm怪物生效
| |
| 例子: - infaction{faction=MyFaction;action=true}
| |
|
| |
| ===拉弓状态===
| |
| - getbowtension{range=[数值/数值范围];debug=[BOOLEAN];action=[BOOLEAN]}
| |
| 检测拉弓状态
| |
| 例子: - getbowtension{range=1;action=true}
| |
| ===攻击指示器===
| |
| - getindicator{value=[数值/数值范围];action=[BOOLEAN]}
| |
| 检测玩家的攻击指示器
| |
| 0 = 无攻击指示器, 1 = 满的攻击指示器
| |
| 例子: - getindicator{value=<0.51;action=true}
| |
| ===源于刷怪笼===
| |
| - hasspawner{names=[SINGLE/ARRAY/ANY];action=[BOOLEAN]}
| |
| 检测mm怪物是否来自于刷怪笼
| |
| 例子: - hasspawner{names=MySpawner;action=true}
| |
| ===目标===
| |
| - hastarget{action=[BOOLEAN]}
| |
| 检测施放者是否已经有一个目标
| |
| 注意: 这只作用于施放者, 如果你在 TargetConditions 内使用这个条件的话将会出错!
| |
| 例子: - hastarget{action=true}
| |
| ===mobarena===
| |
| - inmobarena
| |
| 检测 施放者, 目标或指定位置是否在怪物竞技场内.
| |
| 需要 MobArena 插件
| |
| ===移动状态===
| |
| - inmotion{action=[BOOLEAN]}
| |
| 检测检测目标是否在移动
| |
| 不对非生物实体起作用
| |
| 例子: - inmotion{action=true}
| |
| ===处于方块上===
| |
| - insolidblock{action=[BOOLEAN]}
| |
| 检测目标实体或位置是否处于一块固体的方块上
| |
| 例子: - insolidblock{action=true}
| |
| ===拉弓力度===
| |
| - lastbowtension{range=[数值/数值范围];debug=[BOOLEAN];action=[BOOLEAN]}
| |
| 检测射箭时拉弓的力度
| |
| 例子: - lastbowtension{range=>0.7;action=true}
| |
| ===伤害事件===
| |
| - lastdamagecause{cause=[BukkitDamageCause];damager=[BukkitEntityType];action=[BOOLEAN]}
| |
| 检测最后一次对施放者或目标造成伤害的事件
| |
| 注意: 只会检测mm生成的实体
| |
| 例子: - lastdamagecause{cause=PROJECTILE;damager=PLAYER;action=true}
| |
| ===移动状态===
| |
| - movespeed{range=[数值/数值范围]}
| |
| 检测目标实体的移动速度
| |
| 例子: - movespeed{range=>0.1}
| |
| ===冷却===
| |
| - oncooldown{value=[数值/数值-Range];action=[BOOLEAN]}
| |
| 检测玩家的物品是否处于冷却
| |
| 例子: - oncooldown{value=1to10;action=true}
| |
|
| |
| - owneralive{action=[boolean]}
| |
| 检测某些生物的主人是否在线或在同一个世界内
| |
| 例子: - owneralive{action=true}
| |
|
| |
| - playerweather{weather=[WEATHERTYPE];action=[boolean]}
| |
| 检测目标玩家的天气
| |
| 只配合 playerweather机械来使用
| |
| 例子: - playerweather{weather=CLEAR;action=true}
| |
| - testfor{vc="[valid_testfor_stuff]";action=[BOOLEAN]}
| |
| 检测施放者或目标是否有testfor材料
| |
| 例子: - testfor{vc="XpLevel:20";action=true}
| |
| | |
| ===玩家状态===
| |
| ====睡觉====
| |
| - sleeping{action=[boolean]}
| |
| 检测目标玩家是否在睡觉
| |
| 例子: - sleeping{action=true}
| |
| ====潜行====
| |
| - crouching{action=[BOOLEAN]}
| |
| 检测玩家是否处于潜行状态
| |
| 例子: - crouching{action=true}
| |
| ====奔跑====
| |
| - running{action=[BOOLEAN]}
| |
| 检测目标玩家是否在奔跑/冲刺
| |
| 例子: - running{action=true}
| |
| ====跳跃====
| |
| - jumping{action=[BOOLEAN]}
| |
| 检测目标实体是否在跳跃
| |
| 例子: - jumping{action=true}
| |
| ====玩家时间====
| |
| - playertime{time=[数值/数值范围];action=[boolean]}
| |
| 检测目标玩家的时间
| |
| 只配合 playerweather机械来使用
| |
| 例子: - playertime{time=0to12000;action=true}
| |
| ====玩家数量====
| |
| - pir{amount=[数值/数值范围];radius=[数值];action=[boolean];insameblock/isb=[BOOLEAN]}
| |
| 检测在所给范围内的玩家数
| |
| 例子: - pir{amount=5;radius=10;action=true}
| |
| ===worldguard===
| |
| - wgdenyspawnflag{types=[BukkitEntityType];action=[BOOLEAN]}
| |
| 检测 区域内是否禁止生成特定的怪物(通常在随机刷怪中使用)
| |
| 例子: - wgdenyspawnflag{types=ZOMBIE,SKELETON;action=false}
| |
|
| |
| - wgstateflag{flag=[WorldGuardFlag];action=[BOOLEAN]}
| |
| 检测区域内是否有已设置的flag
| |
| 例子: - wgstateflag{flag=mob-spawning;action=false}
| |
| ==对比条件==
| |
| - attackable{cause=[BukkitEntityDamageEvent];action=[BOOLEAN]}
| |
| 检测 if the target is attackable by the caster with this DamageEvent
| |
| 例子: - attackable{cause=PROJECTILE;action=false}
| |
|
| |
| - behind{view=[ANGLE_VALUE];action=[BOOLEAN]}
| |
| 检测施法者是否在目标后
| |
| 例子: - behind{view=90;action=true}
| |
|
| |
| - damageable{cause=[BukkitEntityDamageEvent];action=[BOOLEAN]}
| |
| 检测目标是否可以被伤害事件所伤
| |
| 例子: - damageable{cause=PROJECTILE;action=true}
| |
|
| |
| - hasmeta{meta="tag=[TAGNAME];value=[TAGVALUE];type=[BOOLEAN/NUMERIC/STRING]";compareself=[BOOLEAN];action=[BOOLEAN]}
| |
| compares the meta of 2 entities, can also used on caster itself
| |
| can check multiple metas (seperated by && for AND or || for OR)
| |
| 例子: - hasmeta{meta="tag=lastdamagedentity;value=<target.uuid>;
| |
| type=STRING";cs=true;action=true}
| |
|
| |
| - hasmetasimple{tag=[TAGNAME];value=[TAGVALUE];type=[BOOLEAN/NUMERIC/STRING]";compareself=[BOOLEAN];action=[BOOLEAN]}
| |
| same as hasmeta but can only compare 1
| |
| 例子: - hasmetasimple{tag=lastdamagedentity;value=<target.uuid>;
| |
| type=STRING;cs=true;action=true}
| |
|
| |
| - infront{view=[ANGLE-数值];action=[BOOLEAN]}
| |
| 检测施放者是否在目标前
| |
| 例子: - infront{view=10;action=false}
| |
|
| |
| - isburning{range=[数值];action=[BOOLEAN]}
| |
| 检测如果目标实体在燃烧
| |
| 在提供的范围内检测 ticks数是否与 FIRE_TICKS 配对
| |
| 例子: - isburning{action=true}
| |
|
| |
| - isgoggling{action=[BOOLEAN]}
| |
| 检测玩家正在看到的东西
| |
| 例子: - isgoggling{action=true}
| |
|
| |
| - ispresent{action=[BOOLEAN]}
| |
| 检测一个实体是否在场
| |
| 例子: - ispresent{action=true}
| |
|
| |
| - isspinning{action=[BOOLEAN]}
| |
| 检测玩家是否在旋转
| |
| 和playerspin机械一起使用
| |
| 例子: - isspinning{action=true}
| |
|
| |
| - isstunned{action=[BOOLEAN]}
| |
| 检测施放者或目标是否中了stun技能
| |
| 这也会在 TargetConditions条件下起作用: 但要设置正确的目标
| |
| 例子: - isstunned{action=true}
| |
|
| |
| - isvehicle{action=[BOOLEAN]}
| |
| 检测目标是否处于骑乘状态
| |
| 例子: - isvehicle{action=true}
| |
|
| |
| - lookatme{fov=[DOUBLE];yo=[DOUBLE];debug=[BOOLEAN]}
| |
| 检测目标是否在看着施放者
| |
| 这个例子使用的默认数值对任何实体都有用
| |
| 开启调试模式后你的控制台会显示fov 和 yo
| |
| 例子: - lookatme{fov=1.999;yo=-0.4}
| |
|
| |
| - onsolidblock{action=[BOOLEAN]}
| |
| 检测检测目标实体或位置是否处于一块固体的方块上
| |
| 例子: - onsolidblock{action=true}
| |
|
| |
| - ownsitem{list="where=[ANY/HAND/ARMOR/INVENTORY];material=[ANY/MATERIALTYPE];amount=[数值/数值范围];lore=[LORETEXT]";action=[BOOLEAN]}
| |
| 检测目标背包内是否拥有(使用 '''&&''' 代表 AND '''||''' 代表 OR)
| |
| 一或多个格子顺序的特定物品
| |
| 例子: - ownsitem{list="where=HAND;material=DIAMOND_SWORD;amount=1 && where=INVENTORY;material=DIAMOND_SWORD;amount=1to2";action=true}
| |
|
| |
| - ownsitemsimple{where=[ANY/HAND/ARMOR/INVENTORY];material=[ANY/MATERIALTYPE];amount=[数值/数值范围];lore=[LORETEXT];action=[BOOLEAN]}
| |
| 和 ownsitem一样但只能检测1个背包格
| |
| 例子: - ownsitemsimple{where=HAND;material=SAND;amount=1;action=true}
| |
|
| |
| - parsedstance{s="<variable>";cs=[BOOLEAN];action=[BOOLEAN]}
| |
| 这个条件可以检测一个变量是否设置为距离
| |
| 对 parsedstance mechanic
| |
| (注意: 如果 cs 设置为true 它会总是检测施放者)
| |
| 例子: - parsedstance{s="<target.uuid>";cs=true;action=true}
| |
|
| |
| - relativedirection{angle=[数值/数值范围];action=[BOOLEAN]}
| |
| 检测目标到施放者间的距离
| |
| 例子: - relativedirection{angle=90;action=false}
| |
|
| |
| - samefaction{faction=[STRING/ARRAY];action=[BOOLEAN]}
| |
| 检测目标和施放者是否在同一个派系内
| |
| 注意: 只作用于一只mm的怪物
| |
| 例子: - samefaction{faction=MyFaction;action=true}
| |
|
| |
| - samespawner{action=[BOOLEAN]}
| |
| 检测 目标MythicMob是否作为来自同一刷怪笼的施放者
| |
| 例子: - samespawner{action=true}
| |
|
| |
| - sameworld{action=[BOOLEAN]}
| |
| 检测目标实体和施放者是否在同一时间
| |
| 例子: - sameworld{action=true}
| |
|
| |
| - vdistance{d=[NUMERIC];action=[BOOLEAN]}
| |
| 检测施放者和目标直之间的距离
| |
| 例子: - vdistance{d=2to3;action=true}
| |
| =机械=
| |
| ==技能==
| |
| {| class="wikitable"
| |
| |-
| |
| ! 技能 !! 描述
| |
| |-
| |
| |[http://MythicMobsExtension/%E6%9C%BA%E6%A2%B0#asquip asquip]||给盔甲架装上装备
| |
| |-
| |
| |[http://MythicMobsExtension/%E6%9C%BA%E6%A2%B0#cure_.7C_removePotion cure / removePotion]||移除目标身上特点或所有的药水效果
| |
| |-
| |
| |[http://mineplugin.org/MythicMobsExtension/%E6%9C%BA%E6%A2%B0#damageArmorhttp://mineplugin.org/MythicMobsExtension/%E6%9C%BA%E6%A2%B0#damageArmor damageArmor]||伤害目标身上所有或特定格子顺序的防具
| |
| |-
| |
| |[http://mineplugin.org/MythicMobsExtension/%E6%9C%BA%E6%A2%B0#disarm disarm]||缴械目标
| |
| |-
| |
| |[http://mineplugin.org/MythicMobsExtension/%E6%9C%BA%E6%A2%B0#dropInventory dropInventory]||丢出目标玩家背包内特定倍数或所有的物品
| |
| |-
| |
| |dropStolenItems||掉落之前偷窃的物品 (配合steal使用)
| |
| |-
| |
| |[http://mineplugin.org/MythicMobsExtension/%E6%9C%BA%E6%A2%B0#entityGoggle_.2F_entityGoggleAt entityGoggle / entityGoggleAt]||强制非玩家实体看着施放者
| |
| |-
| |
| |[http://mineplugin.org/MythicMobsExtension/%E6%9C%BA%E6%A2%B0#equipSkull equipSkull]||修复MC 1.8.8版本的BUG, 给施放者装上头颅
| |
| |-
| |
| |[http://mineplugin.org/MythicMobsExtension/%E6%9C%BA%E6%A2%B0#extinguish extinguish]||熄灭目标身上的火焰
| |
| |-
| |
| |feed||喂养目标玩家
| |
| |-
| |
| |playerGoggle / playerGoggleAt||强制目标玩家看着施放者
| |
| |-
| |
| |playerSpin||旋转目标玩家
| |
| |-
| |
| |playerWeather||设置目标玩家的天气或时间
| |
| |-
| |
| |playerZoom||旋转目标玩家
| |
| |-
| |
| |oxygen||给目标玩家灌满氧气
| |
| |-
| |
| |setRotation||旋转实体
| |
| |-
| |
| |steal||从目标玩家身上偷取物品
| |
| |-
| |
| |stun||使被标记的生物无法移动和交互
| |
| |-
| |
| |swap||交互施放者和目标的位置
| |
| |-
| |
| |unEquip||卸下施放者指定格子顺序的防具
| |
| |}
| |
| ==原版增强技能==
| |
| {| class="wikitable"
| |
| |-
| |
| ! 技能 !! 描述
| |
| |-
| |
| | customDamage || 对目标造成指定的伤害
| |
| |-
| |
| | customParticleline || 在与目标相对的特定点之间绘出一条粒子线
| |
| |-
| |
| | customRandomSkill || 从列表中随机触发一个技能
| |
| |-
| |
| | customSummon || 在目标实体或特定未知生成mm怪物
| |
| |-
| |
| | customTeleport || 传送目标 和/或 施放者到一个实体或指定位置处
| |
| |-
| |
| | customVelocity || 矢量操纵
| |
| |}
| |
| | |
| ==实用技能==
| |
| {| class="wikitable"
| |
| |-
| |
| ! 技能 !! 描述
| |
| |-
| |
| |castIf||与另一个或多个条件比较并,如果条件满足将执行一项技能,否则执行另一项技能
| |
| |-
| |
| |clearThreatTarget||drops combat和清除施放者对怪物的威胁度
| |
| |-
| |
| |closeInventory||关上已经打开背包玩家的背包
| |
| |-
| |
| |delMeta||从一个实体中移除数值
| |
| |-
| |
| |dropMythicItem||在目标出掉落mm物品
| |
| |-
| |
| |modifyArrows||修改目标身上的箭
| |
| |-
| |
| |parsedDisguise||使用变量伪装目标
| |
| |-
| |
| |parsedStance | pStance||把一个变量视为距离
| |
| |-
| |
| |playCredits||forces a credit screen
| |
| |-
| |
| |playLoading||forces a dirt wall screen
| |
| |-
| |
| |renameEntity||重命名目标实体
| |
| |-
| |
| |setCachedOwner||设置目标实体为施放者的主人
| |
| |-
| |
| |setFaction||设置目标mm怪物的派系
| |
| |-
| |
| |setItemCooldown||设置物品使用冷却
| |
| |-
| |
| |setLevel||设置目标mm怪物的等级
| |
| |-
| |
| |setMeta||设置实体的数值
| |
| |-
| |
| |setMobHealth||修改目标mm怪物的血量
| |
| |-
| |
| |setSpeed||设置目标的移动速度
| |
| |-
| |
| |setThreatTarget||设置目标对施放者的威胁度
| |
| |}
| |
| | |
| =链接=
| |
| [https://github.com/BerndiVader/MythicMobsExtension/wiki github原文]
| |