你是否曾想过,山羊角还能用来做什么有用的事?
现在,你可以像使用战号一样,吹奏你心爱的山羊角了。
这个数据包为山羊角添加了 6 种新的附魔,效果各不相同。这些附魔专为多人游戏环境设计,旨在增加趣味性,但在单人游戏中同样非常实用。它们能让你在战斗中扮演召唤者或支援者的角色。
特别注重还原原版体验
功能概览
- 新增 6 种山羊角附魔
- 新增一个包含山羊角相关进度(Advancement)的新标签页
- 修改流浪商人的交易
- 有较小几率出售一对相同的山羊角
- 极小几率出售一本包含 1 种新附魔的附魔书
- 缩短了山羊角的听觉距离
- 在多人世界中,你肯定不想 24/7 一直听到山羊角的声音
- 新增实体类别 “友方” (ally)
附魔概览
✨ 建议你自己去发现这些附魔。
查看附魔
逃生计划 ?
吹响号角以发起冲锋
钢铁意志 ?️
稳住阵脚,坚守阵地
- 在短时间内大幅降低自身受到的伤害,但代价是移动速度降低
- 附近的友方也会获得中等程度的防御提升
战场牧师 ?✨
你的使命是在战斗中援助盟友
- 为友方提供短暂的生命恢复和额外的韧性
- 你本人不会获得同样的增益
海豚之歌 ?
海豚的神秘歌声,赋予你海洋的恩赐
精灵口哨 ?✨
你的歌声与森林的频率产生共鸣
- 导致附近的一只苦力怕提前爆炸,但其爆炸几乎不造成伤害。
- 小心,它可能会把你炸飞
黑血 ?
牺牲自我,腐蚀血液以将力量赋予盟友
- 对自己施加诅咒,大幅提升友方的力量和生命值。
- 小心不要把自己弄死
自定义指南
文件结构
?data
┣ ?minecraft
┃ ┣ ?instrument
┃ ┃ ┣ ?admire_goat_horn.json
┃ ┃ ┣ ?call_goat_horn.json
┃ ┃ ┣ ?dream_goat_horn.json
┃ ┃ ┣ ?feel_goat_horn.json
┃ ┃ ┣ ?ponder_goat_horn.json
┃ ┃ ┣ ?seek_goat_horn.json
┃ ┃ ┣ ?sing_goat_horn.json
┃ ┃ ┗ ?yearn_goat_horn.json
┃ ┗ ?tags
┃ ┃ ┣ ?enchantment
┃ ┃ ┗ ?function
┗ ?swizz
┃ ┣ ?advancement
┃ ┣ ?enchantment
┃ ┃ ┣ ?black_blood.json
┃ ┃ ┣ ?dolphin_song.json
┃ ┃ ┣ ?escape_plan.json
┃ ┃ ┣ ?fairy_whistle.json
┃ ┃ ┣ ?field_medic.json
┃ ┃ ┗ ?iron_will.json
┃ ┣ ?function
┃ ┃ ┣ ?particles
┃ ┃ ┣ ?goat_horn_effect.mcfunction
┃ ┃ ┣ ?goat_horn_execution_handler.mcfunction
┃ ┃ ┣ ?load.mcfunction
┃ ┃ ┣ ?tick.mcfunction
┃ ┃ ┗ ?wandering_trade.mcfunction
┃ ┗ ?tags
┃ ┃ ┣ ?enchantment
┃ ┃ ┃ ┣ ?exclusive_set
┃ ┃ ┃ ┣ ?enabled_enchantments.json
┃ ┃ ┃ ┗ ?goat_horn_enchantments.json
┃ ┃ ┗ ?entity_type
┃ ┃ ┃ ┗ ?ally.json
禁用特定附魔
如果你不喜欢某个附魔,可以使其在生存模式中无法获得。
步骤 1:
?data
┣ ?swizz
┃ ┣ ?tags
┃ ┃ ┣ ?enchantment
┃ ┃ ┃ ┗ ?enabled_enchantments.json
从列表中删除包含你指定附魔的那一行。
确保最后一行末尾没有 , 符号,否则会导致错误。
步骤 2:
?data
┣ ?swizz
┃ ┣ ?function
┃ ┃ ┗ ?wandering_trade.mcfunction
滚动到文件底部,查找以你所希望移除的附魔结尾的那一行。
删除该行,或者最好在行首放置一个 # 符号。这将会“注释”掉该行,意味着该附魔将无法添加到流浪商人的交易表中。
确保将 # 符号放在行首,否则可能会导致错误。
步骤 3:
重载你的世界
仅使用 /reload 不足以应用附魔相关的更改。
编辑山羊角声音距离
步骤 1:
?data
┣ ?minecraft
┃ ┣ ?instrument
┃ ┃ ┣ ?admire_goat_horn.json
┃ ┃ ┣ ?call_goat_horn.json
┃ ┃ ┣ ?dream_goat_horn.json
┃ ┃ ┣ ?feel_goat_horn.json
┃ ┃ ┣ ?ponder_goat_horn.json
┃ ┃ ┣ ?seek_goat_horn.json
┃ ┃ ┣ ?sing_goat_horn.json
┃ ┃ ┗ ?yearn_goat_horn.json
对于上述列出的所有 .json 文件(即 instrument 目录下的所有 .json 文件),
将 range 变量编辑为你选择的半径(以方块为单位):
"range": 128.0,
确保只更改数字,不要改动其他内容,否则可能会遇到错误。
保留 .0 部分和末尾的 ,。
步骤 2:
重启你的世界。
使用 /reload 不会更新此设置。
更改附魔功能
所有附魔逻辑均由以下文件处理:
?data
┣ ?swizz
┃ ┣ ?function
┃ ┃ ┣ ?goat_horn_effect.mcfunction
除非你对脚本语言/Minecraft 命令有一定经验,否则请勿修改此文件。
这些附魔本身不包含任何固有效果。
安装方法
- 下载 .zip 文件
- 将其放入存档中的数据包文件夹内
- 如果你正在游戏中,请重启世界
?.minecraft
┣ ?存档
┃ ┣ ?<世界名称>
┃ ┃ ┣ ?数据包
┃ ┃ ┃ ┗ [.zip here]
其他说明
- 请勿修改玩家的
horn_effect 进度,否则会导致附魔效果无法触发。
- 正常游戏过程中不应出现此情况
- 如果玩家永久获得了该进度,请撤销该玩家的此进度。除非您希望该玩家无法使用其附魔的效果
- 命名空间
swizz 是开发过程中的遗留产物。该数据包最初是为一个小服务器(朋友间联机)开发的,属于一个包含多种杂项更改的大型整合包的一部分。名称来源于种子与瑞士(Switzerland)的相似性。
- 如需联系我或提供反馈,可通过 Bluesky (bsky.app) @ philipldev.bsky.social 与我联系
- 本许可证允许任何人自由重用、修改或重新分发代码,只需注明出处即可。但请勿原样重新分发本应用并声称其为官方来源。
- 如发现拼写错误,请通知我
Have you ever wondered if you could use your Goat Horn for something useful?
Well, you can now use your beloved goat horn like a war horn.
This datapack adds 6 new enchantments for goat horns with varying effects. These are specifically made to be fun in a multiplayer setting. Though they are still very useful in singleplayer. They can allow you to take up a more summoner or supporter type role in combat.
Specifically designed to feel pretty vanilla
Feature overview
- Added 6 new Goat Horn enchantments
- A new advancement tab with Goat Horn related advancements
- Modified wandering trader trades
- Small chance they will sell a pair of identical goat horns
- Very small chance they'll sell 1 new enchantment as an enchanted book
- Reduced the distance within which you can hear goat horns
- You don't want to hear goat horns 24/7 on a multiplayer world
- New entity category "ally"
- Includes: players, wolves, iron golems, snow golems & villagers
Enchantment overview
✨ Would reccomend discovering these enchantments on your own.
View Enchantments
Escape plan ?
Play the horn to call a charge
- Grant yourself and the allies closeby a brief speed boost
Iron Will ?️
Brace yourself, stand your ground
- Grant yourself significant damage resistance for a brief moment, at the cost of your speed
- Closeby allies gain a moderate boost to their defences too
Field Cleric ?✨
Your mission is to aid your allies in combat
- Grant your allies brief healing and extra resilience
- You do not gain the same boons
Dolphin Song ?
The magic song of the dolphin, grants you the gift of the sea
- Allows you and your nearby allies the abillity to navigate the sea with ease
Fairy Whistle ?✨
Your song resonates with the frequency of the forest
- Causes a nearby creeper to prematurely explode, with it's explosion dealing little to no damage.
- Be careful, it might send you flying
Black Blood ?
Sacrifice yourself, corrupt your blood to feed your strength to your allies
- Place a curse upon yourself to grant your allies significant increases to their strength and vitallity.
- Be careful so you don't kill yourself
-
Enchantments cannot be combined, one horn can only have one enchantment.
-
Due to the limitations of datapacks, you cannot directly enchant them in an enchantment table. The best way of acquiring one of these enchantments, is to enchant books and look for unusual enchantments.
Customization Guide
File structure
?data
┣ ?minecraft
┃ ┣ ?instrument
┃ ┃ ┣ ?admire_goat_horn.json
┃ ┃ ┣ ?call_goat_horn.json
┃ ┃ ┣ ?dream_goat_horn.json
┃ ┃ ┣ ?feel_goat_horn.json
┃ ┃ ┣ ?ponder_goat_horn.json
┃ ┃ ┣ ?seek_goat_horn.json
┃ ┃ ┣ ?sing_goat_horn.json
┃ ┃ ┗ ?yearn_goat_horn.json
┃ ┗ ?tags
┃ ┃ ┣ ?enchantment
┃ ┃ ┗ ?function
┗ ?swizz
┃ ┣ ?advancement
┃ ┣ ?enchantment
┃ ┃ ┣ ?black_blood.json
┃ ┃ ┣ ?dolphin_song.json
┃ ┃ ┣ ?escape_plan.json
┃ ┃ ┣ ?fairy_whistle.json
┃ ┃ ┣ ?field_medic.json
┃ ┃ ┗ ?iron_will.json
┃ ┣ ?function
┃ ┃ ┣ ?particles
┃ ┃ ┣ ?goat_horn_effect.mcfunction
┃ ┃ ┣ ?goat_horn_execution_handler.mcfunction
┃ ┃ ┣ ?load.mcfunction
┃ ┃ ┣ ?tick.mcfunction
┃ ┃ ┗ ?wandering_trade.mcfunction
┃ ┗ ?tags
┃ ┃ ┣ ?enchantment
┃ ┃ ┃ ┣ ?exclusive_set
┃ ┃ ┃ ┣ ?enabled_enchantments.json
┃ ┃ ┃ ┗ ?goat_horn_enchantments.json
┃ ┃ ┗ ?entity_type
┃ ┃ ┃ ┗ ?ally.json
Disable select enchantment
If you dislike one enchantment you can make it unobtainable in survival
Step 1:
?data
┣ ?swizz
┃ ┣ ?tags
┃ ┃ ┣ ?enchantment
┃ ┃ ┃ ┗ ?enabled_enchantments.json
Remove the line containing your specified enchantment from the list.
Make sure the last line has no , symbol at the end or it will cause an error
Step 2:
?data
┣ ?swizz
┃ ┣ ?function
┃ ┃ ┗ ?wandering_trade.mcfunction
Scroll to the bottom of the file and look for a line ending with the enchantment you desire.
Remove the line, or preferably place a # symbol at the very start of the line. This will "comment" out the line, meaning the enchantment can't be added to the wandering trader's trading table.
Make sure you put the # symbol at the very start of the line, or it can cause an error
Step 3:
Reload your world
/reload is not sufficient for enchantment related changes
Edit Goat Horn sound distance
Step 1:
?data
┣ ?minecraft
┃ ┣ ?instrument
┃ ┃ ┣ ?admire_goat_horn.json
┃ ┃ ┣ ?call_goat_horn.json
┃ ┃ ┣ ?dream_goat_horn.json
┃ ┃ ┣ ?feel_goat_horn.json
┃ ┃ ┣ ?ponder_goat_horn.json
┃ ┃ ┣ ?seek_goat_horn.json
┃ ┃ ┣ ?sing_goat_horn.json
┃ ┃ ┗ ?yearn_goat_horn.json
For all the .json files listed above (all .json files in the instrument directory),
edit the range variable to your choosen radius in blocks
"range": 128.0,
Make sure you only change the number, nothing else or you could experience and error.
Keep the .0 part and the , at the end.
Step 2:
Restart your world.
/reload will not update this
Change enchantment functionality
All enchantment logic is handled in
?data
┣ ?swizz
┃ ┣ ?function
┃ ┃ ┣ ?goat_horn_effect.mcfunction
Do not modify this unless you are somewhat experienced with the scripting language / minecraft commands
The enchantments do not carry any inherent effects.
Installation
- Download .zip
- Place it in the datapack folder within your saves
- Restart world if you are currently playing
?.minecraft
┣ ?saves
┃ ┣ ?<world_name>
┃ ┃ ┣ ?datapack
┃ ┃ ┃ ┗ [.zip here]
- Datapacks only apply to the worlds to which you add the datapack to
Other notes
- Do not modify the
horn_effect advancement for a player, this would make it so the effects of your enchantments do not trigger.
- This should not happen during normal gameplay
- If a player has it granted to them permanently, revoke the advancement for said player. Unless you want said player to not have access to the effects of their enchantments
- The domain name
swizz is a development artifact. The datapack was origionally developed for a small server among friends, and was part of a larger pack of miscellaneous changes. The name is in reference to the seeds likeness to switzerland.
- If you want to contact me or provide feedback you can do so @ philipldev.bsky.social at bluesky (bsky.app)
- The licence is chosen such that anyone can re-use, modify or re-distribute the code as they please, as long as they provide credit. Though please avoid re-distributing the application as is, claiming to be an official source.
- Notify me if i have made spelling mistakes
评论 0
登录后参与评分
还没有评论,来抢沙发吧