Skip to content

Commit

Permalink
Replaced Most Vanilla-Reliant Textures
Browse files Browse the repository at this point in the history
  • Loading branch information
iron431 committed May 3, 2023
1 parent 9d769a8 commit 704c788
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ apply plugin: 'org.spongepowered.mixin'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
apply plugin: 'maven-publish'

version = '1.0.5'
version = '1.0.6'
group = 'io.redspace.ironsspellbooks'
archivesBaseName = 'irons_spellbooks'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class SummonedSkeletonModel extends AnimatedGeoModel<SummonedSkeleton> {
//public static final ResourceLocation TEXTURE = new ResourceLocation("textures/entity/skeleton/skeleton.png");
private static final ResourceLocation TEXTURE = new ResourceLocation(IronsSpellbooks.MODID, "textures/entity/summoned_skeleton.png");
public static final ResourceLocation TEXTURE = new ResourceLocation(IronsSpellbooks.MODID, "textures/entity/summoned_skeleton.png");

public static final ResourceLocation MODEL = new ResourceLocation(IronsSpellbooks.MODID, "geo/skeleton_mob.geo.json");
public static final ResourceLocation ANIMATIONS = new ResourceLocation(IronsSpellbooks.MODID, "animations/casting_animations.json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,29 @@

import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import io.redspace.ironsspellbooks.IronsSpellbooks;
import io.redspace.ironsspellbooks.entity.mobs.SummonedSkeleton;
import io.redspace.ironsspellbooks.entity.mobs.abstract_spell_casting_mob.GeoHumanoidRenderer;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.entity.SkeletonRenderer;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.monster.AbstractSkeleton;
import org.jetbrains.annotations.Nullable;

public class SummonedSkeletonMultiRenderer extends GeoHumanoidRenderer<SummonedSkeleton> {
SkeletonRenderer vanillaRenderer;
public static final ResourceLocation TEXTURE_ALT = new ResourceLocation(IronsSpellbooks.MODID, "textures/entity/summoned_skeleton_alt.png");

public SummonedSkeletonMultiRenderer(EntityRendererProvider.Context pContext) {
super(pContext, new SummonedSkeletonModel());
vanillaRenderer = new SkeletonRenderer(pContext);
vanillaRenderer = new SkeletonRenderer(pContext) {
@Override
public ResourceLocation getTextureLocation(AbstractSkeleton pEntity) {
return TEXTURE_ALT;
}
};
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.client.renderer.entity.ZombieRenderer;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.monster.Zombie;

public class SummonedZombieMultiRenderer extends GeoHumanoidRenderer<SummonedZombie> {
ZombieRenderer vanillaRenderer;
public SummonedZombieMultiRenderer(EntityRendererProvider.Context pContext) {
super(pContext, new SummonedZombieModel());
vanillaRenderer = new ZombieRenderer(pContext);
vanillaRenderer = new ZombieRenderer(pContext) {
@Override
public ResourceLocation getTextureLocation(Zombie pEntity) {
return SummonedZombieModel.TEXTURE;
}
};
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import net.minecraft.resources.ResourceLocation;

public class ArchevokerModel extends AbstractSpellCastingMobModel {
public static final ResourceLocation TEXTURE = new ResourceLocation("textures/entity/illager/evoker.png");
public static final ResourceLocation TEXTURE = new ResourceLocation(IronsSpellbooks.MODID,"textures/entity/archevoker.png");
public static final ResourceLocation MODEL = new ResourceLocation(IronsSpellbooks.MODID, "geo/archevoker.geo.json");

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parent": "minecraft:block/template_cauldron_full",
"textures": {
"content": "minecraft:block/redstone_block",
"content": "irons_spellbooks:block/blood",
"inside": "minecraft:block/cauldron_inner",
"particle": "minecraft:block/cauldron_side",
"top": "minecraft:block/cauldron_top",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parent": "minecraft:block/template_cauldron_level1",
"textures": {
"content": "minecraft:block/redstone_block",
"content": "irons_spellbooks:block/blood",
"inside": "minecraft:block/cauldron_inner",
"particle": "minecraft:block/cauldron_side",
"top": "minecraft:block/cauldron_top",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"parent": "minecraft:block/template_cauldron_level2",
"textures": {
"content": "minecraft:block/redstone_block",
"content": "irons_spellbooks:block/blood",
"inside": "minecraft:block/cauldron_inner",
"particle": "minecraft:block/cauldron_side",
"top": "minecraft:block/cauldron_top",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"animation": {
"frametime": 3,
"frames": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
18,
17,
16,
15,
14,
13,
12,
11,
10,
9,
8,
7,
6,
5,
4,
3,
2,
1
]
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 704c788

Please sign in to comment.