[1.15.2]Minecraft数据包---蓄力靴

该数据包增加了物品:蓄力靴,能够让玩家通过潜行蓄力高跳

效果演示

B站视频演示:

https://www.bilibili.com/video/BV19f4y1X7zP

演示1

大致原理

玩家蓄力,记分板加分,然后递归刷slime,最后刷个火球
slime的挤压效果比较弱的,所以递归刷很多才能比较明显的体现,但是火球的效果非常的大,所以只是在最后刷了一个,即便如此,还是飞得很高。

1
2
3
4
5
6
7
8
execute as @s at @s anchored feet positioned ^ ^ ^-0.3 run summon slime ~ ~-0.3 ~ {Invulnerable:1b,NoAI:1b,Size:4,Tags:["boost-marker"],ActiveEffects:[{Id:14,Amplifier:1b,Duration:9999,ShowParticles:false}]}
effect give @e[type=slime,tag=boost-marker] resistance 9999 10 true
effect give @e[type=slime,tag=boost-marker] invisibility 9999 10 true
execute as @s at @s run scoreboard players remove @s upboots-sneak 1
execute as @s[scores={upboots-sneak=1..}] at @s run function upboots:jump

execute as @a[scores={upboots-sneak=0},tag=!fireball] at @s run summon fireball ~ ~0.3 ~ {Motion:[0.0d,-1.2d,0.0d],NoGravity:1b,Invulnerable:1b,ExplosionPower:-1,direction:[0.0d,-1.2d,0.0d]}
execute as @a[scores={upboots-sneak=0}] at @s run tag @s add fireball

火球的 ExplosionPower 标签决定了它的爆炸威力,只能设置为整数,数值越大效果越强,但是如果为负值,就会威力很小,但是有很强的击退效果,这个datapack正是利用了这一点。不过这东西不稳定而且也不好控制,所以局限性还是挺大的。

然后就没了,剩下一点后续的处理和一些actionbar的提示之类的。毕竟做的也很粗糙。
这个小玩意我写了两个版本,因为第一个版本实在不太行,基本没有竖直的高度变化,只能平地前进,令人很不爽。不过用了火球黑科技之后效果就好多了,这也就是这个datapack的核心之处。

鸣谢

  • dhp真好用
  • 很早之前某帖子给我的灵感,火球黑科技真是太棒了

datapack

链接:https://pan.baidu.com/s/1L3PkoDUZv_UH18rBxK_VsQ
提取码:dp31

  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2020-2021 Argon_gas

请我喝杯咖啡吧~