How do I add blocks to Forge Multipart?

  • 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

Tsun

New Member
Jul 29, 2019
47
0
0
I am using the 1.6.2 version.

The config doesn't give any insight to what I'm supposed to write in order to add a block. It only tells me to add the ID, but where am I supposed to add it and how?

In immibis microblocks the line is:
cuttableBlock: ID:META

But what is it in Multipart?
 

Omicron

New Member
Jul 29, 2019
2,974
0
0
There is no such function. Forge MultiPart is an API, not a mod; it merely comes preloaded with a small demo component that offers a sample implementation that closely mirrors what people are used to from RP2.

If you wish to add microblocks yourself, you need to do so by making your own addon which uses the Forge MultiPart API to do its thing.

Also note that it's still relatively new. Consider it to be in public testing right now. Eventually Forge aims to integrate some or all of it into itself, at which point you no longer need the standalone component from Chickenbones. All mods using Forge will be able to hook into the MultiPart API to work with microblocks if they so choose, and even mods who choose not to will have no problem working together with other mods that do. That's the plan, anyway.
 
  • Like
Reactions: PierceSG

Omicron

New Member
Jul 29, 2019
2,974
0
0
What he was doing there is basically adding the texture of a different item to the existing microblocks provided by the demo component of Forge Multipart. That's not the same as adding a new microblock itself; it adds a copy of what's already there, just looking different.

Since you're referencing DW20's video, doesn't he explain how to do it in there? My memory is a bit shoddy on the subject since it's been a couple days... but I'm sure there was some kind of file where you simply had to add the information.
 

Vauthil

New Member
Jul 29, 2019
1,491
-14
1
The build he's using there is newer than the one included in the packs. The configurable blocks stuff was only added to the public repo nine days ago, about a day before that spotlight got posted.

See this for more information on how it works. Basically, once we're on a recent enough version of MultiPart, there'll be a microblocks.cfg where we can specify this sort of thing.
 

Vauthil

New Member
Jul 29, 2019
1,491
-14
1
I'm using the newest version on my own 1.6.2 pack. All I'm being told is to add the ID into the config, but there's no instructions on how to format it. Simply adding the ID causes a crash before the game even starts.
There's specific directions in the code there that should've been written to the microblocks.cfg. Namely, this should be at the start of the file:
#Configuration file for adding microblock materials for aesthetic blocks added by mods
#Each line needs to be of the form <ID>:<meta>
#<ID> may be a numerical id or the unlocalised name of the block/item enclosed in double quotes. NEI can help you find these
#<meta> may be ommitted, in which case it defaults to 0, otherwise it can be a number, a comma separated list of numbers, or a dash separated range
#Ex. 3. 5:3. 213:1,2,3,5. "tile.blockIron":0-15
If you are getting a crash, you should be getting a specific error (again, reading the code I linked, it has several different error messages for different failures to parse that can come up). That error should be providing you with the key to fixing it. If it doesn't, well... welcome to the bleeding edge of mod development. Watch out for the pixelcuts.
 

Tsun

New Member
Jul 29, 2019
47
0
0
Well I figured what the problem was.

I was doing everything right, except adding snow blocks causes a crash because apparently there's already snow microblocks for snow COVERS.

There was a line right on the top of the crash report saying that snow whatever already exists, I'm not sure how I missed that the first 50 times. The crash report is so vague and pain to read sometimes, yet sometimes it tells you exactly what happened.
 

war_kittens

New Member
Jul 29, 2019
31
0
0
Well I figured what the problem was.

I was doing everything right, except adding snow blocks causes a crash because apparently there's already snow microblocks for snow COVERS.

There was a line right on the top of the crash report saying that snow whatever already exists, I'm not sure how I missed that the first 50 times. The crash report is so vague and pain to read sometimes, yet sometimes it tells you exactly what happened.


Can you show me your config? I **cannot** get the damn thing working. I'd really appreciate it!
 

Cosmology27

New Member
Jul 29, 2019
297
0
1
I'm having the same problem. While the config gives directions, they're very vague, and I can't get it to work at all. Using the 1.6.4 version. The microblocks.cfg has the instructions, and I do what it says, but nothing happens.
 

Dodge34

New Member
Jul 29, 2019
511
0
1
44
Somewhere over the rainbow.
Any ideas how I should do to add all the Chisel mod blocks, it would be really nice not to have to add more than 400 block id's manually there, I just fell in love with the Chisel mod blocks and just discovered that I couldn't cut them with the saw from Forge Microblocks...
 

Not_Steve

Over-Achiever
Oct 11, 2013
1,482
3,264
293
Any ideas how I should do to add all the Chisel mod blocks, it would be really nice not to have to add more than 400 block id's manually there, I just fell in love with the Chisel mod blocks and just discovered that I couldn't cut them with the saw from Forge Microblocks...
Maybe use a wildcard? If the chisel id was 466 and the rest are meta data you could probably do 466:*
 

Dodge34

New Member
Jul 29, 2019
511
0
1
44
Somewhere over the rainbow.
Maybe use a wildcard? If the chisel id was 466 and the rest are meta data you could probably do 466:*
I saw how to use it, its clear in the cfg how to do that, but Chisel mod is more complicated than I expected, it has a bunch of ID's in the config file and clearly if I look in NEI it has various meta data ranging between 0-15 but there's also some blocks that are able to be modified by the Chisel that don't have a specific Id in the Chisel config file so I'll have to track them down manually which would be a real pain (the Ice is a good example, you can cut vanilla ice fine, but once modified by the Chisel, you can't). Would really love an auto-detect like Immibis Microblocks has integrated (yup it adds a lot of it, in fact all the items you can find in NEI, but cleaning it was easy because it used the names of the blocks, so I cleaned it in around 15-20 minutes)
 

Tristam Izumi

New Member
Jul 29, 2019
1,460
0
0
Supposedly the guys working on the TPPI pack have added a lot of the Chisel blocks to the FMP configs, so it may be worth looking at how they did it. It was mentioned that some of the blocks can't be multiparted (yes, I totally verbed that) due to crashing; this was stated during one of Wyldstein's livestreams on a TPPI server where he's invited the TPPI modpack team to join him.