Jump to content

Recommended Posts

Posted

I've started developing a mod that has a few machines in it and will eventually have a power system in place. But at the moment I'm just trying to get the machines to work. I've looked all over to find tutorials on how to make them but haven't been successful. I was just wondering if there was anyone who could point me in the right direction for a tutorial on how to make these machines.

 

Thanks

Posted

Well, it would be much easier if you say what these "machines" are supposed to do.

And otherwise:

I've looked all over to find tutorials on how to make them but haven't been successful.

...something tells me that you have not searched that much because the web is full of tutorials for TEs.

 

If you want to create a TileEntity, you first have to make a block which extends the class "BlockContainer". This will add a abstract method which should return your TE. Create a TE class (extends TileEntity), and you have a Tile Entity.

You now have to register it with

GameRegistry.registerTileEntity(TILEENTITYCLASS.class, "any_name_you_want");

.

To read and save data override writeToNBT and readFromNBT.

To add a inventory implement the interface IInventory.

Posted

Thanks for your reply. I understand how to create a tile entity but I guess I should have directed my question more towards how to create the machines. And to answer your question the machines are similar to the IC2 machines in that one doubles ore, another smelts them, and others are required to create a power network.

 

I apologize for not being more specific in my request but when I said I was looking for a tutorial it was more along the lines of creating these machines, even if the tutorial is focused on making a tile entity do something.

Posted

I agree with Bedrock_Miner on this. Basically, every machine you want to make you can figure out the mechanics via the furnace. It has pretty much all the base methods you will need... And if you are in eclipse, ctrl + space for all the methods you can use xD

We all stuff up sometimes... But I seem to be at the bottom of that pot.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.