Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

Posted

I hope you understand what they have togehter.

The save their energie in the items to.

 

How are they doing that? Meta could not possible (at blockside)

 

  • Author

I believe in the inventory it uses the meta-data and once placed it uses a TileEntity.

how to store the storage is not my problem. My problem is how to transfer it between Item and block. (Both ways).

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]

*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...

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.

  • Author

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

 

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.