I did something similar but with item drops but it should work with potion effects if you set the main green block at the top’s white box to “entity dies” you can make a “if do” part from flow control make it “check if source entity has a certain advancement” then make it give the effect in the “do part” if you want it to give different effects depending on mob killed you can make it also check if they have a certain tag and you can get the source entity part from the “Minecraft components” tab which in the “has completed advancement” part you need to replace the Event/target entity block with source entity so it can check if the player has the advancement otherwise it’ll check if the mob has it. There’s probably other ways to do it but this is what I’ve found works. And sorry for the wall of text but I hope this helps.
YESSSS, thank u so much :D. But, if u can help me, if i kill an living entity with an especific tool, can i do it with an tag, to make the procedure smaller?
like this, insted i put all this different items, can I put only the tag?
this should work hopefully of course change the "minecraft:logs" part to what your item tags use and you can find the "is [] tagged in item tags as" block inside the item procedures folder just replace the "provided item stack" block hope this works.
You can make a procedure for when an entity is killed:
Event: When entity killed
If (source entity) is sub-type (player)
add potion (effect goes here) to (source entity)
I hope I didn't make any mistakes here :D
i cant find this procedure :(
I did something similar but with item drops but it should work with potion effects if you set the main green block at the top’s white box to “entity dies” you can make a “if do” part from flow control make it “check if source entity has a certain advancement” then make it give the effect in the “do part” if you want it to give different effects depending on mob killed you can make it also check if they have a certain tag and you can get the source entity part from the “Minecraft components” tab which in the “has completed advancement” part you need to replace the Event/target entity block with source entity so it can check if the player has the advancement otherwise it’ll check if the mob has it. There’s probably other ways to do it but this is what I’ve found works. And sorry for the wall of text but I hope this helps.
YESSSS, thank u so much :D. But, if u can help me, if i kill an living entity with an especific tool, can i do it with an tag, to make the procedure smaller?
like this, insted i put all this different items, can I put only the tag?
this should work hopefully of course change the "minecraft:logs" part to what your item tags use and you can find the "is [] tagged in item tags as" block inside the item procedures folder just replace the "provided item stack" block hope this works.
omg, THANK U SO MUCH, im so happy, you are an angel