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

    • Crysyn

      Only help if you can be helpful

      Hey All, A topic has come up of late in the IRC channel in regards to the general feel of the forums and the community that supports them. Things have progressed further than I would have liked with out this being addressed more publicly because I would much rather have snubbed this out sooner rather than later.. but I have been busy. Here is the general rule I would like people to follow: Wheaton's Law "Don't be a dick." Those of you from the IRC channel know that this is the only rule I ask people in there to follow and we generally have a good and lively time chatting about all manner of things. This is basic rule that just about everyone understands and I am going to expand it to the forums from here moving forward. If you can not help people in a helpful and polite manner then I simply ask you to stop. Now I generally take a back seat to moderating the forums as I like to participate in the suggestions forum fairly heavily at times and would rather do so as a forums user than a moderator. But I am also fairly well known for being the person who constantly puts their foot down and so I am stepping up and doing so on here. If you find yourself unable to respond to a message politely then I ask that you do not respond. This mostly focuses on the increasing level of hostility found within the Suggestion forum as well as the Server forum. I do not care if this is the 30th some odd time you have seen someone make the same suggestion. Or even if the new post on an older topic is one entry above the old one. I expect the members of this forum to respond politely to the user, new or old, and point to the older topic if it applies and even go the extra step to suggest they either add in new information or to summarize the outcome of the previous discussion based upon the new post's entry into it. That is what we are here for, that is why I close most topics instead of deleting them, so that they can be found and referenced down the road. The next topic is the slew of derailment attempts I have seen as of late. If you want to have fun and joke around that is what the off topic forum is for and pretty much anything goes there. I do not expect to read a suggestion thread and have to go through 3 pages of image memes people have shot back and forth. Quite simply this is a waste of my time to read and then have to clean up. Now for the summary. I am going to start taking a more active role, especially in policing the suggestion forum, and handing out warn levels to people whom I see doing this. These will be indiscriminate and applied not to just the first person who derails or is impolite on a topic or response, but to everyone whom follows the lead of that person. As I do not like doing things with out giving you all warning this post shall serve as that warning. If you have a desire to bring this topic up with me then I invite you to do so on the IRC channel. Lets raise the level of quality and grow the community. Let us not descend into the quality often found on the minecraft or league of legend forums. There is simply no need for that here. Be passionate about things, just do not be abusive.
    • Kittychanley

      Offline Servers

      Recently I've seen a few server listings showing up on the first page of the Servers forum that have been closed for an extended period of time, but have recently gotten a reply from a new member who didn't realize the server is offline. To help prevent this from happening in the future, it would be greatly appreciated if you could use the report function on the original post of any servers that have been confirmed as offline, so that the topic may be locked. If you are the admin of a server and plan on taking the server offline, please use the report function on the original post of your topic to let the TFC Staff know that the topic should be locked. If you are the admin of a server that has a locked topic, and would wish to bring the server back online, please use the report function on the original post of the topic to let the TFC Staff know that the topic should be unlocked. As always, please remember to follow rule #3 of the servers forum and update your topic title to contain the version of TFC that the server is currently running. You can do so by editing the OP, and then clicking on "Use Full Editor."

246 posts in this topic

Hello everyone!

 

I apologize in advance for my English. I mostly use the translator.

 

Old post:

Spoiler


 

I creating a small addon that adds a smeltable items, such as metal dust, nuggets, plates and other common ingredients that are used in a variety of techno-mods. When creating modpack I can replace the common dust / nuggets / plates by these smeltable variants using ModTweaker. This allows more beautiful and elegantly integrate techno-mods with TFC in my future modpack.

 

Also, I added aluminum as a metal and set of items from it (ingots, unshaped aluminum, dust, nugget, plates). And at this stage I had a little problem. Please help with the decision.
I decided to get the aluminum melting cryolite and kaolinite. Since the class ItemOre has hardcoded properties of cryolite and kaolinite, I decided to create my own class ItemModOre, which inherits ItemOre class. In it, I have the necessary properties and they started to melt.

Then I replace native TFCItems.oreChunk by new one using this code:

It works fine. Kaolinite and cryolite melts and gives me aluminum. But one thing bothers me and I do not know how to fix it. In the NEI all ores displayed twice. All IDs and names are same.

2015-11-22_1538.png

 

How do I remove duplicates from NEI?

 

Thanks in advance.

 

