5

[SOLVED] Give entity effect on hit if sword has NBT tag

5 emeralds6 replies134 views
Silabear started 10/5/21 1:18 pm history
and replied 10/7/2021 12:02 pm
So basically, I am making it so you can tip swords like arrows. I have figured out a way to put the effect in the item's Item.tag.Effect NBT tag. Now, I would like to apply that effect to any entity which has been hit with the tipped sword. Any ideas?
Posted by avatar
Silabear
Level 52 : Grandmaster Bear
102

Create an account or sign in to comment.

6 replies

2
10/05/2021 6:35 pmhistory
Level 45 : Master Blob
HoboMaggot
HoboMaggot avatar
Cloud wolf has a video for this
https://www.youtube.com/watch?v=YZfCBBvOMN4
1
10/07/2021 12:02 pm
Level 52 : Grandmaster Bear
Silabear
Silabear avatar
Just what I needed! Thanks!
1
10/05/2021 1:48 pm
Level 51 : Grandmaster Nerd
Pleasenotme
Pleasenotme avatar
What I did was.... I opened up TCC and found out how it was done in that, then i made a low-quality recreation of my own.
1
10/05/2021 1:45 pmhistory
Level 30 : Artisan Magical Boy
Flynecraft
Flynecraft avatar
Execute the effect command to every entity that took damage (HurtTime:10) thats in a 3 block range of @s AS and AT all players holding the item that have a scoreboard on 1 that detects if the player used a sword (scoreboard thing should be minecraft:used.minecraft.iron/diamond/gold.sword)
I am bad at explaining lol
1
10/05/2021 6:36 pm
Level 45 : Master Blob
HoboMaggot
HoboMaggot avatar
Too bad its pretty flawed in a rather significant amount of cases
1
10/05/2021 2:28 pm
Level 52 : Grandmaster Bear
Silabear
Silabear avatar
that makes sense!
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome