Also, if you want to sync data with clients on the server, you can use ChunkWatchEvent.
public void onChunkWatch(ChunkWatchEvent.Watch e)
{
//send sync packet to e.getPlayer();
}
public void onChunkUnwatch(ChunkWatchEvent.UnWatch e)
{
//send desync packet to e.getPlayer();
}
Hello! How to render a white .OBJ model with specified RGB color?
TESR: https://pastebin.com/AgEhv513
I'm tried this, but It still not works:
Minecraft.getMinecraft().getBlockRendererDispatcher().getBlockModelRenderer().renderModel(
world,
getBakedModel(),
world.getBlockState(te.getPos()),
te.getPos(),
Tessellator.getInstance().getBuffer(),
true);
tessellator.getBuffer().color(0, 255, 0, 255);
tessellator.draw();
My Tile Entity is not correctly rendering on world load (should be rendered "EnderTeleportingStationModelF", instead "EnderTeleportingStationModel").
Block code:
Tile Entity code:
Model code:
Model 2 code:
Render code:
Model correctly render if "posY" variable changed in loaded game (ex. onItemUse).
___
Sorry for my bad English, I'm Russian.
2 replies
Important Information
By using this site, you agree to our Terms of Use.