//... skippedoreChunk = new ItemModOre().setFolder("ore/").setUnlocalizedName("Ore");//... skipped// Replacing TFC oreChunk with new one to make Kaolinite and Cryolite smeltabletry {    GameRegistry.addSubstitutionAlias(Reference.MOD_ID + ":" + TFCItems.oreChunk.getUnlocalizedName(), GameRegistry.Type.ITEM, oreChunk);} catch (ExistingSubstitutionException e) {    e.printStackTrace();} finally {    TFCItems.oreChunk = oreChunk;}

 


 

Update:

 

I changed the concept of mod. Now this is not a small mod that adds a few new items. I decided to make a crossover mod which will integrate the technical mods with TFC.
Now, first things first.
 
Features wich already implemented in 0.1.4-A4:
  • New items: metal dusts, nuggets, plates
  • All metal items can be heated and melted with TFC mechanics
  • New metal Aluminum
  • Bauxite ore world generation (Aluminum ore)
  • New alloys: Electrum, Constantan (Cupronickel) and Invar
 
The list of mods, which is planned to integrate (with progress in %):
  • Buildcraft (90%)
  • Railcraft (0%)
  • Immersive Engineering (2%)
  • Logistics Pipes (0%)
  • Open Computers (0%)

Features which implemented in the next update (0.2.0-A5):

  • Buildcraft integration - new gears, steel buckets for oil and fuel, new pipes, new items, changed recipes etc.
  • Quartz drops from stone - nether quartz replacement.
  • Bauxite ore small rocks world generation
  • Hevea trees world generation
  • Latex obtained from Hevea using near to real world rubber tapping
  • Croud rubber, Rubber
  • Bone Glue (Animal Glue)

Some pictures:

 

Spoiler


 

V0x_Fi28xzk.jpg

 

2016-02-20_1550.png

Some new Buildcraft recipes:

 

LYzzHvxuBRE.jpg  gdIkOOD5IAc.jpg  O706T_Dwmpc.jpg

Drill Head instead of pickaxes in Quarry and Mining Well recipes.

 

Engines:

Kkvt2Qcb9js.jpg  Zza7fmg6ZlM.jpg

20vU6Ko42PM.jpg  slOuYCIjNhU.jpg

 

Tools:

 

YYq7QKDzHlY.jpg  BJAHHi6TKok.jpg

 

Bauxite:

 

2016-02-20_1620.png

 

oA-vrDoMipg.jpg

 

Hevea:

cAoUb-jfJJU.jpg

 

 


 

 

Expected features in future updates:
  • RC, IE, LP, OC Integration
  • New electric devices
  • New flat carts: Log Car, Cart with Chest, Cart with Barrel
  • New ores, metals and alloys
  • Some decoration blocks

 

CurseForge link: http://minecraft.curseforge.com/projects/tfctech-addon

You can support me at Patreon: https://www.patreon.com/shurgent

Edited by Shurgent
Added spoilers, updated information
0

Share this post


Link to post
Share on other sites

Not a coder myself, just an avid reader of everything tfc.

I understood from reading the forum that tfc has an API for easy introduction of new ores. Wouldn't be easier to just add  and make it bauxite work as a metal? It would be more believable, and maybe fix some of the issues you are having.

1

Share this post


Link to post
Share on other sites

At first I thought to do so. But I do not understand how to create my ore, such as in TFC (which takes the form of the stone in which it is generated). I thought it would be easier to just make a cryolite and kaolinite meltable.

0

Share this post


Link to post
Share on other sites

I assume you are using substitution aliases. This is a bug in NEI and despite forge fixing substitution aliases with ore dictionary they are extremely problematic. They seem to function properly in SSP, but not SMP.

1

Share this post


Link to post
Share on other sites

I assume you are using substitution aliases.

Yes, that's right.

 

They seem to function properly in SSP, but not SMP.

Sadly. It turns out, I only have one option - to add my own ore, such as bauxite? I will not be able to make kaolinite meltable other way?

0

Share this post


Link to post
Share on other sites

I would suggest going the route of making your own ore. The API provides what you need for that. For the ore block itself I'd suggest looking at https://github.com/lawremi/PerFabricaAdAstra I know they have ore blocks that will blend into surrounding stone, I've tested it in TFC world and it works fine. I'm unsure how they do it, but it may provide a template for doing that with your ore block. The spawning via TFCOre.cfg is straightforward and the pro pick will be able to see the ore and report it using the localized name. The short comings are the lack of quality for the ores and I'm not sure you can have it collapse like TFC ores do.

 

