Started by
sebastiank2939
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a custom enchantment drop a custom item when an undead mob type is killed with the enchantment applied to a sword. I've been trying to figure out how to do it, but without any luck. I thought what I currently have would work, unfortunately it does not. If you know how to do it, please help.
Trigger is entity dies
If source entity has active = potion effect name
then do: randomize % drop
potion effect???
also this should be your procedure
Trigger entity dies
if item in main hand of source entity is enchanted with: ENCHANT AND is event target entity type:Undead (found in entity data)
do spawn gem: ITEM at x y z
I tried this and nothing happened. Does it work with vanilla mob drops, or do I need to have a custom entity for it to drop?
works with anything
you probably did the procedure wrong
Yeah, most likely. Do I need to add the procedure to anything or is it fine on its own?
fine on its own
Sorry i misunderstood your request
I have same feature on my mod
Trigger entity dies
If main hand of source entity = item and get enchantment = enchant name and entity = undead
Do spawn gem item to be dropped
isn't that what I just said lol
I figured it out, I just did the procedure wrong lol. Thank you