Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Grookey

Members
  • Posts

    42
  • Joined

Recent Profile Visitors

512 profile views

Grookey's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. package com.manueh.winxclubreborn.common.armor; import com.manueh.winxclubreborn.Client.ClientEvents; import com.manueh.winxclubreborn.Client.ClientRenderer; import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.blaze3d.vertex.VertexConsumer; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.screens.Screen; import net.minecraft.client.model.*; import net.minecraft.client.model.geom.ModelPart; import net.minecraft.client.model.geom.PartPose; import net.minecraft.client.model.geom.builders.*; import net.minecraft.network.chat.Component; import net.minecraft.network.chat.TranslatableComponent; import net.minecraft.sounds.SoundEvent; import net.minecraft.sounds.SoundEvents; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.EquipmentSlot; import net.minecraft.world.entity.LivingEntity; import net.minecraft.world.item.*; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.DispenserBlock; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.client.IItemRenderProperties; import net.minecraftforge.client.model.generators.ModelBuilder; import net.minecraftforge.fml.common.Mod; import javax.annotation.Nullable; import java.util.List; public class WingsItem extends ArmorItem { public WingsItem(ArmorMaterial p_40386_, EquipmentSlot p_40387_, Item.Properties p_40388_) { super(p_40386_, p_40387_, p_40388_); DispenserBlock.registerBehavior(this, ArmorItem.DISPENSE_ITEM_BEHAVIOR); } @Nullable public SoundEvent getEquipSound() { return SoundEvents.ARMOR_EQUIP_ELYTRA; } @Override public void appendHoverText(ItemStack stack, @Nullable Level level, List<Component> tooltip, TooltipFlag flag) { super.appendHoverText(stack, level, tooltip, flag); Minecraft mc = Minecraft.getInstance(); if (level == null || mc.player == null) { return; } boolean sneakPressed = Screen.hasShiftDown(); if(sneakPressed) { tooltip.add(new TranslatableComponent("tooltip.winxclubreborn.wings", ClientEvents.keyFly.getKey().getDisplayName())); }else { tooltip.add(new TranslatableComponent("tooltip.winxclubreborn.hold_shift")); } } @Override public void initializeClient(java.util.function.Consumer<net.minecraftforge.client.IItemRenderProperties> consumer) { consumer.accept(new IItemRenderProperties() { @Override public <A extends HumanoidModel<?>> A getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot armorSlot, A _default) { if(armorSlot == EquipmentSlot.CHEST) { return (A) new WingsModel(); } return null; } }); } @Override public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlot slot, String type) { return "winxclubreborn:textures/models/armor/wings_layer_" + (slot == EquipmentSlot.LEGS ? "2" : "1") + ".png"; } public class WingsModel extends EntityModel<Entity> { private final ModelPart rightWing_r1; private final ModelPart leftWing_r1; public WingsModel() { rightWing_r1 = createLayer().bakeRoot().getChild("right_wing"); leftWing_r1 = createLayer().bakeRoot().getChild("left_wing"); } public static LayerDefinition createLayer() { MeshDefinition meshdefinition = new MeshDefinition(); PartDefinition partdefinition = meshdefinition.getRoot(); CubeDeformation cubedeformation = new CubeDeformation(1.0F); partdefinition.addOrReplaceChild("left_wing", CubeListBuilder.create().texOffs(2, 0).addBox(-8.0F, -6.0F, 0.0F, 8.0F, 12.0F, 0.0F, cubedeformation), PartPose.offsetAndRotation(0.0F, 6.0F, 2.0F, 0.0F, 2.3562F, 0.0F)); partdefinition.addOrReplaceChild("right_wing", CubeListBuilder.create().texOffs(2, 0).mirror().addBox(-8.0F, -6.0F, 0.0F, 8.0F, 12.0F, 0.0F, cubedeformation), PartPose.offsetAndRotation(0.0F, 6.0F, 2.0F, 0.0F, 0.7854F, 0.0F)); return LayerDefinition.create(meshdefinition, 64, 32); } @Override public void renderToBuffer(PoseStack p_103111_, VertexConsumer p_103112_, int p_103113_, int p_103114_, float p_103115_, float p_103116_, float p_103117_, float p_103118_) { } @Override public void setupAnim(Entity p_102618_, float p_102619_, float p_102620_, float p_102621_, float p_102622_, float p_102623_) { } } } ---- Minecraft Crash Report ---- // I bet Cylons wouldn't have this problem. Time: 30/8/21 18:09 Description: Rendering entity in world java.util.NoSuchElementException: Can't find part head at net.minecraft.client.model.geom.ModelPart.getChild(ModelPart.java:60) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.model.HumanoidModel.<init>(HumanoidModel.java:46) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.model.HumanoidModel.<init>(HumanoidModel.java:41) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at com.manueh.winxclubreborn.common.armor.WingsItem$WingsModel.<init>(WingsItem.java:89) ~[%2378!:?] {re:classloading} at com.manueh.winxclubreborn.common.armor.WingsItem$1.getArmorModel(WingsItem.java:71) ~[%2378!:?] {re:classloading} at net.minecraftforge.client.ForgeHooksClient.getArmorModel(ForgeHooksClient.java:210) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2373%2379!:?] {re:classloading} at net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer.getArmorModelHook(HumanoidArmorLayer.java:119) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer.renderArmorPiece(HumanoidArmorLayer.java:47) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer.render(HumanoidArmorLayer.java:36) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer.render(HumanoidArmorLayer.java:23) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.LivingEntityRenderer.render(LivingEntityRenderer.java:126) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.player.PlayerRenderer.render(PlayerRenderer.java:62) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.player.PlayerRenderer.render(PlayerRenderer.java:43) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.EntityRenderDispatcher.render(EntityRenderDispatcher.java:129) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.InventoryScreen.lambda$renderEntityInInventory$1(InventoryScreen.java:133) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at com.mojang.blaze3d.systems.RenderSystem.runAsFancy(RenderSystem.java:710) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.InventoryScreen.renderEntityInInventory(InventoryScreen.java:132) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.renderBg(CreativeModeInventoryScreen.java:737) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.render(AbstractContainerScreen.java:93) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen.render(EffectRenderingInventoryScreen.java:47) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.render(CreativeModeInventoryScreen.java:616) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:307) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2373%2379!:?] {re:classloading} at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:885) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.runTick(Minecraft.java:1040) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:660) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:186) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?] {} at net.minecraftforge.fml.loading.targets.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:38) ~[fmlloader-1.17.1-37.0.42.jar%233!:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace: at net.minecraft.client.model.geom.ModelPart.getChild(ModelPart.java:60) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.model.HumanoidModel.<init>(HumanoidModel.java:46) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.model.HumanoidModel.<init>(HumanoidModel.java:41) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at com.manueh.winxclubreborn.common.armor.WingsItem$WingsModel.<init>(WingsItem.java:89) ~[%2378!:?] {re:classloading} at com.manueh.winxclubreborn.common.armor.WingsItem$1.getArmorModel(WingsItem.java:71) ~[%2378!:?] {re:classloading} at net.minecraftforge.client.ForgeHooksClient.getArmorModel(ForgeHooksClient.java:210) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2373%2379!:?] {re:classloading} at net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer.getArmorModelHook(HumanoidArmorLayer.java:119) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer.renderArmorPiece(HumanoidArmorLayer.java:47) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer.render(HumanoidArmorLayer.java:36) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.layers.HumanoidArmorLayer.render(HumanoidArmorLayer.java:23) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.LivingEntityRenderer.render(LivingEntityRenderer.java:126) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.player.PlayerRenderer.render(PlayerRenderer.java:62) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.player.PlayerRenderer.render(PlayerRenderer.java:43) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} -- Entity being rendered -- Details: Entity Type: minecraft:player (net.minecraft.client.player.LocalPlayer) Entity ID: 642 Entity Name: Dev Entity's Exact location: 207.40, 63.00, 157.98 Entity's Block location: World: (207,63,157), Section: (at 15,15,13 in 12,3,9; chunk contains blocks 192,0,144 to 207,255,159), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Entity's Momentum: 0.00, -0.08, 0.00 Entity's Passengers: [] Entity's Vehicle: null -- Renderer details -- Details: Assigned renderer: net.minecraft.client.renderer.entity.player.PlayerRenderer@7e93497d Location: 0.00,0.00,0.00 - World: (0,0,0), Section: (at 0,0,0 in 0,0,0; chunk contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Rotation: 0.0 Delta: 1.0 Stacktrace: at net.minecraft.client.renderer.entity.EntityRenderDispatcher.render(EntityRenderDispatcher.java:129) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.InventoryScreen.lambda$renderEntityInInventory$1(InventoryScreen.java:133) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at com.mojang.blaze3d.systems.RenderSystem.runAsFancy(RenderSystem.java:710) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.InventoryScreen.renderEntityInInventory(InventoryScreen.java:132) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.renderBg(CreativeModeInventoryScreen.java:737) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.AbstractContainerScreen.render(AbstractContainerScreen.java:93) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen.render(EffectRenderingInventoryScreen.java:47) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen.render(CreativeModeInventoryScreen.java:616) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:307) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2373%2379!:?] {re:classloading} -- Screen render details -- Details: Screen name: net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen Mouse location: Scaled: (198, 100). Absolute: (794.000000, 399.000000) Screen size: Scaled: (480, 255). Absolute: (1920, 1017). Scale factor of 4.000000 -- Affected level -- Details: All players: 1 total; [LocalPlayer['Dev'/642, l='ClientLevel', x=207.40, y=63.00, z=157.98]] Chunk stats: 841, 556 Level dimension: minecraft:overworld Level spawn location: World: (32,63,18), Section: (at 0,15,2 in 2,3,1; chunk contains blocks 32,0,16 to 47,255,31), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 11834 game time, 11834 day time Server brand: forge Server type: Integrated singleplayer server Stacktrace: at net.minecraft.client.multiplayer.ClientLevel.fillReportDetails(ClientLevel.java:364) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.fillReport(Minecraft.java:2245) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:677) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:186) ~[forge-1.17.1-37.0.42_mapped_official_1.17.1-recomp.jar%2374!:?] {re:classloading,pl:runtimedistcleaner:A} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:567) ~[?:?] {} at net.minecraftforge.fml.loading.targets.ForgeClientUserdevLaunchHandler.lambda$launchService$0(ForgeClientUserdevLaunchHandler.java:38) ~[fmlloader-1.17.1-37.0.42.jar%233!:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.0.7.jar%238!:?] {} at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:90) [bootstraplauncher-0.1.17.jar:?] {}
  2. is there any way of change the model of the armor??
  3. Yes i used blockbench, when I mirror the model the textures get flipped. It should be like this. but it looks like this So my question is how i can fix it?
  4. on the left hand the model faces are flipped is there any way to put it normal? { "credit": "Made with Blockbench by Manueh", "texture_size": [64, 64], "textures": { "0": "marvel_themod:items/infinity_gauntlet", "particle": "marvel_themod:items/infinity_gauntlet" }, "elements": [ { "from": [2, 0, 2], "to": [14, 7, 14], "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [0, 0, 6, 3.5], "texture": "#0"}, "east": {"uv": [0, 0, 6, 3.5], "texture": "#0"}, "south": {"uv": [0, 0, 6, 3.5], "texture": "#0"}, "west": {"uv": [0, 0, 6, 3.5], "texture": "#0"}, "up": {"uv": [0, 0, 6, 3.5], "texture": "#0"}, "down": {"uv": [0, 0, 6, 6], "texture": "#0"} } }, { "from": [16, 10, 6], "to": [25, 14, 10], "rotation": {"angle": 22.5, "axis": "z", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [7.75, 10.25, 12.25, 12.25], "texture": "#0"}, "east": {"uv": [0, 13.5, 4.5, 15.5], "texture": "#0"}, "south": {"uv": [0, 13.5, 4.5, 15.5], "texture": "#0"}, "west": {"uv": [0, 13.5, 4.5, 15.5], "texture": "#0"}, "up": {"uv": [0, 13.5, 4.5, 15.5], "texture": "#0"}, "down": {"uv": [0, 13.5, 4.5, 15.5], "texture": "#0"} } }, { "from": [5.2, 23, 6], "to": [7.7, 31, 10], "rotation": {"angle": 0, "axis": "z", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "east": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "south": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "west": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "up": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "down": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"} } }, { "from": [2, 23, 6], "to": [4.5, 31, 10], "rotation": {"angle": 0, "axis": "z", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "east": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "south": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "west": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "up": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "down": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"} } }, { "from": [8.25, 23, 6], "to": [10.75, 31, 10], "rotation": {"angle": 0, "axis": "z", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "east": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "south": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "west": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "up": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "down": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"} } }, { "from": [11.5, 23, 6], "to": [14, 31, 10], "rotation": {"angle": 0, "axis": "z", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "east": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "south": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "west": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "up": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"}, "down": {"uv": [11.25, 14, 15.75, 15.75], "rotation": 270, "texture": "#0"} } }, { "from": [2.5, 7, 3.5], "to": [13.5, 13, 12.5], "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [6, 0, 11.5, 3], "texture": "#0"}, "east": {"uv": [6, 0, 10.5, 3], "texture": "#0"}, "south": {"uv": [6, 0, 11.5, 3], "texture": "#0"}, "west": {"uv": [6, 0, 10.5, 3], "texture": "#0"}, "up": {"uv": [0, 3.5, 5.5, 8], "texture": "#0"}, "down": {"uv": [0, 0, 5.5, 4.5], "texture": "#0"} } }, { "from": [2, 13, 5], "to": [14, 23, 11], "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [9, 4.75, 15, 9.75], "texture": "#0"}, "east": {"uv": [0, 8.5, 6, 13.5], "texture": "#0"}, "south": {"uv": [0, 8.5, 6, 13.5], "texture": "#0"}, "west": {"uv": [0, 8.5, 6, 13.5], "texture": "#0"}, "up": {"uv": [0, 8.5, 6, 13.5], "texture": "#0"}, "down": {"uv": [0, 8.5, 6, 13.5], "texture": "#0"} } } ], "display": { "thirdperson_righthand": { "rotation": [-90, -90, 0], "translation": [0, -2, -0.75], "scale": [0.4, 0.4, 0.4] }, "thirdperson_lefthand": { "rotation": [-90, -90, 0], "translation": [0, -2, -0.5], "scale": [-0.4, 0.4, 0.4] }, "firstperson_righthand": { "rotation": [-50, -150, 0], "translation": [2.75, 0, -3.5], "scale": [0.4, 0.4, 0.4] }, "firstperson_lefthand": { "rotation": [-50, 30, 0], "translation": [2.75, 0, -3.5], "scale": [0.4, 0.4, -0.4] }, "ground": { "translation": [0, 4.5, 0], "scale": [0.4, 0.4, 0.4] }, "gui": { "translation": [0, -3.75, 0], "rotation": [0, 180, 0], "scale": [0.49, 0.49, 0.49] }, "head": { "translation": [0, 12.75, 0], "scale": [1.3125, 1.3125, 1.3125] }, "fixed": { "translation": [0, -4.25, 0], "scale": [0.6, 0.6, 0.6] } } }
  5. Is there any way to block a Item of being used in the LeftHand?
  6. To use the max and min height you need to change the VerticalAnchor you have set VerticalAnchor.aboveBottom and VerticalAnchor.belowTop, if you change it to VerticalAnchor.absolute it should work public class OreGeneration { public OreGeneration() { } public static void generateOres(final BiomeLoadingEvent event) { if (!event.getCategory().equals(Biome.BiomeCategory.NETHER) && !event.getCategory().equals(Biome.BiomeCategory.THEEND)) { exampleOreGenerate(event.getGeneration(), Predicates.NATURAL_STONE, ((Block) ExampleBlocks.EXAMPLE_ORE.get()).defaultBlockState(), (Integer) ExampleConfig.EXAMPLE_ORE_SIZE.get(), (Integer) ExampleConfig.EXAMPLE_ORE_MIN_HEIGHT.get(), (Integer) ExampleConfig.EXAMPLE_ORE_MAX_HEIGHT.get(), (Integer) ExampleConfig.EXAMPLE_ORE_AMOUNT.get()); } } private static void exampleOreGenerate(BiomeGenerationSettingsBuilder settings, RuleTest fillerType, BlockState state, int veinSize, int minHeight, int maxHeight, int amount) { settings.addFeature(Decoration.UNDERGROUND_ORES, (ConfiguredFeature)((ConfiguredFeature)((ConfiguredFeature) Feature.ORE.configured(new OreConfiguration(fillerType, state, veinSize)).rangeUniform(VerticalAnchor.absolute(minHeight), VerticalAnchor.absolute(maxHeight))).squared()).count(amount)); } }
  7. When on playing on server the falling damage doesnt dissapear with PlayerTickEvent event.player.fallDistance = 0; repo: https://github.com/Manueh333/WinxClub-Reborn/tree/main/src/main/java/com/manueh/winxclubreborn
  8. I tried to see the code of the model of Elytra and I get a way to create a custom model for the armor but I didnt know how to register anyone can help pls? repo: https://github.com/Manueh333/WinxClub-Reborn/tree/main/src/main/java/com/manueh/winxclubreborn Item: https://github.com/Manueh333/WinxClub-Reborn/blob/main/src/main/java/com/manueh/winxclubreborn/common/armor/WingsItem.java layer: https://github.com/Manueh333/WinxClub-Reborn/blob/main/src/main/java/com/manueh/winxclubreborn/common/armor/WingsLayer.java
  9. Is there any form of change the model of a custom armor?
  10. Add API mod to build gradle but it isn't appear when I open the game code: https://github.com/Manueh333/WinxClub-Reborn
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.