Skip to content

Commit 704c788

Browse files
committed
Replaced Most Vanilla-Reliant Textures
1 parent 9d769a8 commit 704c788

File tree

12 files changed

+69
-8
lines changed

12 files changed

+69
-8
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apply plugin: 'org.spongepowered.mixin'
1717
apply plugin: 'org.parchmentmc.librarian.forgegradle'
1818
apply plugin: 'maven-publish'
1919

20-
version = '1.0.5'
20+
version = '1.0.6'
2121
group = 'io.redspace.ironsspellbooks'
2222
archivesBaseName = 'irons_spellbooks'
2323

src/main/java/io/redspace/ironsspellbooks/entity/mobs/raise_dead_summons/SummonedSkeletonModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

1313
public static final ResourceLocation MODEL = new ResourceLocation(IronsSpellbooks.MODID, "geo/skeleton_mob.geo.json");
1414
public static final ResourceLocation ANIMATIONS = new ResourceLocation(IronsSpellbooks.MODID, "animations/casting_animations.json");

src/main/java/io/redspace/ironsspellbooks/entity/mobs/raise_dead_summons/SummonedSkeletonMultiRenderer.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,29 @@
22

33
import com.mojang.blaze3d.vertex.PoseStack;
44
import com.mojang.blaze3d.vertex.VertexConsumer;
5+
import io.redspace.ironsspellbooks.IronsSpellbooks;
56
import io.redspace.ironsspellbooks.entity.mobs.SummonedSkeleton;
67
import io.redspace.ironsspellbooks.entity.mobs.abstract_spell_casting_mob.GeoHumanoidRenderer;
78
import net.minecraft.client.renderer.MultiBufferSource;
89
import net.minecraft.client.renderer.RenderType;
910
import net.minecraft.client.renderer.entity.EntityRendererProvider;
1011
import net.minecraft.client.renderer.entity.SkeletonRenderer;
1112
import net.minecraft.resources.ResourceLocation;
13+
import net.minecraft.world.entity.monster.AbstractSkeleton;
1214
import org.jetbrains.annotations.Nullable;
1315

1416
public class SummonedSkeletonMultiRenderer extends GeoHumanoidRenderer<SummonedSkeleton> {
1517
SkeletonRenderer vanillaRenderer;
18+
public static final ResourceLocation TEXTURE_ALT = new ResourceLocation(IronsSpellbooks.MODID, "textures/entity/summoned_skeleton_alt.png");
19+
1620
public SummonedSkeletonMultiRenderer(EntityRendererProvider.Context pContext) {
1721
super(pContext, new SummonedSkeletonModel());
18-
vanillaRenderer = new SkeletonRenderer(pContext);
22+
vanillaRenderer = new SkeletonRenderer(pContext) {
23+
@Override
24+
public ResourceLocation getTextureLocation(AbstractSkeleton pEntity) {
25+
return TEXTURE_ALT;
26+
}
27+
};
1928
}
2029

2130
@Override

src/main/java/io/redspace/ironsspellbooks/entity/mobs/raise_dead_summons/SummonedZombieMultiRenderer.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@
66
import net.minecraft.client.renderer.MultiBufferSource;
77
import net.minecraft.client.renderer.entity.EntityRendererProvider;
88
import net.minecraft.client.renderer.entity.ZombieRenderer;
9+
import net.minecraft.resources.ResourceLocation;
10+
import net.minecraft.world.entity.monster.Zombie;
911

1012
public class SummonedZombieMultiRenderer extends GeoHumanoidRenderer<SummonedZombie> {
1113
ZombieRenderer vanillaRenderer;
1214
public SummonedZombieMultiRenderer(EntityRendererProvider.Context pContext) {
1315
super(pContext, new SummonedZombieModel());
14-
vanillaRenderer = new ZombieRenderer(pContext);
16+
vanillaRenderer = new ZombieRenderer(pContext) {
17+
@Override
18+
public ResourceLocation getTextureLocation(Zombie pEntity) {
19+
return SummonedZombieModel.TEXTURE;
20+
}
21+
};
1522
}
1623

1724
@Override

src/main/java/io/redspace/ironsspellbooks/entity/mobs/wizards/archevoker/ArchevokerModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import net.minecraft.resources.ResourceLocation;
77

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

1212
@Override

src/main/resources/assets/irons_spellbooks/models/block/blood_cauldron_full.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"parent": "minecraft:block/template_cauldron_full",
33
"textures": {
4-
"content": "minecraft:block/redstone_block",
4+
"content": "irons_spellbooks:block/blood",
55
"inside": "minecraft:block/cauldron_inner",
66
"particle": "minecraft:block/cauldron_side",
77
"top": "minecraft:block/cauldron_top",

src/main/resources/assets/irons_spellbooks/models/block/blood_cauldron_level1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"parent": "minecraft:block/template_cauldron_level1",
33
"textures": {
4-
"content": "minecraft:block/redstone_block",
4+
"content": "irons_spellbooks:block/blood",
55
"inside": "minecraft:block/cauldron_inner",
66
"particle": "minecraft:block/cauldron_side",
77
"top": "minecraft:block/cauldron_top",

src/main/resources/assets/irons_spellbooks/models/block/blood_cauldron_level2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"parent": "minecraft:block/template_cauldron_level2",
33
"textures": {
4-
"content": "minecraft:block/redstone_block",
4+
"content": "irons_spellbooks:block/blood",
55
"inside": "minecraft:block/cauldron_inner",
66
"particle": "minecraft:block/cauldron_side",
77
"top": "minecraft:block/cauldron_top",
Loading
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"animation": {
3+
"frametime": 3,
4+
"frames": [
5+
0,
6+
1,
7+
2,
8+
3,
9+
4,
10+
5,
11+
6,
12+
7,
13+
8,
14+
9,
15+
10,
16+
11,
17+
12,
18+
13,
19+
14,
20+
15,
21+
16,
22+
17,
23+
18,
24+
19,
25+
18,
26+
17,
27+
16,
28+
15,
29+
14,
30+
13,
31+
12,
32+
11,
33+
10,
34+
9,
35+
8,
36+
7,
37+
6,
38+
5,
39+
4,
40+
3,
41+
2,
42+
1
43+
]
44+
}
45+
}
Loading
Loading

0 commit comments

Comments
 (0)