Started by
hey23
on
Topic category: Troubleshooting, bugs, and solutions
I have an entity attacked procedure that does this in order:
- If target entity is sub type of Player then
- If source entity is sub type of (my mob)
- Spawn single particle at x,y,z...
- Play sound "sound name" at x,y,z...
- Set itemstack Local:item to get item event target entity is using
- Deal 1 damage to get itemstack Local:item
- Spawn dropped item Get itemstack:Local: item at x,y,z...
I wanted to make an entity that when it hits you it drops the weapon you're using, but it does not work, I think its one or two of the if statements that are not working.
Please help. (I would just send a screenshot but I don't know how to do that without leaking stuff don't ask)
remove the last 3 steps and add:
-spawn dropped item in main hand of event target entity at x, y, z
-set item in main hand of event target entity to air
Thanks it worked! This whole time I thought there was something wrong with the procedure not firing and not that at all!
You're welcome