-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix build script, fix shulker boxes, add shields #156
base: master
Are you sure you want to change the base?
Changes from all commits
a86b5d5
2a32b26
c8d531e
ae05252
6180053
e575803
1463175
629448b
e2f458b
fd0fec6
6fbe6df
d76d512
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,5 +1,5 @@ | ||||||||
plugins { | ||||||||
id 'org.quiltmc.loom' version "1.1.+" | ||||||||
id 'org.quiltmc.loom' version "1.4.+" | ||||||||
|
||||||||
id 'com.oroarmor.general-gradle-plugin' version '1.2.3' | ||||||||
id 'com.oroarmor.minecraft-gradle-plugin' version '1.2.3' | ||||||||
|
@@ -47,7 +47,7 @@ minecraftPublishing { | |||||||
curseforgeId = "394120" | ||||||||
dependencies { | ||||||||
"multi-item-lib" { | ||||||||
version = "1.6.2" | ||||||||
version = "1.6.3" | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
type = DependencyType.REQUIRED | ||||||||
} | ||||||||
} | ||||||||
|
@@ -71,8 +71,9 @@ dependencies { | |||||||
modImplementation "org.quiltmc:qsl:${project.qsl_version}" | ||||||||
modImplementation "org.quiltmc.quilted-fabric-api:quilted-fabric-api:${project.qfapi_version}" | ||||||||
|
||||||||
modImplementation "com.oroarmor:multi-item-lib:1.6.2" | ||||||||
modCompileOnly('com.github.CrimsonDawn45:Fabric-Shield-Lib:main-SNAPSHOT') | ||||||||
modImplementation "com.oroarmor:multi-item-lib:1.7.0" | ||||||||
|
||||||||
modCompileOnly("com.github.CrimsonDawn45:Fabric-Shield-Lib:1.7.2-1.20.2") | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this still being used? |
||||||||
modRuntimeOnly("com.terraformersmc:modmenu:7.2.1") | ||||||||
} | ||||||||
|
||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#Thu Jul 23 21:34:18 PDT 2020 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip | ||
zipStorePath=wrapper/dists |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,39 +24,29 @@ | |
|
||
package com.oroarmor.netherite_plus.client; | ||
|
||
import java.util.LinkedList; | ||
import java.util.Queue; | ||
|
||
import com.oroarmor.netherite_plus.NetheritePlusMod; | ||
import com.oroarmor.netherite_plus.block.NetheritePlusBlocks; | ||
import com.oroarmor.netherite_plus.client.render.NetheriteBeaconBlockEntityRenderer; | ||
import com.oroarmor.netherite_plus.client.render.NetheriteElytraFeatureRenderer; | ||
import com.oroarmor.netherite_plus.client.render.NetheritePlusBuiltinItemModelRenderer; | ||
import com.oroarmor.netherite_plus.client.render.NetheriteShulkerBoxBlockEntityRenderer; | ||
import com.oroarmor.netherite_plus.item.NetheritePlusItems; | ||
import com.oroarmor.netherite_plus.network.LavaVisionUpdatePacket; | ||
import com.oroarmor.netherite_plus.screen.NetheritePlusScreenHandlers; | ||
import net.fabricmc.fabric.api.client.rendering.v1.BlockEntityRendererRegistry; | ||
import net.fabricmc.fabric.api.client.rendering.v1.BuiltinItemRendererRegistry; | ||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.client.render.RenderLayer; | ||
import net.minecraft.resource.ResourceType; | ||
import org.quiltmc.loader.api.ModContainer; | ||
import org.quiltmc.qsl.base.api.entrypoint.client.ClientModInitializer; | ||
import org.quiltmc.qsl.block.extensions.api.client.BlockRenderLayerMap; | ||
import org.quiltmc.qsl.networking.api.client.ClientPlayConnectionEvents; | ||
import org.quiltmc.qsl.networking.api.client.ClientPlayNetworking; | ||
import org.quiltmc.qsl.resource.loader.api.ResourceLoader; | ||
|
||
import net.minecraft.client.MinecraftClient; | ||
import net.minecraft.client.render.RenderLayer; | ||
import net.minecraft.client.render.entity.EntityRendererFactory; | ||
import net.minecraft.client.render.entity.LivingEntityRenderer; | ||
import net.minecraft.client.render.entity.model.ArmorStandEntityModel; | ||
import net.minecraft.client.render.entity.model.BipedEntityModel; | ||
import net.minecraft.client.render.entity.model.PlayerEntityModel; | ||
import net.minecraft.entity.EntityType; | ||
import net.minecraft.entity.LivingEntity; | ||
import net.minecraft.resource.ResourceType; | ||
import java.util.LinkedList; | ||
import java.util.Queue; | ||
|
||
import net.fabricmc.fabric.api.client.rendering.v1.BlockEntityRendererRegistry; | ||
import net.fabricmc.fabric.api.client.rendering.v1.BuiltinItemRendererRegistry; | ||
import net.fabricmc.fabric.api.client.rendering.v1.LivingEntityFeatureRendererRegistrationCallback; | ||
import static com.oroarmor.netherite_plus.NetheritePlusMod.id; | ||
|
||
public class NetheritePlusClientMod implements ClientModInitializer { | ||
|
@@ -87,12 +77,6 @@ public void onInitializeClient(ModContainer mod) { | |
if (NetheritePlusMod.CONFIG.enabled.beacon.value()) { | ||
BlockRenderLayerMap.put(RenderLayer.getCutout(), NetheritePlusBlocks.NETHERITE_BEACON); | ||
} | ||
|
||
LivingEntityFeatureRendererRegistrationCallback.EVENT.register(((EntityType<? extends LivingEntity> entityType, LivingEntityRenderer<?, ?> entityRenderer, LivingEntityFeatureRendererRegistrationCallback.RegistrationHelper registrationHelper, EntityRendererFactory.Context context) -> { | ||
if (entityRenderer.getModel() instanceof PlayerEntityModel || entityRenderer.getModel() instanceof BipedEntityModel || entityRenderer.getModel() instanceof ArmorStandEntityModel) { | ||
registrationHelper.register(new NetheriteElytraFeatureRenderer<>(entityRenderer, context.getModelLoader())); | ||
} | ||
})); | ||
Comment on lines
-90
to
-95
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah thanks for getting rid of this, it was pretty hacky |
||
} | ||
|
||
public static void registerBuiltinItemRenderers(MinecraftClient client) { | ||
|
@@ -122,10 +106,10 @@ public static void registerBuiltinItemRenderers(MinecraftClient client) { | |
} | ||
|
||
if (NetheritePlusMod.CONFIG.enabled.shields.value()) { | ||
// BuiltinItemRendererRegistry.INSTANCE.register(NetheritePlusItems.NETHERITE_SHIELD, dynamicItemRenderer); | ||
BuiltinItemRendererRegistry.INSTANCE.register(NetheritePlusItems.NETHERITE_SHIELD, dynamicItemRenderer); | ||
} | ||
if (NetheritePlusMod.CONFIG.enabled.trident.value()) { | ||
BuiltinItemRendererRegistry.INSTANCE.register(NetheritePlusItems.NETHERITE_TRIDENT, dynamicItemRenderer); | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.