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.

Terrails

Members
  • Joined

  • Last visited

Everything posted by Terrails

  1. I have an battery which holds Forge Energy and I generate it with solar panels, now I want to save the energy of the battery when its broken, so when I place it again it has the value before I broke it. How should I do this?
  2. bump. I just need help with saving the NBT to the broken block and than reading it when placing it.
  3. So I just made the Battery input power on all sides except the bottom which is used for output. The problem now is how do I store my power when I break the block, so when I place the block again it has the same amount of power. I know I do it in breakBlock method but how do I store it, and if anyone knows how can I change the input/output sides with specified item, I'll take a look into mods like Ender IO to see how they do it for now. This is what I have done so far. Block: TE:
  4. Thanks it works now! Now to make a battery I just make something like my solar panel but I add input to it too?
  5. I have a problem, do I need to extend my BaseEnergyContainer with TileEntity and add getCapability and hasCapability like this. It still doesn't work. Thanks for the getter method I totally forgot about that!
  6. What can I do with it than? Just make the bottom side provide energy somehow?
  7. If someone knows the answer how I can print my energy storage that would be helpful. But another question how do I fix this visual bug, if I put an ender IO conduit under my solar panel, the conduit doesn't connect to it but the power is still getting extracted from the solar. I know I have a lot of question but I'm new to Energy Systems. Is that problem on Ender IO's side or is it on my side?
  8. The problem is to I can't access my .getEnergyStored from the BlockSolarGenerator... I can only access the generating energy and the max storage energy. To access the .getEnergyStored I need to put the sendStatusMessage into the update() method otherwise my energy will always be 0/2500 and if I put it into update() I cannot make onBlockActivated method in it. Its not possible to pass a variable from one method to another...
  9. Thanks it works. Now the problem is how do I put RightClickBlock into the update() method because I can't put @SubscribeEvent there, I want it so when player right clicks the block he gets the internal capacity.
  10. I discovered another problem... I tested it with capacitor banks. Basically my solar panel as builds up power it makes that much rf/t, but it should do only 20 rf/t like I specified. It stops at 2500 rf because thats the max it can hold This is what I'm talking about EDIT: this only happens when I go through bank's configuration to Input for the second time.
  11. I made a solar panel which generates 20 energy/t and its storage is 2500 energy, I'm trying to give the player information about the stored power, I'm using RightClickBlock event but I can't place it in my update() method so it just prints it 0/2500 in the chat. If I try to put it into the update() method it says Annotations are not allowed here which is normal, so what should I do about that? BTW when I right click the block it spams the chat 4 times with the information. TileEntitySolarPanel BaseEnergyContainer
  12. Basically I can name my energy anything and if I use Forge Energy and if some other mod that uses Forge Energy has some other name for their power. Will those two both work? Naming doesn't matter?
  13. Oh I forgot to update my mappings... I was on default one's. Thanks!
  14. Crash Report: http://pastebin.com/fNgHbYTp
  15. which arguments? I don't have any
  16. One question. Can is somehow add another mod to the client for example Ender IO (just for testing with power), if I put it into run -> mods of my workspace it crashes.
  17. Just one question. What am I supposed to do to make a basic battery block (inputs power, extracts power and max storage), I don't need a GUI for now.
  18. Thats what I think too, forge just implemented the whole API into itself.
  19. I'm just wondering where could I go to start learning about power system like RF, EU.... I made couple of basic furnaces which are faster and use different kinds of fuel but I want to go further and start making a furnace which uses RF. Where should I check for that? I heard forge added its own power system.
  20. Terrails replied to Terrails's topic in Modder Support
    Weird looks like it wasn't getting called. I'm not using Constants for proxy defining again! I moved the String from Constants straight to the MainClass. Works perfectly. Thanks for the help!
  21. Terrails replied to Terrails's topic in Modder Support
    Here you go https://gist.github.com/Terrails/aa14548596593db903799ebd48a20c39 Mcjty basically made the foundation of pedestal and than in this TESR he adds the handles.
  22. Terrails replied to Terrails's topic in Modder Support
    I literally copied everything from Mcjty because it wasn't working. https://gist.github.com/Terrails/16cb21ec39e9f66c85ef3b900dbdfab3
  23. Terrails replied to Terrails's topic in Modder Support
    I have the blockstate file and its name is pedestalblock.json, thats the registry name of the block too. { "forge_marker": 1, "defaults": { "custom": { "flip-v": true }, "model": "minedustry:pedestal.obj" }, "variants": { "normal": [{}], "inventory": [{}] } } Game loads but the block is invisible
  24. Terrails replied to Terrails's topic in Modder Support
    Yep
  25. Terrails replied to Terrails's topic in Modder Support
    I have it in my ClientProxy: public class ClientProxy extends CommonProxy { @Override public void preInit(FMLPreInitializationEvent e) { super.preInit(e); OBJLoader.INSTANCE.addDomain(Constants.MODID); BlocksUtil.initModels(); } @Override public void init(FMLInitializationEvent e) { super.init(e); } } I even tried to put just MODID instead of Constants.MODID

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.