Quickest Path To The Annoying Stuff

  • 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

Queue

New Member
Jul 29, 2019
341
0
0
This is a question aimed at modpack authors:

How do you quickly obtain NBT data, and ID information? NEI Integration dataDumps? Things like Minetweaker and CustomOreGen need, for example:
Code:
<OreBlock block="gregtech:gt.blockores"
          nbt="{n:1, m:820, id:'GT_TileEntity_Ores'}"/>

How do most modpack authors look up the necessary info for such scripts and configs as quickly and painlessly as possible?
 

buggirlexpres

Relatable Gamer
Trusted User
Retired Staff
Nov 24, 2012
3,937
7,362
663
she/her
twitter.com
I just do "/mt hand" on the item I want the NBT of. If I did it on that ore, it would display*:
Code:
<gregtech:gt.blockores>.withTag({n:1, m:820, id:'GT_TileEntity_Ores'});
* Obviously that is an assumption, as I do not have GregTech in any of my instances right now. It should be really similar, maybe replacing the 's with "s. But otherwise, it'll work.

Obviously, you should be able to translate that to the CustomOreGen, and all you need to do is copy/paste it into Minetweaker for it to work there.

A couple examples:
The code obtained via /mt hand for a Jaded Amaranthus:
Code:
<Botania:specialFlower>.withTag({type: "jadedAmaranthus"});
Using it in a MT recipe:
Code:
val jadedAmaranthus = <Botania:specialFlower>.withTag({type: "jadedAmaranthus"});
val daisy = <minecraft:yellow_flower>;
mods.bloodmagic.Altar.addRecipe(jadedAmaranthus, daisy, 1, 1000, 20, 20);
 
Last edited: