How can I make lots of blocks with only 1 ID?
Make blocks, and add damage values, just like Wool, and dyes.
Risugami's Shelf Mod has 4 Blocks, but all with the same ID, but different damage values.
How can I add damage values to my blocks?
Thank You!
Rollback Post to RevisionRollBack
Instant Blocks Mod - 17 new blocks that generate structures upon right-click. Includes: Farm, Rainbow Skydive, Grinder, Escape Ladder, Water, Lava, Suction, and Statue Blocks.
Instant Blocks Mod - 17 new blocks that generate structures upon right-click. Includes: Farm, Rainbow Skydive, Grinder, Escape Ladder, Water, Lava, Suction, and Statue Blocks.
I'm not to great with any of this stuff, so I'll point you to BlockCrops.java which has some functions examples that you can use for damage values. For example, to set a block's damage (metadata):
I'm not to great with any of this stuff, so I'll point you to BlockCrops.java which has some functions examples that you can use for damage values. For example, to set a block's damage (metadata):
Hope this helps, happy modding! btw nice puzzles :biggrin.gif: original
Alright, thanks, I will try it out right now! :biggrin.gif:
Rollback Post to RevisionRollBack
Instant Blocks Mod - 17 new blocks that generate structures upon right-click. Includes: Farm, Rainbow Skydive, Grinder, Escape Ladder, Water, Lava, Suction, and Statue Blocks.
Make blocks, and add damage values, just like Wool, and dyes.
Risugami's Shelf Mod has 4 Blocks, but all with the same ID, but different damage values.
How can I add damage values to my blocks?
Thank You!
Instant Blocks Mod - 17 new blocks that generate structures upon right-click. Includes: Farm, Rainbow Skydive, Grinder, Escape Ladder, Water, Lava, Suction, and Statue Blocks.
Instant Blocks Mod - 17 new blocks that generate structures upon right-click. Includes: Farm, Rainbow Skydive, Grinder, Escape Ladder, Water, Lava, Suction, and Statue Blocks.
Getting block metadata (returns the metadata/damage value):
Changing textures per metadata, see the function:
Hope this helps, happy modding!
btw nice puzzles :biggrin.gif: original
Please no PMing, and no, I'm not a moderator.
Alright, thanks, I will try it out right now! :biggrin.gif:
Instant Blocks Mod - 17 new blocks that generate structures upon right-click. Includes: Farm, Rainbow Skydive, Grinder, Escape Ladder, Water, Lava, Suction, and Statue Blocks.