Incresing Minecraft's Block Id's

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Is it possible to increase the amount of block id's??


  • Total voters
    6

Matthewacon

New Member
Jul 29, 2019
2
0
0
I myself am a modpack maker and my latest modpack SkeloCraft, has over 201 mods. Now the only problem with that is the item and block id issues, and with 201+ mods the amount of blocks go way past limit of 4096. Now i've found a way to optimize the block id's, but it breaks crafting recipes and textures. I am also a mod developer myself but all my attempts to increasing the amount of block id's in the game have currently all failed. If someone could create a mod that could increase the amount of block id's that the game allows, and I had permission to use it in my modpack I would give that person tons of credit.

Also I was wondering, in one of the earlier posts I read that MCForge increased the block limit from 256 to 4096. Does anyone know how they did it?? Because it might help on figuring out how to increase the limit.
 

immibis

New Member
Jul 29, 2019
884
0
0
Mojang increased the block ID limit to 4096 blocks from 256.
Forge fixed the bugs in Mojang's increase.
Here's how you can fix your modpack:
  • Find which mod is using a ton of IDs.
  • Remove that mod.
  • Repeat until under 4096 IDs.
 
  • Like
Reactions: Pokefenn

Hambeau

Over-Achiever
Jul 24, 2013
2,598
1,531
213

If I've been reading correctly, numeric block IDs aren't actually going away so much as being shimmed with a human-friendly "interface".

Block references will go from numeric values to text descriptors in the form [MOD]:[BLOCK]. such as "Minecraft:Stone". The numeric IDs will still be there in a lookup table that is dynamically filled as blocks are loaded. While the "Minecraft" portion is optional at this time it should be used so that "Minecraft:Stone" is different from "ModX:Stone".

I think of it this way, probably from years as a Network Admin...

1). The Numeric IDs will soon be akin to a DHCP IP address pool. When a mod loads it's blocks are assigned the next ID in sequence. This allows Mod devs to assign names instead of maybe duplicating a numeric reference.

2). The Text descriptors will operate in a manner akin to DNS, which makes it possible for us to remember a URL instead of the IP address of every website we want to access.

To answer the question, I think the current limit is, as stated above, 4096 blocks. More could be added, but it may be too much of a change to do concurrently with all the other core rewrites happening now.