这是什么?
这是一个火枪数据包,安装和使用都很简单。
在下载数据包的同时,请一并安装提供的资源包以获得更好的体验!
火枪对玩家造成 16 点伤害(8 颗心),对生物造成 20 点伤害(10 颗心),这些伤害可以通过护甲和/或保护弹射物附魔来减免。弹射物可以穿过空气和大多数非完整方块(水除外)。
它是如何制作的?
使用每秒 8 次传送和检测,一个盔甲架在直线飞行 5 秒后消失。通过坐标距离选择器(dy=,dx=,dz=),它检测弹射物 0.5 格范围内任何实体的碰撞箱,并使用伤害命令对其造成伤害,伤害类型为箭矢。
装填是自动进行的,耗时 10 秒,并且每秒会在操作栏显示消息。每次射击都需要使用下方所示的弹药。
为了确保射击玩家的安全,射击后的 1 个刻内禁用命中检测,使得武器在极近距离下无效。
我尽最大努力进行了优化,但仍有多个检查在每个刻运行。此数据包未经过大量弹射物同时存在的情况测试。
火枪弹药(弹壳)合成配方:

火枪合成配方:

ℹ️ - 版权所有 - Leaf 的项目信息
- 您可以将此项目包含在任何 Modrinth 整合包中。
- 对于其他请求,请直接联系我并询问。

Whats this?
Its a musket datapack, easy to install and use.
While downloading the datapack please also install the provided resourcepack for better experience!
The musket does 16 damage (8 hearts) to players and 20 damage (10 hearts) to mobs, this can be reduced with armor and/or projectile protection enchantments. The projectile can travel thru air and most non-full blocks excluding water.
How its made?
Using 8 teleports and detections per tick an armor stand travels for 5 seconds in a straight line before disapearing, using the coordinate distance selector (dy=,dx=,dz=) it detects any entity's hitbox within 0.5 block range from the projectile and deals the damage to it using the damage command, the damage type being arrow.
Reloading happens automatically and takes 10 seconds with actionbar messages every second, every shot requires the shell seen below.
To ensure the safety of the player shooting it, the hit detection is disabled for 1 tick after shot making the weapon ineffective at very close ranges.
I put effort into as much optimizing as possible but there is still multiple checks running every tick, This datapack was not tested with large numbers of projectiles existing at the same time.
Musket ammo (shell) crafting recipe:

Musket crafting recipe:

ℹ️ - All Rights Reserved - Leaf's Project Information
- You are allowed to include this project in any modrinth modpack.
- For other requests you should contact me and ask directly.

评论 0
登录后参与评分
还没有评论,来抢沙发吧