Creating Custom Arrow Enchants Commands & Data Pack | Minecraft 1.21.1
Enchantment Template Used:
{
"description": {
"translate": "Enchanted Arrows"
},
"effects": {
"minecraft:tick": [
{
"effect": {
"type": "minecraft:run_function",
"function": "insert_directory:arrow_check"
}
}
],
"minecraft:projectile_spawned": [
{
"effect": {
"type": "minecraft:all_of",
"effects": [
{
"type": "minecraft:run_function",
"function": "insert_directory:arrow_spawn"
},
{
"type": "minecraft:play_sound",
"sound": "minecraft:entity.illusioner.cast_spell",
"volume": 5.0,
"pitch": 1.0
}
]
}
}
]
},
"anvil_cost": 1,
"max_cost": {
"base": 40,
"per_level_above_first": 0
},
"max_level": 1,
"min_cost": {
"base": 1,
"per_level_above_first": 0
},
"slots": [
"any"
],
"supported_items": "minecraft:bow",
"weight": 1
}
Functions Used
arrow_spawn:
data modify entity @s PierceLevel set value 1b
tag @s add enchanted_x
arrow_check:
execute as @e[type=#minecraft:arrows,tag=enchanted_x,nbt=!{inGround:1b}] at @s run particle minecraft:enchant ~ ~ ~ 0.1 0.1 0.1 0.1 3
execute as @e[type=#minecraft:arrows,tag=enchanted_x,nbt=!{inGround:1b},nbt={LeftOwner:1b}] at @s if entity @e[distance=..3,type=!#minecraft:arrows] run [insert command to run on hit]
execute as @e[type=#minecraft:arrows,tag=enchanted_x,nbt=!{inGround:1b},nbt={LeftOwner:1b}] at @s if entity @e[distance=..3,type=!#minecraft:arrows] run kill @s
execute as @e[type=#minecraft:arrows,tag=enchanted_x,nbt={inGround:1b,LeftOwner:1b}] at @s run [insert command to run on landing]
execute as @e[type=#minecraft:arrows,tag=enchanted_x,nbt={inGround:1b,LeftOwner:1b}] at @s run kill @s
-------------------------------------------------------------------------------------------------------------------------
Data Pack Downloads:
PlanetMC - https://www.planetminecraft.com/data-pack/runechant-a-new-world-to-discover-beta-release-made-for-current-snapshot/
Modrinth - https://modrinth.com/datapack/runechant
Showcases multiple features for my upcoming new Minecraft data pack. Using a bunch of commands I'm trying to alter Vanilla gameplay with an overwhelming number of RPG elements, from mob abilities to bosses and even a new magic system. I give you my work in progress Data Pack, Runechant a New World to Discover.
Welcome to Klloo's Main Channel, home currently to all my content. I also have specific channels for each type of content. Currently all Stream VODs are uploaded to those channels along with longer form content.
Links
Twitch - https://www.twitch.tv/kllooooyy
Discord - https://discord.gg/3Ntrh7sywT
Youtube Channels
Main Channel - / @kllooooyy
Minecraft Channel - / @kllooooyy_minecraft
TCG Channel - / @kllooooyy_tcg
Gaming Channel - / @kllooooyy_vods
Twitch - https://www.twitch.tv/kllooooyy
Twitter - https://twitter.com/klloo_ooyy
TikTok - https://www.tiktok.com/@kllooooyy
Discord - https://discord.gg/3Ntrh7sywT
#minecraft #datapack #minecraftdatapack #minecraftcreations #minecraftcreative #minecraftcommandblock #commandblock #minecraftshorts
Other Videos By Kloo Live
Other Statistics
Minecraft Statistics For Kloo Live
Kloo Live presently has 1,208,625 views for Minecraft across 1,879 videos, with the game making up over 7 days of published video on his channel. This is 23.50% of the total watchable video for Minecraft on Kloo Live's YouTube channel.