[Solved] Sunlight burn Effect

Started by e1sh7 on

Topic category: Help with MCreator software

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Solved] Sunlight burn Effect
Sun, 03/23/2025 - 12:15 (edited)

I was trying to create a potion effect that when you drink you burn in the sunlight but unfortunately it works at night I tried a lot of things but nothing seems to work and when the player gets the effect and gets into water the effect doesn't work anymore

https://imgur.com/a/JuOnEOf

 

 


 

Edited by e1sh7 on Sun, 03/23/2025 - 12:15
Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im using ver. 2025.1
Sat, 03/22/2025 - 23:33

im using ver. 2025.1

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a potion affect, make…
Sun, 03/23/2025 - 10:34

Create a potion affect, make a procedure for it with the "on affect active tick" trigger.

Check if the current world time is equal to or greater than 0, and if it's equal to or less than 12,000. Daytime in Minecraft lasts from 0 to 12,000 ticks. By checking if the current world time falls within this range, it ensures that the player only burns when it's daytime. Also check if the player is not in water.

If those three things are true, do set event/target entity on fire for one second.

https://imgur.com/a/udneVk5

Now create the potion. Under the effects list, add a new effect entry and set it to your custom effect.

 

 

 

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you so much it finally…
Sun, 03/23/2025 - 10:48

thank you so much it finally worked

but can u tell me how to make it that if the player is under a block he doesn't burn bc i can't find the procedure block anywhere

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and i want it to stop…
Sun, 03/23/2025 - 12:21

and i want it to stop burning when in nether or end

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To prevent the player from…
Sun, 03/23/2025 - 14:51

To prevent the player from burning in other dimensions, verify whether the player's current dimension ID matches 'surface'.

To check if the player is under a block, use the "can location at x,y,z see the sky" block, and replace x, y, and z with the player's current position.

Incorporate these checks alongside the existing three, and it should function as you intended.

Procedure

.ptpl file: https://www.mediafire.com/file/7l5tqpcwfdmszc0/BurnInSunlightPotion.ptpl/file

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bro You are the goat thank…
Sun, 03/23/2025 - 20:03

Bro You are the goat thank you so much