Entity Attacked Procedure Stuff

Started by hey23 on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 21:19, 29. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity Attacked Procedure Stuff

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)

Last seen on 16:02, 10. Oct 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
remove the last 3 steps and…
Sun, 07/14/2024 - 15:08

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

Last seen on 21:19, 29. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks it worked! This whole…
Sat, 07/20/2024 - 19:10

Thanks it worked! This whole time I thought there was something wrong with the procedure not firing and not that at all!

Last seen on 16:02, 10. Oct 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome 
Sat, 07/20/2024 - 19:28

You're welcome