Skip to content

Commit

Permalink
Will start now textures broken
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarWind22 committed Nov 30, 2023
1 parent 0154359 commit df87bd3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 27 deletions.
25 changes: 0 additions & 25 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
buildscript {
dependencies {
classpath "de.guntram.mcmod:crowdin-translate:${project.crowdlin_version}"
}
repositories {
maven {
name = 'CrowdinTranslate source'
url = "https://minecraft.guntram.de/maven/"
}
}
}

plugins {
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'maven-publish'
Expand All @@ -22,11 +10,6 @@ archivesBaseName = project.archives_base_name
version = project.mod_version + "-${project.minecraft_version}"
group = project.maven_group

apply plugin: 'de.guntram.mcmod.crowdin-translate'
crowdintranslate.crowdinProjectName = 'basic-shields'
crowdintranslate.minecraftProjectName = "basicshields"
crowdintranslate.verbose = false

repositories {
maven {url = "https://minecraft.guntram.de/maven/"}
maven { url = "https://jitpack.io" }
Expand Down Expand Up @@ -54,10 +37,6 @@ dependencies {
modCompileOnly modRuntimeOnly ("com.terraformersmc:modmenu:${project.mod_menu_version}"), {
exclude(group: "net.fabricmc.fabric-api")
}

//Crowdlin
modImplementation "de.guntram.mcmod:crowdin-translate:${project.crowdlin_version}"
include "de.guntram.mcmod:crowdin-translate:${project.crowdlin_version}"
}

processResources {
Expand Down Expand Up @@ -96,8 +75,4 @@ publishing {

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {}
}

build {
dependsOn downloadTranslations
}
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ archives_base_name = BasicShields
fabric_version=0.89.2+1.20.2
fabric_shield_lib_version=1.7.1-1.20.2
cloth_version=8.2.88
mod_menu_version=7.1.0
crowdlin_version=1.4+1.19
mod_menu_version=7.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import com.github.crimsondawn45.basicshields.initializers.BasicShields;
import com.github.crimsondawn45.fabricshieldlib.initializers.FabricShieldLibClient;
import com.github.crimsondawn45.fabricshieldlib.lib.event.ShieldSetModelCallback;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
Expand All @@ -18,6 +19,7 @@
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResult;
import net.minecraft.util.Identifier;

public class ModShieldItem extends ModItem {
Expand Down Expand Up @@ -156,6 +158,12 @@ public ShieldEntityModel getShieldEntityModel() {
@Environment(EnvType.CLIENT)
public void RegisterModelLayer(){
EntityModelLayerRegistry.registerModelLayer(this.getEntityModelLayer(), ShieldEntityModel::getTexturedModelData);

//Set model
ShieldSetModelCallback.EVENT.register((loader) -> {
this.shieldEntityModel = new ShieldEntityModel(loader.getModelPart(this.getEntityModelLayer()));
return ActionResult.PASS;
});
}

/**
Expand Down

0 comments on commit df87bd3

Please sign in to comment.