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.

poalqo

Members
  • Joined

  • Last visited

  1. poalqo replied to poalqo's topic in Modder Support
    Ayy, thanks for the sols and tip!!!! Yeh still not as used to the Java conventions lmao. ❤️
  2. I am really close to finishing the basics of my mod but am having issues with ore generation. Since Forge doesn't have much documentation on world generation I looked on YouTube to see what they've done, and it seems that all block generation is dependent on the biome. So I essentially copied their code word for word (attempting to understand it along the way) and it seems not to be working. Here's my code for ore generation. I put the debug there in order to see when the Forge actually ran this generateOre method, but to my surprise I found nothing in my "debug.txt" file. So my current guess as to why the code isn't working is because Forge isn't actually running this method, but according to the video, it should. I don't know the difference between 1.15 and 1.16 is a lot but I believe it should still be quite similar. Anyways, I would appreciate all the help
  3. Wow...I might just redownload my own repo, and rebuild my thing lmaooo. thanks!
  4. https://github.com/Office-Stapler/minecrafttestmod Have a look please thanks so much for the help
  5. Well either way, I changed my JSON file in variants to normal and is still didn't work
  6. But then why would it say: Unknown blockstate property: 'normal' ?
  7. Ok I might create a repo and make it private afterwards
  8. What do you mean "here is no"?
  9. Is there a way to share a repo privately? (I assume on GitHub)
  10. Yeh that's just how VSCode displays the parent folder not what I named the folder itself.
  11. Hey guys, I'm just starting out to learn Minecraft modding and for some reason my block isn't loading. I'm going through the errors and it seems that these errors tell me why: [m[33m[17:49:38] [Worker-Main-11/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'testmod:blockstates/ruby_ore.json' in resourcepack: 'Mod Resources' for variant: 'normal': Unknown blockstate property: 'normal' [m[33m[17:49:38] [Worker-Main-11/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'testmod:blockstates/ruby_ore.json' missing model for variant: 'testmod:ruby_ore#' [m[33m[17:49:39] [Worker-Main-11/WARN] [minecraft/ModelBakery]: Unable to load model: 'testmod:ruby_ore#inventory' referenced from: testmod:ruby_ore#inventory: java.io.FileNotFoundException: testmod:models/item/ruby_ore.js As you can tell, I am trying to add "ruby's" to the game and have succeeded in just adding rubies but am not having much luck on the block side. Here is the code for how I registered the block, @SubscribeEvent public static void onRegisterBlocks(RegistryEvent.Register<Block> event) { Block ruby_ore = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance( 0.6F, 6.0F).sound(SoundType.STONE)); event.getRegistry().registerAll( setup(ruby_ore, "ruby_ore") ); // new BlockItem( // ruby_ore, new Item.Properties().group(ModItemGroups.MOD_ITEM_GROUP)).setRegistryName(ruby_ore.getRegistryName()); } @SubscribeEvent public static void onRegisterBlockItem(RegistryEvent.Register<Item> event) { BlockItem ruby_ore = new BlockItem( ModBlocks.RUBY_ORE, new Item.Properties().group(ModItemGroups.MOD_ITEM_GROUP)); event.getRegistry().registerAll( setup(ruby_ore, "ruby_ore")); } public static <T extends IForgeRegistryEntry<T>> T setup(final T entry, final String name) { return setup(entry, new ResourceLocation(testmod.MODID, name)); } public static <T extends IForgeRegistryEntry<T>> T setup(final T entry, final ResourceLocation registryName) { entry.setRegistryName(registryName); return entry; } My ObjectHolder class for all my blocks: @ObjectHolder(testmod.MODID) public class ModBlocks { public static final Block RUBY_ORE = null; } and my file structure: From the error it seems simply that my variants object is off because it seems to have "normal" as its key, but that isn't true. Here is my testmod.blockstates.ruby_ore.json { "variants": { "": { "model": "testmod:block/ruby_ore" } } } My testmod.models.block.ruby_ore.json { "parent": "block/cube_all", "textures": { "all": "testmod:blocks/ruby_ore" } } and of course my testmod.item.ruby_ore.json { "parent": "testmod:block/ruby_ore" } Anyways hoping anyone can help me find the cause of my error!

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.