Topic category: User side tutorials
World Renderer
World Renderer can render sky, models, shapes, etc. using procedures and event triggers.
Here are the guides.
- How to render custom overlays
- How to render shapes
- How to render the sun and the moon
- How to render a skybox
- How to make custom weather
- How to set up dimensions
- Render Effects
The plugin has many built-in procedure templates.
If necessary, you can also download and use additional templates from GitHub.
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 disable vanilla clouds by returning a logical true.
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 disable vanilla sky by returning a logical true.
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 disable vanilla weather by returning a logical true.
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 disable vanilla weather particles and sounds by returning a logical true.
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.
Neat!
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
Save positions to global variables, and render items with the variables. If there are multiple positions, use other plugins like Array Lists.
may just dont know how to use array list plugin, but it crashes if i try to render item with
Try to check whether an event trigger "Graphics - Render models" is used.
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?
MCreator can add model layers.
Yes but I want to use this vanilla mob and player. Mcreator does not allow adding layers to the player and vanilla mobs, right?
World Renderer is not going to support modifying vanilla entity and player models. Other plugins should be used.
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.
Star level can be used, but It needs calculation.
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.
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.
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?