Fade In/out system

Started by GotorFI on

Topic category: Advanced modding

Active 6 days ago
Joined Apr 2023
Points:
222

User statistics:

  • Modifications: 1
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 18
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.....)

Active 6 days ago
Joined Apr 2023
Points:
222

User statistics:

  • Modifications: 1
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 18
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?

Active 6 days ago
Joined Apr 2023
Points:
222

User statistics:

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

Cmon... Please someone answer....

Active 1 year ago
Joined Oct 2019
Points:
686

User statistics:

  • Modifications: 2
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 63
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.

Active 10 months ago
Joined May 2023
Points:
295

User statistics:

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

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

Active 1 week ago
Joined Oct 2024
Points:
36

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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!