Jump to content

AFakeman

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by AFakeman

  1. What arguments are supplied to getIcon? By looking at BlockAnvil.class I found out that p_149691_1_ is which side of model we are painting, but what about _2_?
  2. The problem was solved by renaming betterAnvil folder to betteranvil.
  3. I have a block extending BlockAnvil. How do I assign custom textures (top and side)? I tried anvil = (new BlockAnvilBA()).setHardness(5.0F).setStepSound(Block.soundTypeAnvil).setResistance(2000.0F).setBlockName("super_anvil").setBlockTextureName("betterAnvil:anvil") Texture stayed the same. I guess .setBlockTextureName() is not working for custom shaped blocks. UPD: Well, apparently the thing is to define registerBlockIcons. But how do I specify correct texture? I have file in "src/main/resources/assets/betterAnvil/textures/blocks/anvil.png", but registerIcon("betterAnvil:anvil") can't find required texture.
  4. I have a project with lang files, and wheel launching project with Eclipse, translation appears. But when building mod (./gradlew build) lang files don't end up in jar. Why?
×
×
  • Create New...

Important Information

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