Im making this poisoned dart gun

Started by Pwdell on Sun, 05/28/2023 - 10:59

Topic category: Help with MCreator software

Last seen on 18:09, 30. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im making this poisoned dart gun
Sun, 05/28/2023 - 10:59

I am making this gun that inflicts poison effect whenever it hits entity or player, but it always gives the poison effect to the shooter as well. Can i do something about this?

 

Last seen on 18:08, 24. Sep 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Don't use when projectile…
Sun, 05/28/2023 - 12:09

Don't use when projectile hits player trigger.  When projectile hits living entity will still affect other players, so I don't know why when projectile hits player exists.

Last seen on 18:08, 24. Sep 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
edit: when projectile hits…
Sun, 05/28/2023 - 12:11

edit: when projectile hits player is what is affecting the shooter.

Last seen on 18:09, 30. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ty  
Sun, 05/28/2023 - 14:41

ty

 

Last seen on 18:09, 30. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
edit: thanks for help  i…
Sun, 05/28/2023 - 14:51

edit: thanks for help 

i removed the "player hit" procedure and it works just fine, however, if i shott and walk forward at the same time, then it still hits me, I guess I can not do anything about that, but when the effects wears off, there is still the poison icon in my inv at it says: poison 0:00. Is that problem with my game or the mod? ty again

Last seen on 18:08, 24. Sep 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the poison 0:00 is a bug…
Sun, 05/28/2023 - 14:52

the poison 0:00 is a bug that can be fixed if you put your entire procedure inside of an if block with the condition (not(is provided world client-side))

Last seen on 18:09, 30. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
okay, that will not affect…
Sun, 05/28/2023 - 15:13

okay, that will not affect my game or server in any way right?

Last seen on 18:08, 24. Sep 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It won't affect your game or…
Sun, 05/28/2023 - 16:17

It won't affect your game or server, I use it for almost all of my procedures.  The only possible problem is if your procedure tries to do something that needs to be client-side, but even then it just won't do anything.