Fan type block that removes potion effect when player is underneath it

Started by uhmshadow on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fan type block that removes potion effect when player is underneath it

I'm trying make a fan block that gets rid of a potion effect in a 4(x) by 12(y) by 4(z) square radius when underneath of it like a fan does. (the potion effect deals fire damage like heat and the fan i supposed to "cool" you off. Really just taking off that potion effect.) My issue is to figure out how to detect the player when in that radius, how to make that radius, and then get rid of the potion effect. Any thoughts, suggestions, or work arounds? 

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't think you would be…
Fri, 02/25/2022 - 03:52

I don't think you would be able to make a non square are of effect, but you could make an entity iterator block, with a radius of 12 which means 6x6x6 6 blocks under the fan (or you could replace the 12 with another even number like 10 for 5x5x5) and use the remove certain potion effect block