Started by
GotorFI
on
Topic category: Advanced modding
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.....)
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?
Cmon... Please someone answer....
This can only be done with code, MCreator has no functionality for such things.
you can use actual code, but i have no idea how
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!