Alternatively you can look at the TFC code and request that the classes and such you need to make your own ore blocks. Having played around in that I'm not sure how feasible that is, but might be worth looking into.

I'd definitely stay away from the substitution aliases.

1

Share this post


Link to post
Share on other sites
 

Thank you very much for your response. I probably will do as you suggest.

0

Share this post


Link to post
Share on other sites

I had to tinker, but I did it!

2015-12-02_20.02.01.png

It remains to make the generation of pieces of ore on surface.

0

Share this post


Link to post
Share on other sites

You should create a new tread in the regular Addons.

0

Share this post


Link to post
Share on other sites
 

Addon is still WIP. I will create a new tread as soon, as I release at least beta build.

0

Share this post


Link to post
Share on other sites

Just otu of curiosity. How stable is the initial build.

Initial build has a few mistakes, like missing textures and recipes. I recommend to use the latest available version 0.1.4-A4. It is tested and stable on SSP, but not yet tested at SMP.

0

Share this post


Link to post
Share on other sites

Can I add my own random gem drop when stone block destroyed?

0

Share this post


Link to post
Share on other sites

You can use a forge event to spawn an item entity when a block is broken, read more here. You can compare the broken block type for the desired type, then add your drop with a random chance or clear the drop list if you want to override the drops then add your own drops. I highly advise looking at forge events, there are a lot of things it will allow you to do.

0

Share this post


Link to post
Share on other sites
Exactly! Events! How could I forget about the events :)
Apparently I did not sleep well :)
Thanks!
0

Share this post


Link to post
Share on other sites

Trying to use events:

@SubscribeEventpublic void onHarvestDropsEvent(HarvestDropsEvent event) {		Random rnd = new Random();		// === Dropping Quartz =================================================		if (ModOptions.cfgDropQuartz) {					TFCTech.LOG.info("HARVEST DROP EVENT!"); //DEBUG					if (event.block instanceof BlockIgEx)			if (rnd.nextInt(ModOptions.cfgDropQuartzIgExChance) == 0)				event.drops.add(new ItemStack(ModItems.gemQuartz, ModOptions.cfgDropQuartzMinQty + rnd.nextInt(ModOptions.cfgDropQuartzMaxQty)));		if (event.block instanceof BlockIgIn)			if (rnd.nextInt(ModOptions.cfgDropQuartzIgInChance) == 0)				event.drops.add(new ItemStack(ModItems.gemQuartz, ModOptions.cfgDropQuartzMinQty + rnd.nextInt(ModOptions.cfgDropQuartzMaxQty)));		if (event.block instanceof BlockMM)			if (rnd.nextInt(ModOptions.cfgDropQuartzMMChance) == 0)				event.drops.add(new ItemStack(ModItems.gemQuartz, ModOptions.cfgDropQuartzMinQty + rnd.nextInt(ModOptions.cfgDropQuartzMaxQty)));		if (event.block instanceof BlockSed)			if (rnd.nextInt(ModOptions.cfgDropQuartzSedChance) == 0)				event.drops.add(new ItemStack(ModItems.gemQuartz, ModOptions.cfgDropQuartzMinQty + rnd.nextInt(ModOptions.cfgDropQuartzMaxQty)));	}}

This event fires only when I harvest cobble, bricks, smooth, sand etc. but not stone. Maybe I should use a different event?

 
0

Share this post


Link to post
Share on other sites

I answer to myself =)
To handle stone harvest event I should use BreakEvent and spawnEntityInWorld to spawn drops.

0

Share this post


Link to post
Share on other sites

Hi.

