描述
是否曾想过,为什么空手就能弹开恶魂的火球?借助 Sender’s Return Policy,你可以决定哪些物品或投射物能够偏转 incoming 攻击!模组附带合理的默认设置,开箱即用!Minecraft 中定义为可偏转的投射物包括:恶魂火球、迅捷风之电荷(Breeze Wind Charge)和风之电荷(Wind Charge)。
功能:
- 默认情况下,仅当主手持有以下物品进行近战攻击时,才能反射可偏转的投射物:铁剑、金剑、钻石剑、下界合金剑、铁锹、金锹、钻石锹和下界合金锹。
- 默认情况下,仅以下类型的投射物能够偏转其他可偏转投射物:箭、光灵箭、风之电荷、迅捷风之电荷和三叉戟。
- 如果安装了 Mod Menu,可通过游戏内配置进行修改
配置:
以下选项可以更改:
- 是否使用数据包标签来定义可偏转的物品/投射物
- 是否使用配置列表选项来定义可偏转的物品/投射物
- 是否允许任何近战攻击作为回退机制进行偏转
- 是否允许任何投射物作为回退机制偏转另一个投射物
- 可用于偏转投射物的物品 ID
- 可用于偏转投射物的投射物 ID
默认 .minecraft/config/sendersreturnpolicy.json 文件内容如下:
{
"useTags": true,
"useConfigLists": true,
"fallbackAllowAnyItemToRedirect": false,
"fallbackAllowAnyProjectileToRedirect": false,
"redirectingItemIds": [
"minecraft:iron_sword",
"minecraft:golden_sword",
"minecraft:diamond_sword",
"minecraft:netherite_sword",
"minecraft:iron_shovel",
"minecraft:golden_shovel",
"minecraft:diamond_shovel",
"minecraft:netherite_shovel"
],
"redirectingProjectileIds": [
"minecraft:arrow",
"minecraft:spectral_arrow",
"minecraft:wind_charge",
"minecraft:breeze_wind_charge",
"minecraft:trident"
]
}
你也可以使用数据包来定义哪些主手持握的物品和投射物可以进行偏转。如果你不知道如何创建数据包,请点击 这里 了解教程。
能够偏转投射物的实体应添加到 data/sendersreturnpolicy/tags/entity_type/redirects_projectiles.json 文件中。
redirects_projectiles.json 示例:
{
"values": [
"minecraft:arrow",
"minecraft:spectral_arrow"
]
}
在主手中持握时可进行偏转的物品应添加到 data/sendersreturnpolicy/tags/item/redirects_projectiles_when_in_main_hand.json 文件中。
redirects_projectiles_when_in_main_hand.json 示例:
{
"values": [
"minecraft:iron_sword",
"minecraft:iron_shovel"
]
}
支持
如果你有 bug 报告、功能请求或其他类型的问题,请发布在我们的 GitHub 问题页面。这是所有模组的统一问题页面,因此请在帖子中包含模组的名称和版本。我们感谢所有的反馈!
如果你想支持开发工作,可以在我们的 BuyMeACoffee 页面上打赏。当然,这仅在你力所能及的情况下进行——否则,使用、分享并享受该模组本身就是一种支持。谢谢!
Description
Ever wondered why a bare hand can deflect a Ghast fireball? With Sender’s Return Policy, you decide which items or projectiles can redirect incoming attacks! The mod comes ready to play with default settings that make sense! Minecraft defines redirect-able projectiles as the Ghast fireball, Breeze Wind Charge, and Wind Charge.
Features:
- By default, only melee attacks with these items in the main hand will reflect redirect-able projectiles: Iron Sword, Golden Sword, Diamond Sword, Netherite Sword, Iron Shovel, Golden Shovel, Diamond Shovel, and Netherite Shovel
- By default, only the following projectile types will reflect redirect-able projectiles: Arrows, Spectral Arrows, Wind Charges, Breeze Wind Charges, and Tridents
- In-game configuration is available via Mod Menu if installed
Config:
These options can be changed:
- Whether or not to use datapack tags to define items/projectiles that redirect
- Whether or not to use configured list options to define items/projectiles that redirect
- Whether or not to allow any melee attack to redirect as a fallback
- Whether or not to allow any projectile to redirect another projectile as a fallback
- The item IDs for which items can redirect projectiles
- The projectile IDs for which items can redirect projectiles
Default .minecraft/config/sendersreturnpolicy.json:
{
"useTags": true,
"useConfigLists": true,
"fallbackAllowAnyItemToRedirect": false,
"fallbackAllowAnyProjectileToRedirect": false,
"redirectingItemIds": [
"minecraft:iron_sword",
"minecraft:golden_sword",
"minecraft:diamond_sword",
"minecraft:netherite_sword",
"minecraft:iron_shovel",
"minecraft:golden_shovel",
"minecraft:diamond_shovel",
"minecraft:netherite_shovel"
],
"redirectingProjectileIds": [
"minecraft:arrow",
"minecraft:spectral_arrow",
"minecraft:wind_charge",
"minecraft:breeze_wind_charge",
"minecraft:trident"
]
}
You can also use a datapack to define which main-hand items and projectiles can redirect. Click here to learn how to create a data pack if you don't know how.
Projectile Entities that can redirect should be added to a data/sendersreturnpolicy/tags/entity_type/redirects_projectiles.json file.
Example redirects_projectiles.json:
{
"values": [
"minecraft:arrow",
"minecraft:spectral_arrow"
]
}
Items that can redirect when held in the main hand should be added to a data/sendersreturnpolicy/tags/item/redirects_projectiles_when_in_main_hand.json file.
Example redirects_projectiles_when_in_main_hand.json:
{
"values": [
"minecraft:iron_sword",
"minecraft:iron_shovel"
]
}
Support
If you have a bug report, feature request, or any other type of issue, please post on our GitHub issues page. This is an issues page for all of our mods, so be sure to include the mod's name and version in your post. We appreciate all feedback!
If you'd like to support development, you can leave a tip at our BuyMeACoffee. Only if it's within your means- otherwise, using, sharing, and enjoying the mod is support enough. Thank you!
评论 0
登录后参与评分
还没有评论,来抢沙发吧