Render.js
No reviews yet
Allow to use Kubejs customize the world rendering.
Provides a framework or library for other mods to use.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Runs entirely on the client. Works on vanilla servers.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Due to the simplicity of painter API, I have developed this mod that allows you to customize world rendering.
How to use
// Similar to the painter API, register a RenderObject before rendering.
ClientEvents.loggedIn(event => {
RenderObjectManager.register({
example_triangle: {
type: "triangles",
r: 128,
g: 255,
b: 29,
a: 150,
vertices: [
-0.120, 0.00, 0.001,
0.0000, 0.20, 0.001,
0.1200, 0.00, 0.001,
-0.064, 0.03, 0.000,
0.0000, 0.14, 0.000,
0.0640, 0.03, 0.000
],
options: {
blend: true,
depth_test: true,
cull: false,
billboard: "center"
}
}
})
})
// And then, you can render it on event.
RenderEntityEvents.afterRender(event => {
let h = event.getEntity().getBbHeight(); // entity's height
event.renderWithOffset("example_triangle", [0.0, h + 0.2, 0.0]); // render it with offset
});
// Now, you can see that each entity has a triangle on its head!
Currently supported events:
- After World Render Event:
RenderLevelEvents.afterSolidBlockRender(event => {
// do something
});
- After/Before Living Entity Render Event:
RenderEntityEvents.beforeRender(event => {
// do something
});
RenderEntityEvents.afterRender(event => {
// do something
});
You can give me suggestions in Githu Issues or the comment!
Due to the simplicity of painter API, I have developed this mod that allows you to customize world rendering.
How to use
// Similar to the painter API, register a RenderObject before rendering.
ClientEvents.loggedIn(event => {
RenderObjectManager.register({
example_triangle: {
type: "triangles",
r: 128,
g: 255,
b: 29,
a: 150,
vertices: [
-0.120, 0.00, 0.001,
0.0000, 0.20, 0.001,
0.1200, 0.00, 0.001,
-0.064, 0.03, 0.000,
0.0000, 0.14, 0.000,
0.0640, 0.03, 0.000
],
options: {
blend: true,
depth_test: true,
cull: false,
billboard: "center"
}
}
})
})
// And then, you can render it on event.
RenderEntityEvents.afterRender(event => {
let h = event.getEntity().getBbHeight(); // entity's height
event.renderWithOffset("example_triangle", [0.0, h + 0.2, 0.0]); // render it with offset
});
// Now, you can see that each entity has a triangle on its head!
Currently supported events:
- After World Render Event:
RenderLevelEvents.afterSolidBlockRender(event => {
// do something
});
- After/Before Living Entity Render Event:
RenderEntityEvents.beforeRender(event => {
// do something
});
RenderEntityEvents.afterRender(event => {
// do something
});
You can give me suggestions in Github Issues or the comment!
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources