Skip to content

Instantly share code, notes, and snippets.

View bernie-g's full-sized avatar
💭
Check out geckolib.com!

Bernie G bernie-g

💭
Check out geckolib.com!
View GitHub Profile
@bernie-g
bernie-g / ReplacedTextureModel.java
Last active July 20, 2024 10:43
This replaces a texture in an IBakedModel by changing each BakedQuad's UV coordinates. You should use this by calling the constructor with your old model and your new TextureAtlasSprite.
/*
* Copyright (c) 2020.
* Author: Bernie G. (Gecko)
*/
package software.bernie.gist;
import net.minecraft.block.BlockState;
import net.minecraft.client.renderer.model.BakedQuad;
import net.minecraft.client.renderer.model.IBakedModel;
import net.minecraft.client.renderer.model.ItemOverrideList;
@bernie-g
bernie-g / GeckoLib CLA.txt
Created August 25, 2020 14:10
GeckoLib CLA
GECKOLIB INDIVIDUAL CONTRIBUTOR LICENSE AGREEMENT (CLA)
Adapted from http://www.apache.org/licenses/icla.txt © The Apache Software Foundation.
Thank you for your interest in GeckoLib (the "Organization"). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Organization must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of the Organization and its users; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future
Contributions submitted to the Organization. In return, the Organization shall not use Your Contributions in a way that is contrary to the public benefit or inconsistent with its bylaws in effect at the time of the Contribution. Except for the license gran
(function () {
Plugin.register("animation_utils", {
title: "Modded Entity Template",
icon: "movie_filter",
author: "Gecko",
description: "",
min_version: "3.5.2",
onload() {
Codecs.modded_entity.templates["1.15"] = {
name: "1.15",
[13:29:10] [Render thread/FATAL] [minecraft/Minecraft]: Reported exception thrown!
net.minecraft.crash.ReportedException: Rendering entity in world
at net.minecraft.client.renderer.entity.EntityRendererManager.renderEntityStatic(EntityRendererManager.java:274) ~[forge-1.15.2-31.1.49_mapped_snapshot_20200425-1.15.1-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.WorldRenderer.renderEntity(WorldRenderer.java:1116) ~[forge-1.15.2-31.1.49_mapped_snapshot_20200425-1.15.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.WorldRenderer.updateCameraAndRender(WorldRenderer.java:970) ~[forge-1.15.2-31.1.49_mapped_snapshot_20200425-1.15.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.renderer.GameRenderer.renderWorld(GameRenderer.java:612) ~[forge-1.15.2-31.1.49_mapped_snapshot_20200425-1.15.1-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
at net.mi