[Tutorial] How to use World Renderer

Started by sumeshi0216 on

Topic category: User side tutorials

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Tutorial] How to use World Renderer
Thu, 11/21/2024 - 13:32 (edited)

Changes in V1.8.4

In v1.8.4, the vanilla sky, clouds, and weather are automatically removed on the event triggers. If you need to retain them, return false.

 


 

World Renderer

World Renderer can render sky, models, shapes, etc. using procedures and event triggers.

 

Here are the guides.

 


 

Event Triggers

Graphics - Compute FOV

It can set FOV using the procedure "Viewport - Set FOV."

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • fov: It's the vanilla FOV value.
  • partialTick: It's an interpolation factor between ticks.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 


 

Graphics - Compute camera angles

It can compute camera angles using the procedure "Viewport - Set camera angles."

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • partialTick: It's an interpolation factor between ticks.
  • yaw/pitch/roll: They're the vanilla camera angles.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 


 

Graphics - Compute fog color

It can set the fog color using the procedure "Viewport - Set fog color."

Note that the alpha values can't be changed.

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • red/green/blue: They're the RGB components of the vanilla fog color.
  • partialTick: It's an interpolation factor between ticks.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 


 

Graphics - Compute light color

It can set the light colors using the procedures in the list "Lighting."

The event trigger "Graphics - Set up dimensions" is also required to make it work.

Note that the alpha values can't be changed.

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • partialTick: It's an interpolation factor between ticks.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 

Here is the guide.

 


 

Graphics - Render clouds

It can render custom clouds using the procedures in the list "Clouds."

The event trigger "Graphics - Set up dimensions" is also required to make it work.

You can retain the vanilla clouds by returning a logical false.

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • partialTick: It's an interpolation factor between ticks.
  • ticks: It's the current tick of the client world.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 

Here is the guide. See the guide "Render Effects" on how to set textures.

 


 

Graphics - Render fog

It can set the fog distance and shape using the procedures "Viewport - Set fog distance" and "Viewport - Set fog shape."

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • start/end: They're the start/end distances of the vanilla fog.
  • partialTick: It's an interpolation factor between ticks.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 


 

Graphics - Render overlays

It can render custom overlays using the procedures in the list "Overlay."

 

Dependencies

  • mouseX/mouseY: They're the mouse positions
  • partialTick: It's an interpolation factor between ticks.

 

Here is the guide. See the guide "Render Effects" on how to set textures.

 


 

Graphics - Render shapes

It  can render shapes like triangles, quads, etc., using the procedures in the list "Shape."

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • partialTick: It's an interpolation factor between ticks.
  • ticks: It's the current tick of the client world.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 

Here is the guide. See the guide "Render Effects" on how to set textures.

 


 

Graphics - Render sky

It can render custom sky using the procedures in the list "Sky."

The event trigger "Graphics - Set up dimensions" is also required to make it work.

You can retain the vanilla sky by returning a logical false.

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • partialTick: It's an interpolation factor between ticks.
  • ticks: It's the current tick of the client world.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 

Here are the guides. See the guide "Render Effects" on how to set textures.

 


 

Graphics - Render weather

It can render custom weather using the procedures in the list "Weather."

The event trigger "Graphics - Set up dimensions" is also required to make it work.

You can retain vanilla weather by returning a logical false.

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • partialTick: It's an interpolation factor between ticks.
  • ticks: It's the current tick of the client world.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 

Here are the guides. See the guide "Render Effects" on how to set textures.

 


 

Graphics - Render world

It can render lines, texts, block, item and entity models using the procedures in the list "World."

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • partialTick: It's an interpolation factor between ticks.
  • ticks: It's the current tick of the client world.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 


 

Graphics - Set weather particles and sounds

It can set custom weather particles and sounds using the procedures in the list "Weather particles and sounds."

The event trigger "Graphics - Set up dimensions" is also required to make it work.

You can retain the vanilla particles and sounds by returning a logical false.

 

