The Meaning of Life, the Universe, and Everything.
Join Date:
1/5/2014
Posts:
93
Minecraft:
mariot7
Member Details
Hello!
I was searching on the internet how to add subnames to the block and I didn't find anything. So I want a help from you guys.
So I want to make this(Chisel adds it):
Only Items (including ItemBlocks) have lore by default. You can add this by overriding addInformation in your Item class and adding Strings to the List.
Chisel uses Waila's API to display this lore when you look at a block in the world.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add("A basic block");
}
How to make it work with blocks?
Create a class that extends ItemBlock and use GameRegistry.registerBlock(block, MyItemBlock.class, "block_name") to register the block.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Do you understand how inheritance in Java works? This tutorial explains it.
I've written up a fairly basic example of using a custom ItemBlock class that includes a tooltip here.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Use Block#setHardness, like you would for any other block.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I was searching on the internet how to add subnames to the block and I didn't find anything. So I want a help from you guys.
So I want to make this(Chisel adds it):
Thanks!!
*Scrambles out of room*
Chisel uses Waila's API to display this lore when you look at a block in the world.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
par3List.add("A basic block");
}
How to make it work with blocks?
Create a class that extends ItemBlock and use GameRegistry.registerBlock(block, MyItemBlock.class, "block_name") to register the block.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I wish I understand what are you saying
I've written up a fairly basic example of using a custom ItemBlock class that includes a tooltip here.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Use Block#setHardness, like you would for any other block.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Thanks for the help!