Jump to content

MrGreenyboy

Members
  • Posts

    30
  • Joined

  • Last visited

Recent Profile Visitors

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

MrGreenyboy's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Ok i am just going to show you the code and see if is ok so far: package com.MrGreenyboy.furnmod.init; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.item.BlockItem; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; import net.minecraftforge.registries.ObjectHolder; @Mod.EventBusSubscriber(modid = "furnmod", bus = Bus.MOD) @ObjectHolder("furnmod") public class BlockInit { public static final Block table = null; @SubscribeEvent public static void registerBlock(final RegistryEvent.Register<Block> event) { event.getRegistry().register(new Block(Block.Properties.create(Material.IRON).sound(SoundType.STONE)).setRegistryName("furnmod", "table")); } @SubscribeEvent public static void registerBlockItems(final RegistryEvent.Register<Item> event) { event.getRegistry().register(new BlockItem(table, new Item.Properties().maxStackSize(64).group(ItemGroup.BUILDING_BLOCKS)).setRegistryName("table")); } public static class TableBlock { } }
  2. where is the lantern block class is it on a website or on my files
  3. Ok I added a class called TableBlock in the BlockInit section what do I put in it
  4. So i put it in the blockInit thing under public static void registerBlock(final RegistryEvent.Register<Block> event) { is that right
  5. What is the render type again i need to add it in replacement for your render type code
  6. this is my block init code: package com.MrGreenyboy.furnmod.init; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.item.BlockItem; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; import net.minecraftforge.registries.ObjectHolder; @Mod.EventBusSubscriber(modid = "furnmod", bus = Bus.MOD) @ObjectHolder("furnmod") public class BlockInit { public static final Block table = null; @SubscribeEvent public static void registerBlock(final RegistryEvent.Register<Block> event) { event.getRegistry().register(new Block(Block.Properties.create(Material.IRON).sound(SoundType.STONE)).setRegistryName("furnmod", "table")); } @SubscribeEvent public static void registerBlockItems(final RegistryEvent.Register<Item> event) { event.getRegistry().register(new BlockItem(table, new Item.Properties().maxStackSize(64).group(ItemGroup.BUILDING_BLOCKS)).setRegistryName("table")); } }
  7. It Works I now have a block model thanks for all who helped with the load_registries error and for all who helped with the texture error
  8. I edited the blockstates json and put this: { "variants": { "": { "model": "tutorialmod:block/example_block" } } }
  9. Here is an error i found [m[32m[11:19:33] [Forge Version Check/INFO] [ne.mi.fm.VersionChecker/]: [forge] Found status: BETA_OUTDATED Current: 32.0.75 Target: 32.0.97 [m[32m[11:19:33] [Forge Version Check/INFO] [ne.mi.fm.VersionChecker/]: [tutorialmod] Starting version check at http://myurl.me/ [m[33m[11:19:33] [Forge Version Check/WARN] [ne.mi.fm.VersionChecker/]: Failed to process update information java.io.IOException: Server returned HTTP response code: 400 for URL: http://myurl.me/ at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_251] {} at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_251] {} at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_251] {} at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_251] {} at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source) ~[?:1.8.0_251] {} at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source) ~[?:1.8.0_251] {} at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_251] {} at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) ~[?:1.8.0_251] {} at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) ~[?:1.8.0_251] {} at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[?:1.8.0_251] {} at net.minecraftforge.fml.VersionChecker$1.openUrlStream(VersionChecker.java:189) ~[?:?] {re:classloading} at net.minecraftforge.fml.VersionChecker$1.process(VersionChecker.java:206) ~[?:?] {re:classloading} at java.lang.Iterable.forEach(Unknown Source) [?:1.8.0_251] {} at net.minecraftforge.fml.VersionChecker$1.run(VersionChecker.java:157) [?:?] {re:classloading} Caused by: java.io.IOException: Server returned HTTP response code: 400 for URL: http://myurl.me/ at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) ~[?:1.8.0_251] {} at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[?:1.8.0_251] {} at java.net.HttpURLConnection.getResponseCode(Unknown Source) ~[?:1.8.0_251] {} at net.minecr
  10. { "variants":{ "":{ "model": "tutorialmod:block/example_block" } } also should it be blockstates or blockstate
  11. Ok I will go and do that. Also I added the second bracket to the blockstate json and i still didn't see any texture. I found an error message but then the console pushed it so far back i can't see it
  12. Here is the blockstates file: { "variants":{ "":{ "model": "tutorialmod:block/example_block" } Here is the models blocks file: { "parent": "block/cube_all", "textures": { "all": "tutorialmod:blocks/example_block" } }
×
×
  • Create New...

Important Information

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