how to make entities that are only visible to certain people

Started by MFNmodding on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to make entities that are only visible to certain people
Thu, 09/09/2021 - 22:32 (edited)

i want to make a mob that you can only see if you have a certain potion effect, but i'm not quite sure how to do that. if anyone has any ideas, i'd love to hear them in the comments.

Edited by MFNmodding on Thu, 09/09/2021 - 22:32
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe on a Player Tick…
Thu, 09/09/2021 - 23:15

maybe on a Player Tick Update

If entity/targetEntity has Active Potion: 

(and run another procedure where the Mob changes Textures to Blank or Normal, if it can't be done by procedures which I am kinda sure it's not, just code a a procedure and run it on Players Tick Update)

 

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i don't know how to code,…
Fri, 09/10/2021 - 22:11

i don't know how to code, unfortunately.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it should be relatively easy…
Fri, 09/10/2021 - 22:41

it should be relatively easy, at least this code because there should be tutorials about this, I recommend doing some investigation on how to code this, maybe someone already made a tutorial.