Skip to content

Commit

Permalink
Fix Explosive Arrow the arrow is never killed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardel-DW committed May 13, 2024
1 parent a8da0ef commit 0d40ede
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update.md
39 changes: 24 additions & 15 deletions data/enchantplus/enchantment/bow/explosive_arrow.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,30 @@
"minecraft:hit_block": [
{
"effect": {
"type": "minecraft:explode",
"large_particle": {
"type": "minecraft:explosion_emitter"
},
"damage_type": "minecraft:arrow",
"block_interaction": "mob",
"radius": {
"type": "minecraft:linear",
"base": 2.5,
"per_level_above_first": 2
},
"small_particle": {
"type": "minecraft:ash"
},
"sound": "minecraft:entity.generic.explode"
"type": "minecraft:all_of",
"effects": [
{
"type": "minecraft:run_function",
"function": "enchantplus:actions/self_kill"
},
{
"type": "minecraft:explode",
"large_particle": {
"type": "minecraft:explosion_emitter"
},
"damage_type": "minecraft:arrow",
"block_interaction": "mob",
"radius": {
"type": "minecraft:linear",
"base": 2.5,
"per_level_above_first": 2
},
"small_particle": {
"type": "minecraft:ash"
},
"sound": "minecraft:entity.generic.explode"
}
]
},
"requirements": {
"condition": "minecraft:entity_properties",
Expand Down
1 change: 1 addition & 0 deletions data/enchantplus/functions/actions/self_kill.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kill @s

0 comments on commit 0d40ede

Please sign in to comment.