Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Matt Wild

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Matt Wild

  • Rank
    Tree Puncher

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. try { RenderTypeLookup.setRenderLayer(RegistryHandler.SOL_LANTERN.get(), RenderType.getCutout()); } catch (java.lang.NoClassDefFoundError e) { } I put this code into my setup method within the main class. To my understanding, you parse in the block and RenderType to set how the client will render it. The catch statement is just a cheap way to stop a server from crashing if it were to use this mod Apologies for posting on this old thread again, but the guys clearly new here with 1 post, might as well try to help him out.
  2. Hey, thanks for the heads up ^^ I was very confused at first because I thought that the content of the class was the dependant factor for the texture rendering correctly. As for the confusion with the parameters, I realised I could grab the block from the registry. (none of this I've done before so I'm glad it's cleared up)
  3. Hi, thanks for the reply and the example! My lantern is a lot less fancy than the example given but I figured that I needed the following: - notSolid() to be called in the block properties - make the getRenderType method return BlockRenderType.MODEL My new class looks like this: import net.minecraft.block.*; import net.minecraft.block.material.Material; import net.minecraftforge.common.ToolType; public class GemLanternBase extends LanternBlock { public GemLanternBase(int lightValue) { super(LanternBlock.Properties.create(Material.IRON) .
  4. Hi, I've been trying to make a modded lantern using net.minecraft.block.LanternBlock as a base. My current class is as follows: import net.minecraft.block.*; import net.minecraft.block.material.Material; import net.minecraftforge.common.ToolType; public class GemLanternBase extends LanternBlock { public GemLanternBase(int lightValue) { super(LanternBlock.Properties.create(Material.IRON) .hardnessAndResistance(3.5f, 3.5f) .sound(SoundType.LANTERN) .harvestLevel(0) .harvestTool(ToolType.PICKAXE)
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.