I trying to add new tree Hevea and I have a problem putting my Hevea Logs in Log Piles. I found that isItemValid method of SlotLogPile class has condition:"itemstack.getItem() == TFCItems.logs" :(

This means that only wood from the TFC can be folded in a Log Piles... Can I somehow get around this limitation?

Or maybe I can ask the authors to make some changes to code to make this possible?

For example, to add an override method isItemLog() into ItemTerra base class and change conditions in isItemValid methods to "itemstack.getItem().isItemLog()". Or something like that so that you can freely add new logs and they can be folded in a Log Pile and can be putted in Firepit.

0

Share this post


Link to post
Share on other sites

Although Kitty likely will read this. It is best to put it is suggestion section.

0

Share this post


Link to post
Share on other sites

As stated on the home page, there will be no further updates to TFC1 unless a major crash is reported. So don't expect any changes being made to the code.

 

You could always create your own log pile block that specifically lets you place your new logs. You just won't be able to mix and match it with vanilla logs.


Although Kitty likely will read this. It is best to put it is suggestion section.

 

There is no suggestion section for addons other than the stickied post regarding visibility. The TFC1 suggestion forum has been locked since the 0.79.27 release and does not allow the creation of new topics.

0

Share this post


Link to post
Share on other sites

As Kitty said, you can make your own logpile. I would suggest using an event to detect when a logpile is intended to be placed then cancel that event and place your own logpile that extends the original logpile class with the overridden methods that you require to use your logs. It sounds like it is tough but it is actually somewhat easy and in some cases only a few lines of code. I've done this to replace nest boxes and hoppers in my mod and it isn't too hard.

0

Share this post


Link to post
Share on other sites

As stated on the home page, there will be no further updates to TFC1 unless a major crash is reported. So don't expect any changes being made to the code.

 

You could always create your own log pile block that specifically lets you place your new logs. You just won't be able to mix and match it with vanilla logs.

Thanks for the answer. I thought so, but I decided to ask just in case :)

 

 

As Kitty said, you can make your own logpile. I would suggest using an event to detect when a logpile is intended to be placed then cancel that event and place your own logpile that extends the original logpile class with the overridden methods that you require to use your logs. It sounds like it is tough but it is actually somewhat easy and in some cases only a few lines of code. I've done this to replace nest boxes and hoppers in my mod and it isn't too hard.

Thanks, I'll try.
 
It's a shame that the Log Pile working as it should. The problem is only in the slot. Just one line of code, which negates all. :(

But if Log Piles problem is solveable by adding my own Log Pile, then the problem with the Firepit remains without a solution. I can't put my Hevea Logs into Firepit.

Edited by Shurgent
0

Share this post


Link to post
Share on other sites

This looks very interesting, and the addition of Aluminum will make the use of more advanced tech possible :D

 

Have you looked into real world aluminum smelting and refining? So far I have not seen any Minecraft mods that come close. It would be very cool if a TFC addon could closely approximate modern methods, or even the old fashion methods. I think they would be similar to the low level Electrolysis that is used in the Udary mod [http://terrafirmacraft.com/f/topic/7587-tfc-07926-udary-mod-galenalimonite-extraction-ingame-alloy-calculator-tucker-bag-evaporator-pan-drying-mat/]

 

Great job so far :D

1

Share this post


Link to post
Share on other sites

 

Have you looked into real world aluminum smelting and refining? So far I have not seen any Minecraft mods that come close. It would be very cool if a TFC addon could closely approximate modern methods, or even the old fashion methods. I think they would be similar to the low level Electrolysis that is used in the Udary mod [http://terrafirmacraft.com/f/topic/7587-tfc-07926-udary-mod-galenalimonite-extraction-ingame-alloy-calculator-tucker-bag-evaporator-pan-drying-mat/]

Thanks! Very interesting mod!

Yes, I thought to make close to real world aluminum smelting and refining in future. Real world aluminum refining is: electrolysis and A LOTS of energy.

At first, the aluminum is obtained simply by melting ore. In the future I plan to add a variety of machines, including electrolyzer.

In the first stage of mod development, I want to integrate the technical mods, such as Buildcraft, Railcraft and Immersive Engineering.

I changed concept of the mod. Now this is not a small add-on that just adds the dust and plates. I decided to create a crossover mod. Yes, I know, there is already a similar mods, but I want to create my own mod, with my own concept.

 
At the moment, almost fully integrated Buildcraft. It remains to integrate BC Transport module. I need a rubber for Fluid Pipes and I stuck with Hevea :(
I guess I'll have to make my Log Piles, but Hevea Logs will not burn in the Firepit...
 
Some pictures:

 
All items:
K7nACZ0yTgI.jpg
 
Quarry and Mining Well recipes (using Drill Head instead of Pickaxes)
2016-01-30_1410.pngLYzzHvxuBRE.jpg
 
How to make a gear:
oIIZAno1E5U.jpg
 
Crafting wrench (using invar double ingot)
YYq7QKDzHlY.jpg
 
Latex
o2AXe2qLS2Y.jpg
 
Hevea Log
FgE8Jk60VhE.jpg
 
Engines:
Kkvt2Qcb9js.jpgZza7fmg6ZlM.jpg
20vU6Ko42PM.jpgslOuYCIjNhU.jpg
 
And so on...

Edited by Shurgent
2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now