How do i make my procedure only work on players

Started by Hanimeillapse on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Jan 2022
Points:
423

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 3 years ago
Joined Dec 2021
Points:
461

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 53
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

Active 3 years ago
Joined Jan 2022
Points:
423

User statistics:

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

 thats the procedure i used 

Active 3 years ago
Joined Jan 2022
Points:
423

User statistics:

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

 the screenshot wont show up

 

Active 3 years ago
Joined Dec 2021
Points:
461

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 53
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