显示页面过去修订反向链接回到顶部 本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。 ====== throw ====== 将所有目标从生物(或起源)处扔开。 ===== 属性 ===== |属性|缩写|描述|默认值| |velocity|v|实体被抛出的水平速度。|1| |velocityY|vy|实体被抛出的垂直速度|1| ===== 例子 ===== 在这个例子中,生物会在他们周围产生爆炸效果,对半径 5 个方块内的玩家造成 10 点伤害(5 颗心)并将他们击退。给人一种强烈爆炸的错觉。 <code yaml [enable_line_numbers="true"]> GroundSlam: Skills: - effect:explosion @Self - damage{amount=10} @PlayersInRadius{r=5} - throw{velocity=15;velocityY=5} @PlayersInRadius{r=5} </code> ===== 复杂的例子 ===== 这个复杂的例子展示了如何将投掷机制与其他机制结合使用以产生相当惊人的效果。施法者释放出强大的冲击波,对 10 格内的所有玩家造成 50 点伤害(25 颗心),并使用投掷机制将他们稍微抛向空中。还添加了额外的效果,使攻击更具吸引力和威慑力。 <code yaml [enable_line_numbers="true"]> SuperShockslam: Skills: - throw{velocity=5;velocityY=5} @PIR{r=10} - damage{a=50;i=false} @PIR{r=10} - effect:particles{p=hugeexplode;a=5;vs=0.5;hs=0.5;s=0;y=1} @Self - effect:sound{s=entity.generic.explode;v=2;p=0.5} @Self - effect:sound{s=entity.generic.explode;v=2;p=1;repeat=7;repeatInterval=2} @Self - effect:particlering{p=largeexplode;a=40;vs=0.5;hs=0.5;s=0;y=0.3;points=20;radius=1} @Self - delay 2 - effect:particlering{p=largeexplode;a=40;vs=0.5;hs=0.5;s=0;y=0.3;points=20;radius=3} @Self - delay 2 - effect:particlering{p=largeexplode;a=40;vs=0.5;hs=0.5;s=0;y=0.3;points=20;radius=5} @Self - delay 2 - effect:particlering{p=largeexplode;a=40;vs=0.5;hs=0.5;s=0;y=0.3;points=20;radius=7} @Self - delay 2 - effect:particlering{p=largeexplode;a=40;vs=0.5;hs=0.5;s=0;y=0.3;points=20;radius=9} @Self - delay 2 - effect:particlering{p=largeexplode;a=40;vs=0.5;hs=0.5;s=0;y=0.3;points=20;radius=11} @Self </code> 插件手册/mythicmobs/技能/机制列表/throw.txt 最后更改: 2021/09/07 12:01由 duangfafa