Jump to content

Grizzly101

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Grizzly101

  1. Hello Everyone! Is there any possible way to not add ".setLightOpacity(0);" for your slabs and stairs and still not screw up the shading? The vanilla slabs and stairs don't have it and works fine. In fact, the shading is different than the slabs I made. Here is a picture of my test room:http://sphotos-e.ak.fbcdn.net/hphotos-ak-snc6/259930_447233528666661_2045660487_n.jpg[/img] Here is a picture of it with my slabs(doubled): http://sphotos-g.ak.fbcdn.net/hphotos-ak-prn1/60739_447233535333327_1247379448_n.jpg[/img] Here is a picture of it with stone slabs(doubled) http://sphotos-c.ak.fbcdn.net/hphotos-ak-ash3/549046_447233508666663_1313670354_n.jpg[/img] It seems like my slabs do not block the light from coming in. Guess its because of ".setLightOpacity(0)" Note: My slab has almost the same color as a stone slab. Please tell me if there is an alternative.
  2. Sorry About the hidden files Green0Yoshi. This is my first post. Thanks for telling me about using spoilers. I Thought people used the hide function. I realized that I should register my block using my Array block if I going to use those anyway. That was the cause for the null and now it is working as expected. Thanks
  3. Hello Everyone, I am just wondering if it is possible to use Arrays for new Blocks. This is the code for making my new blocks in my main java file: [hide] public static Block UnevenStoneStair_gray; public static Block UnevenStoneStair_blue; public static Block UnevenStoneStair_brown; public static Block UnevenStoneStair_light; public static Block UnevenStoneStair_yellow; public static Block UnevenStoneStair_red; public static Block UnevenStoneStair_green; public static Block[] UnevenStoneStair= new Block[7];{ UnevenStoneStair[0] = UnevenStoneStair_gray; UnevenStoneStair[1] = UnevenStoneStair_blue; UnevenStoneStair[2] = UnevenStoneStair_brown; UnevenStoneStair[3] = UnevenStoneStair_light; UnevenStoneStair[4] = UnevenStoneStair_yellow; UnevenStoneStair[5] = UnevenStoneStair_red; UnevenStoneStair[6] = UnevenStoneStair_green;} [/hide] There were no problems at first but when I wanted to make a recipe for it, minecraft crashed. [hide] GameRegistry.addRecipe(new ItemStack(NaughtyStoneCraft.UnevenStoneStair[0], 5, 1), new Object[] { "X", "XX", "XXX", 'X', (new ItemStack(NaughtyStoneCraft.UnevenStoneBrick, 1, 0)) }); [/hide] Here is the crash report: [hide] java.lang.NullPointerException at net.minecraft.src.ItemStack.<init>(ItemStack.java:42) at grizzly101.common.NaughtyStoneCraft.load(NaughtyStoneCraft.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:440) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) at cpw.mods.fml.common.Loader.initializeMods(Loader.java:651) at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:196) at net.minecraft.client.Minecraft.startGame(Minecraft.java:465) at net.minecraft.client.Minecraft.run(Minecraft.java:752) at java.lang.Thread.run(Unknown Source) [/hide] Thanks in advance to those who would help
×
×
  • Create New...

Important Information

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