Jump to content

[1.4.7] Redstone energycell, RedpowerBatterieBox and the batterie out of fs.


Moritz

Recommended Posts

I believe Tile Entities can be used both in inventory and after being placed. Have your energy level set to a variable and store it in the Tile Entity, theoretically. I'm unsure of exactly how you would do this, but a good example would be the Redpower Batboxies. They store some of their energy even after being picked up, so I suggest looking at the Redpower source code if it's available.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Link to comment
Share on other sites

*laughs* Red Power 2 source code, available? *laughs a lot more*

But seriously, I'm not guaranteeing the code quality, but Mekanism is an Open Source mod that has blocks that do what you want. Look at Energy cubes in here. But that is for 1.5.1... If you really want 1.4.7, just backtrack through the commits...

Link to comment
Share on other sites

I believe Tile Entities can be used both in inventory and after being placed. Have your energy level set to a variable and store it in the Tile Entity, theoretically. I'm unsure of exactly how you would do this, but a good example would be the Redpower Batboxies. They store some of their energy even after being picked up, so I suggest looking at the Redpower source code if it's available.

 

Nope, TileEntities are only "accessible" after placing a block. If you want to store TE data into an item (block in your inventory), then you have to use the NBTTagCompound of your ItemStack. Write the data into that NBTTag and if you place the block again, write the NBT data into the new TileEntity.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

Ok. thanks you two for answering. That things store their information in

NTB is not my problem i do want to know how to transver it. But that shouln't be to hard to find out.

 

I' ll look at the source at mecanism.

 

Also A quote

*laughs* Red Power 2 source code, available? *laughs a lot more*

 

For myself its no problem to get the sourcecode out of redpower xD.

And every sourcecode free xD

 

Link to comment
Share on other sites

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.