How do i make my procedure only work on players

Started by Hanimeillapse on

Topic category: Help with modding (Java Edition)

Last seen on 02:25, 23. Jan 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make my procedure only work on players

i was making a insta kill sword mod but entity's are insta killing each other is there any way to make it player only

Last seen on 02:51, 19. Feb 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you send a screenshot…
Tue, 01/11/2022 - 23:29

Could you send a screenshot of the current procedure you are using for the sword?

 

You can surround your procedure with an "if statement" and check if the nearest entity is a player before it runs the procedure

Last seen on 02:25, 23. Jan 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 thats the procedure i used 
Wed, 01/12/2022 - 04:40

 thats the procedure i used 

Last seen on 02:25, 23. Jan 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 the screenshot wont show up…
Wed, 01/12/2022 - 04:42

 the screenshot wont show up

 

Last seen on 02:51, 19. Feb 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Upload the screenshot to…
Fri, 01/14/2022 - 21:32

Upload the screenshot to imgur or something and then copy the images address and paste it here