Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
TonyLiberatto

Item name dictionary

15 posts in this topic

I apologize in advance if this information is available somewhere, As I am no coder I don't really know how to call what I need. I am editing a plugin in my server and need the name for a few terrafirmacraft items. Is easy for me to find the item id using NEI, but the plugin only accepts names and not id's.

Right now I need the names for fresh water, water jug and ceramic jugs. what I need looks something like this " TERRAFIRMACRAFT_DOOROAK " again I have no idea what this kind of notation is called so is hard for me to use the search function of the forum. Thanks in advance.

 

0

Share this post


Link to post
Share on other sites

There's absolutely nothing in TFC that has that kind of formatting. Are you maybe looking for the unlocalized name for things? If you have inventory tweaks installed, you can see the unlocalized name for anything by pressing F3+H, and then putting your cursor over it.

 

The unlocalized name for an oak door item (what you craft and you have in your inventory) is

 terrafirmacraft:item.Oak Door

The unlocalized names for fresh water source blocks, water jugs, and ceramic jugs are

terrafirmacraft:FreshWaterStationaryterrafirmacraft:item.jug

A ceramic jug is terrafirmacraft:item.jug with metadata value of 1, and a water jug is terrafirmacraft:item.jug with a metadata value of 2

0

Share this post


Link to post
Share on other sites

If you go into NEI options, click tools and you can access data dumps that will output a lot of the unlocalized names, but they aren't always descriptive. Alternatively if you have MineTweaker installed the /my hand command will give you unlocalized name, which it copies to your clipboard, and the ore dictionary tags it has.

0

Share this post


Link to post
Share on other sites

Thanks kitty that is exactly what I was looking for, and plus a way for me to find the "unlocalized names " by myself. Once again Thank you very much. Also I will be abble to fix the names for the dooors, that someone else did for me, that explains why it never worked, the names were wrong.

I am editing Towny config and I need the items names to allow outsiders to drink water when in someone else town.

Also editing lockette so it recognizes TFC doors.

0

Share this post


Link to post
Share on other sites

Lockette is probably looking for the unlocalized name of the door block, not the door item. You can find it by typing "door" into NEI, then scrolling to the final page where there are what looks like just the bottom half of the door.

0

Share this post


Link to post
Share on other sites

Is there anyplace where I could get this information typed, Like maybe a file inside the Jar? It would mean not having to look in game and avoid mistypes. NEI Helps and the tip about tweak inventories is really cool.

I really appreciate.

How do you guys keep track of all the TFC unlocalized  names? Do you have a dictionary with the in game common name and the unlocalized on the side? Sorry if this is nonsense, I just have no idea how the Java coder works. 

0

Share this post


Link to post
Share on other sites

NEI has an option to dump the item list into a text file for you. I'm not at my computer, but I believe if you bring up your inventory and click the options button on the bottom right you'll get a screen with 6-8 buttons on it. Clicking the bottom button there should get you to the data dumps. From there you can dump all items, or just what the list NEI is showing, so you can limit it by searching first...

0

Share this post


Link to post
Share on other sites

As I said the NEI data dump can be a bit cryptic. I use the NEI integration addon and use the Tile Enrity dump along with Item Panel dump as they contain the display name and unlocalized names (just missing the ModId: part)

0

Share this post


Link to post
Share on other sites

Unlocalized names are what is replacing the number IDs in all of Minecraft, so like if you look at the vanilla dirt wiki page, you'll see it's name is "dirt". "Localisation" essentially means translation. To prevent conflicts of different mods using the same name, everything first starts with a modID followed by a :

 

so all vanilla items and blocks start with minecraft:

 

and all tfc items and blocks start with terrafirmacraft:

 

The closest file that contains what you are looking for is going to be any of the language files (end in .lang inside the assets folder in the jar), because the language files take "unlocalized" names and "localise" them into what you actually see as the name in-game. However, the lang files are not going to be 100% accurate to get unlocalized names, because it's also handling the names of stuff that have the same unlocalized name, but different metadata (damage value). So for example, in en_US.lang, there are the entries

item.Jug.Clay Jug.name=Clay Jugitem.Jug.Ceramic Jug.name=Ceramic Jugitem.Jug.Water Jug.name=Water Jug

but terrafirmacraft:item.Jug.Water Jug is not the unlocalized name of a water jug, terrafirmacraft:item.jug is, and it has a metadata value of 2. Note how the capitalization of letters also doesn't necessarily match either.

 

All the blocks in the language files are also going to start with tile. , which isn't necessarily part of the block's unlocalized name.

 

Your best bet is to just do the NEI dump if you absolutely need one giant list, but make sure that you always start any name with 

terrafirmacraft:

The other option is to look at the actual code where we register the items and blocks with their unlocalized names, but unless you actually know how to read it, it's going to be just as cryptic as the NEI dump.

 

https://github.com/Deadrik/TFCraft/blob/master/src/Common/com/bioxx/tfc/ItemSetup.java

https://github.com/Deadrik/TFCraft/blob/master/src/Common/com/bioxx/tfc/BlockSetup.java

0

Share this post


Link to post
Share on other sites

Once again thank you very much Kitty. I should be able to edit the config files and scripts with that.

0

Share this post


Link to post
Share on other sites

I've actually compiled a switch list for Lockette specifically, we use it for our server of course. I'd be happy to share it with you if you'd like, Djakuta.  Feel free to send me a private message if you'd like our list. 

0

Share this post


Link to post
Share on other sites

how about calling a plank

terrafirmacraft:Plank(oak) for oak    or anything else?

please help me

Edited by quickscoper
0

Share this post


Link to post
Share on other sites
5 hours ago, quickscoper said:

how about calling a plank

terrafirmacraft:Plank(oak) for oak    or anything else?

please help me

I don't understand what you are asking.  Could you be more specific? 

0

Share this post


Link to post
Share on other sites

thanks,but I can edit script

so,I don,t need plank anymore(I use another item instead)

when i finish writing script,I will post It in this topic for finding mistake

Edited by quickscoper
sorry,I check at program I can remove plank from recipe
0

Share this post


Link to post
Share on other sites

finish!

recipes.addShapeless(<minecraft:coal> * 4, [<terrafirmacraft:Charcoal>, <terrafirmacraft:Charcoal>, <terrafirmacraft:Charcoal>, <terrafirmacraft:Charcoal>]);
mods.Terrafirmacraft.Knapping.addClayWorkingRecipe(<terrafirmacraft:Crucible> * 2, "#####", "#   #", "#   #", "#   #", "#####");
recipes.addShaped(<BuildCraft|Transport:item.buildcraftPipe.pipeitemswood> * 16,
 [[<minecraft:glass>, null, <minecraft:glass>],
  [<minecraft:glass>, null, <minecraft:glass>],
  [<minecraft:glass>, null, <minecraft:glass>]]);
mods.Terrafirmacraft.Knapping.addStoneWorkingRecipe(<BuildCraft|Core:wrenchItem> * 2, "#   # ", "#   #", "#   #", " ### ", "  #   ");
recipes.addShapeless(<BuildCraft|Transport:item.buildcraftPipe.pipefluidswood> * 1, [<BuildCraft|Transport:item.buildcraftPipe.pipeitemswood>, <BuildCraft|Core:wrenchItem]);
recipes.addShapeless(<BuildCraft|Transport:item.buildcraftPipe.pipepowerwoodwood> * 1, [<BuildCraft|Transport:item.buildcraftPipe.pipefluidswood>, <BuildCraft|Core:wrenchItem]);

0

Share this post


Link to post
Share on other sites