Started by
JeckOficial
on
Topic category: Help with Minecraft modding (Java Edition)
so, i'm making a "ghost scythe" that absorbs the enemy's life when he is hit by the scythe, can someone give me a hint on how i do this "effect"?
(sorry if I said something wrong i'm brazilian and i don't speak english very well)
xD
Edited by JeckOficial on Tue, 04/07/2020 - 16:34
Go in procedures for the weapon and click "when mob hit with tool" use the procedure block "despawn provided entity" and then make a soul item (soul item in this context = X) then use the block "add 1 of item X to provided entity's inventory" save the procedure then done
I did not understand this part
"and then make a soul item (soul item in this context = X)"
skip if you want
I just did it because it sounded cool
oh,
what will this do?
"add 1 of item X to provided entity's inventory''
what's this ''item''?
So in a nutshell, you need 3 mod element.1 Your ghost scythe.2 Make the soul,like soul that you get when....idk.3 make the procedure like,when hit entities despawn it then add 1 soul thing that you get from...idk. FINISH
but, what's a soul '__'
oohh you want to get like health boost when use the ghost scythe?
yeah
something like :
the life you gain is = the damage you give to the entity
oh then what damage is your ghost scythe
When Scythe hits mob -> set player health to -> player's health + 1 IF player's health < 20
Correction: Player's health + (amount of life you want to absorb)
I think if you do that, it will add hearts to the mob.