Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ public void render(@Nonnull PoseStack poseStack, @Nonnull MultiBufferSource buff
ResourceLocation resourcelocation;

if (elytra.stack().getItem() instanceof ArmorItem) {
return;
String itemId = Services.PLATFORM.getId(elytra.stack().getItem()).toString();

if (!itemId.equals("netherite_ext:netherite_elytra")) {
return;
}
}

if (livingEntity instanceof AbstractClientPlayer abstractclientplayer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ public boolean matches(ItemStack stack) {
}
}
}

if (isLoaded.test("netherite_ext")) {
ID_TO_TEXTURE.put("netherite_ext:netherite_elytra",
ResourceLocation.parse("netherite_ext:textures/entity/netherite_elytra.png"));
}
init = true;
}
return ID_TO_TEXTURE.containsKey(Services.PLATFORM.getId(stack.getItem()).toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@
{
"id": "crystalmod:sapphire_elytra",
"required": false
},
{
"id": "netherite_ext:netherite_elytra",
"required": false
}
]
}