Im making this poisoned dart gun

Started by Pwdell on

Topic category: Help with MCreator software

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im making this poisoned dart gun

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?

 

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.

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.

Joined May 2023
Points:

User statistics:

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

ty

 

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

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))

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?

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.