Give an effect to a player who see a certain block or entity

Started by Ciross on

Topic category: Help with modding (Java Edition)

Last seen on 18:52, 26. Mar 2022
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Give an effect to a player who see a certain block or entity

Hey im making a mod, and i need some help, how can i give a potion effect like Blindness, when a player see a certain entity or a certain block ? Thanks x)

You can use raytrace look…
Thu, 12/31/2020 - 09:58

You can use raytrace look position and entity in range procedure blocks for this

Last seen on 18:52, 26. Mar 2022
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Tahnks for your answer ^^…
Thu, 12/31/2020 - 21:57

Tahnks for your answer ^^ can u send me a screen of an exemple ?

Last seen on 18:52, 26. Mar 2022
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It need to give the effect…
Sun, 01/03/2021 - 02:20

It need to give the effect when the entity (or the block) is on the screen, not when he is exactly looking at