Jump to content

ronneke1996

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    Trying to learn modding :D

ronneke1996's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Does anybody have a sample code for a simple half slab? I could use it to figure out whats wrong with mine.
  2. I changed it to this. package com.additionalblocks.main; import net.minecraft.block.Block; import net.minecraft.block.BlockSlab; import net.minecraft.block.material.Material; import net.minecraft.item.Item; import net.minecraft.item.ItemSlab; import com.additionalblocks.main.*; public abstract class blockSlab extends BlockSlab { public blockSlab(boolean bool, Material material) { super(bool, material); // TODO Auto-generated constructor stub } } and this public static BlockSlab blockHalfboneslab; public static BlockSlab blockDoubleboneslab; Still not working.
  3. Thx I changed it now. I got this now: GameRegistry.registerBlock(blockHalfboneslab, blockSlab.class ,"blockHalfboneslab"); GameRegistry.registerBlock(blockDoubleboneslab, blockSlab.class ,"blockDoubleboneslab"); but still i got an error right here Type mismatch cannot convert from blockSlab to Block blockHalfboneslab = new blockSlab(blockHalfboneslab); blockDoubleboneslab = new blockSlab(blockDoubleboneslab); btw i made the variables like this: public static Block blockHalfboneslab; public static Block blockDoubleboneslab;
  4. Hi, Im new to making mods and i'm making progress in creating my own mod. There is one thing which I can't figure out though. How to make half slabs. I got this piece of code from the minecraftforums, but i dont know how to register it and if it even works. package com.additionalblocks.main; import net.minecraft.block.Block; import net.minecraft.block.BlockSlab; import net.minecraft.item.Item; import net.minecraft.item.ItemSlab; import com.additionalblocks.main.*; public class blockSlab extends ItemSlab { public blockSlab(Block block) { super(block, (BlockSlab) AdditionalBlocks.blockHalfboneslab,(BlockSlab) AdditionalBlocks.blockDoubleboneslab, false); this.setMaxDamage(0); this.setHasSubtypes(true); } } I got this in de main class: blockHalfboneslab = new blockSlab(blockHalfboneslab); blockDoubleboneslab = new blockSlab(blockDoubleboneslab); GameRegistry.registerBlock(blockHalfboneslab, "blockHalfboneslab"); GameRegistry.registerBlock(blockDoubleboneslab, "blockDoubleboneslab");
×
×
  • Create New...

Important Information

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