Enchantment effect "projectile_spawned" doesn't trigger for fishing rods and tridents
I've included a datapack that should give a fishing bobber visual fire after it is spawned. This is done with a custom enchantment that runs a function when a projectile is spawned.
Steps to reproduce
- Install the datapack
- Give yourself a fishing rod or a trident:
/enchant @s minecraft:grill
/give @s trident[minecraft:enchantments={"minecraft:grill":1}] - Cast the rod/throw the trident and see that it isn't on fire
You can see that the enchantment does indeed work by trying it on a bow
/give @s bow[minecraft:enchantments={"minecraft:grill":1}]
Created Issue:
enchantment effect "projectile_spawned" doesn't trigger for fishing rods
I've included a datapack that should give a fishing bobber visual fire after it is spawned. This is done with a custom enchantment that runs a function when a projectile is spawned.
Steps to reproduce
- Install the datapack
- Give yourself a fishing rod
/enchant @s minecraft:grill
- Cast the rod and see that it isn't on fire
You can see that the enchantment does indeed work by trying it on a bow
/give @s bow[minecraft:enchantments={"minecraft:grill":1}]
I've included a datapack that should give a fishing bobber visual fire after it is spawned. This is done with a custom enchantment that runs a function when a projectile is spawned.
Steps to reproduce
- Install the datapack
- Give yourself a fishing rod
/enchant @s minecraft:grill
- Cast the rod and see that it isn't on fire
You can see that the enchantment does indeed work by trying it on a bow
/give @s bow[minecraft:enchantments={"minecraft:grill":1}]
I've included a datapack that should give a fishing bobber visual fire after it is spawned. This is done with a custom enchantment that runs a function when a projectile is spawned.
Steps to reproduce
- Install the datapack
- Give yourself a fishing rod
/enchant @s minecraft:grill- Cast the rod and see that it isn't on fire
You can see that the enchantment does indeed work by trying it on a bow
/give @s bow[minecraft:enchantments={"minecraft:grill":1}]
enchantment effect "projectile_spawned" doesn't trigger for fishing rodsEnchantment effect "projectile_spawned" doesn't trigger for fishing rods and tridents
I've included a datapack that should give a fishing bobber visual fire after it is spawned. This is done with a custom enchantment that runs a function when a projectile is spawned.
Steps to reproduce
- Install the datapack
- Give yourself a fishing rod
/enchant @s minecraft:grill- Cast the rod and see that it isn't on fire
You can see that the enchantment does indeed work by trying it on a bow
/give @s bow[minecraft:enchantments={"minecraft:grill":1}]
I've included a datapack that should give a fishing bobber visual fire after it is spawned. This is done with a custom enchantment that runs a function when a projectile is spawned.
Steps to reproduce
- Install the datapack
- Give yourself a fishing rod or a trident:
/enchant @s minecraft:grill/give @s trident[minecraft:enchantments={"minecraft:grill":1}]
- Cast the rod/throw the trident and see that it isn't on fire
You can see that the enchantment does indeed work by trying it on a bow
/give @s bow[minecraft:enchantments={"minecraft:grill":1}]
I've included a datapack that should give a fishing bobber visual fire after it is spawned. This is done with a custom enchantment that runs a function when a projectile is spawned.
Steps to reproduce
- Install the datapack
- Give yourself a fishing rod or a trident:
/enchant @s minecraft:grill/give @s trident[minecraft:enchantments={"minecraft:grill":1}]
- Cast the rod/throw the trident and see that it isn't on fire
You can see that the enchantment does indeed work by trying it on a bow
/give @s bow[minecraft:enchantments={"minecraft:grill":1}]
I've included a datapack that should give a fishing bobber visual fire after it is spawned. This is done with a custom enchantment that runs a function when a projectile is spawned.
Steps to reproduce
- Install the datapack
- Give yourself a fishing rod or a trident:
/enchant @s minecraft:grill/give @s trident[minecraft:enchantments={"minecraft:grill":1}]
- Cast the rod/throw the trident and see that it isn't on fire
You can see that the enchantment does indeed work by trying it on a bow
/give @s bow[minecraft:enchantments={"minecraft:grill":1}]
I've included a datapack that should give a fishing bobber visual fire after it is spawned. This is done with a custom enchantment that runs a function when a projectile is spawned.
Steps to reproduce
- Install the datapack
- Give yourself a fishing rod or a trident:
/enchant @s minecraft:grill/give @s trident[minecraft:enchantments={"minecraft:grill":1}]- Cast the rod/throw the trident and see that it isn't on fire
You can see that the enchantment does indeed work by trying it on a bow
/give @s bow[minecraft:enchantments={"minecraft:grill":1}]
Related to MC-271628
Your datapack enchantment doesn't work in the latest snapshot. Do you have an updated datapack and does this still effect you in the latest snapshot/release?
Thanks for pointing it out. The function directory was plural.
I've confirmed the issue to still be in 1.21 Pre-Release 2
Can confirm in 1.21 Pre-Release 2:
Confirmed (2).mp4
Confirmed; this also affects tridents. However do note that the changelog says that this component only applies to projectile entities that have been spawned when firing a projectile weapon: