Skip to content

Commit

Permalink
Fix missing blook entity texture, Closes #1030
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 16, 2024
1 parent c589b47 commit 1afc2a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
import net.minecraft.client.model.geom.ModelLayers;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.Sheets;
import net.minecraft.client.renderer.blockentity.BlockEntityRenderer;
import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider;
import net.minecraft.client.renderer.blockentity.EnchantTableRenderer;
import net.minecraft.client.renderer.texture.OverlayTexture;
import net.minecraft.client.renderer.texture.TextureAtlas;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.resources.model.Material;
import net.minecraft.core.Direction;
Expand Down Expand Up @@ -41,7 +41,7 @@
*/
public class RenderBlockEntityPurifier implements BlockEntityRenderer<BlockEntityPurifier> {

public static final Material TEXTURE_BLOOK = new Material(TextureAtlas.LOCATION_BLOCKS, new ResourceLocation(Reference.MOD_ID, "entity/blook"));
public static final Material TEXTURE_BLOOK = new Material(Sheets.CHEST_SHEET, new ResourceLocation(Reference.MOD_ID, "entity/blook"));
private final BookModel enchantmentBook;

public RenderBlockEntityPurifier(BlockEntityRendererProvider.Context context) {
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/assets/minecraft/atlases/chests.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
{
"type": "minecraft:single",
"resource": "evilcraft:model/colossal_blood_chest"
},
{
"type": "minecraft:single",
"resource": "evilcraft:entity/blook"
}
]
}

0 comments on commit 1afc2a2

Please sign in to comment.