Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.15.2] Deferred Registry Blocks Not Loading - Forge 31.2.0
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
jaxbymc42

[1.15.2] Deferred Registry Blocks Not Loading - Forge 31.2.0

By jaxbymc42, October 30, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

jaxbymc42    0

jaxbymc42

jaxbymc42    0

  • Tree Puncher
  • jaxbymc42
  • Members
  • 0
  • 14 posts
Posted October 30, 2020

Since moving everything to deferred registries, my mod's blocks are not in the game.  The ore gen generates the ores underground and the blocks appear with textures and all but there is no possible way of obtaining the blocks (not in creative menu, /give doesn't work, middle clicking the ore doesn't work).  The blocks can't even be crafted.  The only leading bit of information I have is the log says this for every one of my mod's blocks when loading a world:

"[Server thread/ERROR] [minecraft/LootTableManager]: Couldn't parse loot table chrispymod:blocks/cyan_redstone_lamp

com.google.gson.JsonSyntaxException: Expected name to be an item, was unknown string 'chrispymod:cyan_redstone_lamp'"

There are also parsing errors when loading recipes.

My loot tables have not been moved and I did not encounter this issue before switching to deferred registries.

I have attached ChrispyMod.java (Main), BlockInit.java, and my latest.log.  If something will not load or you need more info, let me know.

I am genuinely stuck and have no idea what is wrong.

Any help is appreciated.  Thank you for your time.

 

ChrispyMod.java BlockInit.java latest.log

  • Quote

Share this post


Link to post
Share on other sites

DavidM    179

DavidM

DavidM    179

  • World Shaper
  • DavidM
  • Members
  • 179
  • 1821 posts
Posted October 30, 2020

Have you registered the item form of the blocks?

  • Quote

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Share this post


Link to post
Share on other sites

jaxbymc42    0

jaxbymc42

jaxbymc42    0

  • Tree Puncher
  • jaxbymc42
  • Members
  • 0
  • 14 posts
Posted October 30, 2020

I thought that the lines below did that in my main class:

@SubscribeEvent
    public static void onRegisterItems(final RegistryEvent.Register<Item> event) {
        final IForgeRegistry<Item> registry = event.getRegistry();

        BlockInit.BLOCKS.getEntries().stream().map(RegistryObject::get).forEach(block -> {
                    final Item.Properties properties = new Item.Properties().group(ChrispyModItemGroup.instance);
                    final BlockItem blockItem = new BlockItem(block, properties);
                    blockItem.setRegistryName(block.getRegistryName());
                    registry.register(blockItem);
                });

        LOGGER.debug("Registered BlockItems!");
    }

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7586

diesieben07

diesieben07    7586

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7586
  • 54920 posts
Posted October 30, 2020

That is not how you use DeferredRegister.

Read the documentation.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • JeffMan
      [1.15] replacing chunks

      By JeffMan · Posted 10 minutes ago

      I am familiar with java and other oop languages, but not familiar with how forge + Minecraft works.    I am trying to port Bobby [fabric] to forge: https://www.curseforge.com/minecraft/mc-mods/bobby   Goal: ----------  - Load chunks from a saved singleplayer world into array?  - replace chunks in player current world (connected to server but only show for client) with a chunk from the array outside of server view distance. - unload chunks from client side as needed as player moves.   Is this possible with version 1.15 forge api or is there a library addon that I can use ?  
    • diesieben07
      Server Console errors

      By diesieben07 · Posted 12 minutes ago

      Please post the server debug.log.
    • diesieben07
      1.16.4 "The Vanilla Experience" Server problem

      By diesieben07 · Posted 17 minutes ago

      Looks like you have a client-only mod ("Omega Mute") installed on the server. If this is a pre-made modpack, make sure it does not have a dedicated server pack. If it doesn't, report this to the pack owners.
    • diesieben07
      Minecraft forge server login problem

      By diesieben07 · Posted 19 minutes ago

      User was banned for supporting piracy. Buy the game.
    • Gęsioł
      1.16.4 "The Vanilla Experience" Server problem

      By Gęsioł · Posted 21 minutes ago

      crash-2021-01-16_21.08.57-fml.txt Was fallowing instructions in description. Cannot load
  • Topics

    • JeffMan
      0
      [1.15] replacing chunks

      By JeffMan
      Started 10 minutes ago

    • chuckdie5el
      1
      Server Console errors

      By chuckdie5el
      Started 22 minutes ago

    • Gęsioł
      1
      1.16.4 "The Vanilla Experience" Server problem

      By Gęsioł
      Started 21 minutes ago

    • Greenshark3D
      5
      Minecraft forge server login problem

      By Greenshark3D
      Started 1 hour ago

    • Badnews4u
      3
      My forge server won't load all the mods

      By Badnews4u
      Started 17 hours ago

  • Who's Online (See full list)

    • DaemonUmbra
    • Will11690
    • MrLoop95
    • Chumbanotz
    • JeffMan
    • ambermarsh
    • Talp1
    • Rokas_Lithuania
    • diesieben07
    • Draco18s
    • Sr_endi
    • chuckdie5el
    • Greenshark3D
    • Aggeldos
    • Gęsioł
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.15.2] Deferred Registry Blocks Not Loading - Forge 31.2.0
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community