Dependencies

  • dimension: It's the dimension that the camera entity is in.
  • entity: It's the camera entity.
  • partialTick: It's an interpolation factor between ticks.
  • ticks: It's the current tick of the client world.
  • x/y/z: They're the X/Y/Z positions of the camera entity.
  • world: It's the client world that the camera entity is in.

 

Here are the guides.

 


 

Graphics - Set up dimensions

The event trigger is required to work some event triggers. You need to use the procedures in the list "Setup."

 

Dependencies

  • None

 

Here is the guide.

 


 

Useful Procedures

 

Color

Those procedures can get various colors. They can be used on all rendering events.

 

Data

Those procedures can get game/world data. They can be used on all rendering events.

 

Others

They are can be used all rendering events.

 

Render effects

Those procedures is used for rendering. They can be used on the following events only.

  • Graphics - Render clouds
  • Graphics - Render overlays
  • Graphics - Render shapes
  • Graphics - Render sky
  • Graphics - Render weather

Here is the guide.

 


 

Common Mistakes

If you get errors or bugs, try to check the following.

 

Dimension is not set up

The event trigger "Graphics - Set up dimension" is required to work some event triggers.

 

Use wrong event triggers or procedures

In order to render objects, you will need to use event triggers and procedures properly. See the above.

 

Call procedures from non-rendering events

If this example were run, your Minecraft would be crashed. It is not possible to call procedures and run rendering.

 

Modify game/world data on rendering events

Game/world data modifying should not be run on rendering events. That also includes block/entity/item modifying, NBT setting, etc.

However, it is possible to get and use data of blocks, entities, items, NBT, global variables, etc.

Edited by sumeshi0216 on Thu, 11/21/2024 - 13:32
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What is the best way to…
Sat, 05/18/2024 - 20:54

What is the best way to render items on a block? I know that the render model feature works with the player cordinates, but I am wondering if you have a procedure to render it on a block that is nearby the player

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Save positions to global…
Wed, 05/22/2024 - 04:44

Save positions to global variables, and render items with the variables. If there are multiple positions, use other plugins like Array Lists.

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
may just dont know how to…
Mon, 05/27/2024 - 04:58

may just dont know how to use array list plugin, but it crashes if i try to render item with

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try to check whether an…
Fri, 05/31/2024 - 04:36

Try to check whether an event trigger "Graphics - Render models" is used.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can I use custom textures to…
Fri, 06/14/2024 - 10:11

Can I use custom textures to render mob models? I want to render an entity but with a different texture and it doesn't work.
If this is not possible at the moment, is there a chance that this will be added?

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
MCreator can add model…
Sat, 06/15/2024 - 09:27

MCreator can add model layers.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes but I want to use this…
Sat, 06/15/2024 - 11:20

Yes but I want to use this vanilla mob and player. Mcreator does not allow adding layers to the player and vanilla mobs, right?

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
World Renderer is not going…
Sun, 06/16/2024 - 01:54

World Renderer is not going to support modifying vanilla entity and player models. Other plugins should be used.

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to set fog at…
Wed, 07/10/2024 - 04:29

Is there a way to set fog at a certain time of day? I'm hoping to set fog from dusk until dawn if possible. Also is it possible to have a skybox render from dusk to night? I'm trying to get a cool sunset but having no luck. Awesome plugin tbh.

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Star level can be used, but…
Wed, 07/10/2024 - 11:28

Star level can be used, but It needs calculation.

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Are you saying star level…
Wed, 07/10/2024 - 14:13

Are you saying star level can be used for the fog? Or just the dusk skybox?


Also, do you have a rough idea what that would be? I’ve followed your star, sun and moon tutorials but I’m not sure how to calculate the time scale. 

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Star Level is a value which…
Wed, 07/10/2024 - 14:21

Star Level is a value which is 0.0 during the day and 1.0 at night. It can also be used for RGBA values.

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I see, so theoretically I…
Wed, 07/10/2024 - 14:24

I see, so theoretically I should be able to put the color of the fog and then set the A to Get star level to have fog that only comes at night correct?