Terrails
Members-
Posts
186 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Terrails
-
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?
-
bump. I just need help with saving the NBT to the broken block and than reading it when placing it.
-
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:
-
Thanks it works now! Now to make a battery I just make something like my solar panel but I add input to it too?
-
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!
-
What can I do with it than? Just make the bottom side provide energy somehow?
-
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?
-
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...
-
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.
-
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.
-
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
-
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?
-
Oh I forgot to update my mappings... I was on default one's. Thanks!
-
Crash Report: http://pastebin.com/fNgHbYTp
-
which arguments? I don't have any
-
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.
-
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.
-
Thats what I think too, forge just implemented the whole API into itself.
-
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.
-
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!
-
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.
-
I literally copied everything from Mcjty because it wasn't working. https://gist.github.com/Terrails/16cb21ec39e9f66c85ef3b900dbdfab3
-
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
-
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