Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ronneke1996

Members
  • Joined

  • Last visited

Everything posted by ronneke1996

  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");

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.