Fade In/out system

Started by GotorFI on

Topic category: Advanced modding

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fade In/out system

Hey.

 

I am coder. I use lua and c++ but I have no idea about MCreator procedures. Would you like to help me?

I want to make command that fades black screen in and out. Command should be something like this: /(Command) @a in 3, or /(Command) @p out 2. First is the /command, then the target (@a, @p, @s...), then in or out (Fade In / Fade Out) and last the time how much takes to fade in or out (1-...). It has to be atleast 1 second to run the command. That black screen will be the Gui covered the entire screen.

 

Is this possible to do?

Thank you for your help and time :)

 

GotorFI (not good at MCreator procedures.....)

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If there is no way to do…
Thu, 08/17/2023 - 15:18

If there is no way to do that, then next thing that I was thinking is... Is it possible to hide hotbar without using F1 and lock player's perspective?

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Cmon... Please someone…
Fri, 08/18/2023 - 12:56

Cmon... Please someone answer....

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This can only be done with…
Fri, 08/18/2023 - 17:35

This can only be done with code, MCreator has no functionality for such things.

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can use actual code, but…
Fri, 08/18/2023 - 18:12

you can use actual code, but i have no idea how

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey there! You can do this…
Wed, 04/02/2025 - 14:35


Hey there! You can do this using the overlay feature in MCreator.
First you need to make a 1600x900 pixels image which is completely black in an editing software like Photoshop or Pixlr E. Then export it.
Then use the eraser tool with opacity like 5% and erase 1 layer of the image and export it and give it a recognizable name. Do this repeatedly like 20 times and export the images with recognizable names until you achieve a completely blank screen. Then import all these images into MCreator.
Then create an overlay and add all those images in it. 
Then create a variable named "fade" or whatever u want with default value 100.
Then create the procedure for your command and it will decrease that value by 5 each time with the desired break.
Then you have to create a procedure for each image respectively which returns "true" if the conditions are met like if fade=80 return true else return false.
Set the display condition of the overlay to display only when the command is executed. You can apply the same logic to create a fade in screen too!