Jump to content

Retexturing BlockAnvil


AFakeman

Recommended Posts

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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