Jump to content

hiimjustin000

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by hiimjustin000

  1. I removed `fillItemGroup()` from the class of BedrockSwordItem and it doesn't do it anymore. Bruh.
  2. I don't even know!! That's why I'm asking!
  3. https://github.com/bokuwaboingo/BedrockArmor GitHub repo
  4. I'll be back after I watch some awards about a game I like (but less than minecraft)
  5. I'm only using the dev environment. It still happens. What code should I post, though? Here is my debug log. https://gist.github.com/hiimjustin000/8c55d020cf4d4544b19b1b386a9f6b6c
  6. No, not really. All I did was make an Item Group.
  7. Whenever I created a world, it would just be there.
  8. I was testing out my mod, it was successful, but I found something peculiar... Is there any advice on how to fix this? Is this a bug? Or something on my accord? Any help is appreciated.
  9. (Replied twice because first post needs to be deleted)
  10. public static class ShieldRenderer extends ItemStackTileEntityRenderer { private final ShieldModel modelShield = new ShieldModel(); public void render(ItemStack itemStackIn, MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int thign1, int thig) { boolean flag = itemStackIn.getChildTag("BlockEntityTag") != null; matrixStackIn.func_227860_a_(); matrixStackIn.func_227862_a_(1.0F, -1.0F, -1.0F); Material material = flag ? ModelBakery.field_229316_g_ : ModelBakery.field_229317_h_; IVertexBuilder ivertexbuilder = material.func_229314_c_().func_229230_a_(ItemRenderer.func_229113_a_(bufferIn, this.modelShield.func_228282_a_(material.func_229310_a_()), false, itemStackIn.hasEffect())); this.modelShield.func_228294_b_().func_228309_a_(matrixStackIn, ivertexbuilder, thign1, thig, 1.0F, 1.0F, 1.0F, 1.0F); if (flag) { List<Pair<BannerPattern, DyeColor>> list = BannerTileEntity.func_230138_a_(ShieldItem.getColor(itemStackIn), BannerTileEntity.func_230139_a_(itemStackIn)); BannerTileEntityRenderer.func_230180_a_(matrixStackIn, bufferIn, thign1, thig, this.modelShield.func_228293_a_(), material, false, list); } else { this.modelShield.func_228293_a_().func_228309_a_(matrixStackIn, ivertexbuilder, thign1, thig, 1.0F, 1.0F, 1.0F, 1.0F); } matrixStackIn.func_227865_b_(); } }
  11. No enclosing instance of the type ItemInit is accessible in scope
  12. () -> () -> ShieldRenderer::new "The target type of this expression must be a functional interface"
  13. Yeah, I'm keeping that there until I can find a way to render my custom item to display the vanilla shield texture.
  14. Ok... event.getRegistry().register(new UltimateShieldItem(new Item.Properties().group(AModIMadeItemGroup.instance).setISTER(() -> () -> ItemStackTileEntityRenderer.instance)).setRegistryName("ultimate_shield"));
  15. Wdym? The shield code or the code for adding the shield to the menu?
  16. Add a texture to it. The texture will be the vanilla shield texture.
  17. So I've been creating this mod for like a week and it's been delayed because I don't know how to render a shield. You can't use the excuse "Learn Java", because I have already. I just don't know how to render a shield.
×
×
  • Create New...

Important Information

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