EnergyCraft
EnergyCraft
Downloads:
Newest Version: 1.3.0 Beta | CB1.5.1-R0.1 Compatible!
EnergyCraft Reloaded by R_Shadowhand: Download Here
Description
Do you have tons of random things in your chests that are just taking up room?
This plugin solves that!
Now you can turn your useless cobblestone into diamonds with an "energy condenser".
Why Should I use it?
Although Equivalent Exchange has an Energy Condenser (not anymore), and is included in the tekkit pack, many people would prefer to be able to use such a feature without requiring client-side mods. This plugin will allow a server to have this feature, without any extra requirements, because it will only utilize vanilla blocks/graphics. While some people will flame this for directly copying EE, I disagree. EE requires client mods, whether single or multi-player. This plugin does not claim to be superior to EE, since many features are not implemented. It is simply an alternate that will work just fine in vanilla minecraft.
Features
- Use vanilla blocks to build a Equivalent Exchange-esque "Energy Condenser."
- Use EE's EMC values, or specify your own!
There will be a new video soon documenting all the newest features!
I've Got the Plugin. Now What?
Building The Condenser
Lets get started on building your first condenser!
There are four levels of condensers that can be built.
The higher the level, the less energy is lost through conversion (configurable)
The standard condenser recipe is:
Chest | Enchantment Table | Chest
Iron Block | Obsidian | Modifier Block
By default, here are the modifiers along with loss factors:
Level | Modifier | Loss % |
---|---|---|
1 | Gold Block | 35% |
2 | Emerald Block | 25% |
3 | Diamond Block | 10% |
4 | Beacon Block | 0% |
(Both the modifier block and % loss is fully configurable)
Using it
To set a target for the condenser, just right click the sign, or any part of the enchantment table!
Now, to get the condenser going, just dump anything you want into the INPUT (left) chest, and watch!
Please note, opening either IN or OUT chest requires the permission ec.use, or ownership over the condenser (see Permissions section)
Other Things
You can right click the sign/enchantment table while you're not holding anything to PAUSE/UNPAUSE the condenser. This change will be displayed on line 4 of the sign.
If you stop the server, all condensers will be saved to "condensers.sav", and loaded again upon server start. All EMC and items will be saved.
Left clicking the sign will reset the condenser, but only if you have the permission ec.reset
Condensing a damaged tool will only return a percent of it's total EMC.
(1 - (damage_value / max_damage)) * EMC_value
Setting a damaged tool as a target will create more tools with the same damage level. If you want to condense tools at full health, you must have one available to condense...
Commands
'/emc' will tell you the value of the item in your hand. This will return the FULL EMC value, so if your condenser has energy loss, the item will actually be worth less
'/ec reload' will reload the EMCConfig while the server is running. This allows for editing the config without stopping the server. All condensers and /emc will be updated the moment this command is run. This command requires the perm "ec.reload"
Permissions
Action | Owner | Needed Perm |
---|---|---|
Build | Doesn't Matter | "ec.build" |
Edit | Yes | none |
Edit | No | "ec.edit" |
Open | Yes | none |
Open | No | "ec.use" (see note) |
Break | Yes | "ec.build" |
Break | No | "ec.build" AND "ec.edit" |
Reset | Doesn't Matter | "ec.reset" |
/ec reload | n/a | "ec.reload" |
Get build/destroy messages | Doesn't Matter | "ec.broadcast" |
"Edit" means changing the target block, or pausing a condenser. Essentially, any right clicking the sign is an edit.
"Open" means accessing the I/O chests. This perm can be turned off in the config.
ec.use is unique in that you can give a user the ability to access any condenser with ec.use.* or specific condensers.
The perm format for a specific condenser is as follows: ec.use.[World]:[X]:[Y]:[Z]:[Orientation]
An example of a specific perm would be: ec.use.MyWorld:32:15:-135:2
To find the specific ID of a condenser, please check your condensers.sav file. The world, X, Y, and Z points are the location of the Iron block in the condenser. The orientation is a number 1-4, whose calculation is too difficult to explain. Please, just look in the sav file!
Configuration
The main config (config.yml) has the following options:
- check-interval: 1
- max-stack-condense: 4
- permission-to-use: false
- broadcast-messages: true
- level1: 41-35%
- level2: 133-25%
- level3: 57-10%
- level4: 138-0%
check-interval controls how often blocks in the INPUT chest will get condensed. 1 = once every .25 seconds. 2 = once every .5 seconds, etc... (Note, this is not exact because your server might lag or run slower/faster than it theoretically should)
max-stack-condense controls how many blocks are created at a time in the OUTPUT chest if there is extra EMC in the condenser.
permission-to-use turns ec.use on and off. When this is false, users do not need ec.use to access I/O
broadcast-messages Messages will only be broadcast to users with ec.broadcast. If this is false, no messages will be broadcast at all
levels The first number is the BlockID of the modifier block, and the second is the percent loss.
The EMC config (emcConfig.yml) has a option for every item ID.
- The values are stored as 'ID-DAMAGE_VALUE': EMC
- Some items are stored as 'ID-A':EMC - this means that regardless of the damage value, all items with that id will have the same EMC (like wool)
- Some are stored as 'ID-X':EMC - this means that this item can be damaged, and it's emc will be calculated as a percent of the given EMC, based on damage.
Notes
Source code will be available on my github
Plugin Idea by inventorman101, code by vsams14
My other plugins:
I've updated everything to 1.5.1, added a bunch of bugfixes, and new features. Look to an upload later today!
here is an estimated guess to some
1.4.7 stuff
emerald (2 diamonds) = 16384
(block) = 147456
cobble fence = 1
mossy = 145
flower pot = 192
nether star (realy high) = 100000+
beacon = 100197+
carrot (same as melon) = 16
potato (same as melon) = 16
same with cooked version
carrot on stick = 28
anvil = 7936
golden carrot = 2059
1.5 stuff
hopper = 1344
nether brick = 2
quartz = 124
(block) = 146
comparitor = 331
trap chest = 332
daylight sensor = 387
minecart (tnt) = 2244
(hopper) = 2624
activator rail = 164
Pressure Plate (iron) = 512
(gold) = 2048
most of this is guessed on rarity but a good estimate
This is an awesome plugin! I have started using it with libigot 1.4.7 and it works. But sometimes, after a while of being inactive, it simply stops counting towards the output product, even though it is consuming the input items. (No errors in the log.) To make it work again, I need to right-click with the desired output item again. However, all accumulated energy is then lost.
Is this a known bug?
Oh, if you tease me too much, I might freak out. I'm going to be refreshing this page all weekend now :P
@pknull
Yes, though the situation may improve over this weekend...
I just found this plugin and it looks amazing. Am I understanding right that it doesn't work under 1.4.7 yet?
I get this error spamming me 24/7, occupying my console. http://puu.sh/28Zf7
I only have one condenser.
@vsams14
Well if you don't have time, you just don't and it's ok :) I'm afraid as we had so many error messages and problems in 1.4.7 RB of crfatbukkit that I had to remove this plugin from our server list currently. That said, if/when an update comes out we'll be definitely up for re-adding it to our plugin list as it was really popular :D
I am currently in a theatre production, which is eating up SO much time. After it ends, I swear I'll get some updates out. I know I have made a lot of empty promises in the past, so you have every reason not to trust me, but lately I haven't had time for anything, including even playing minecraft, let alone programming for it.
vsams14
@vsams14
Ah awesome :D
I'm PMing you all the missing items or ones that might need second checks as the list is pretty large. Hope it helps :)
Edit: Can I ask a query about the plugin? Does it keep the chunks around the condenser loaded even when players are not present? (I would hope they didn't, or we had an option to turn this off).
@Oli1593
Thanks for helping other users. I've been really busy lately so I haven't had a chance to answer questions. A permission for use will be added in the next update and will be toggleable in the configuration as not everyone wants this.
In addition, if someone has already added 1.4.6 items to their emcConfig, could you post them here so I don't have to look them all up?
vsams14
@pnupy
If you read my below comment it says how to... pfft if you had a tl;dr here it is again. You go to the file emcConfig.yml which is in the energycraft folder. That is where you can control the energy values of all the items. In there (I'd recommend in ID order as that's the way the list is done) add a new line in the same style as the other items using the custom item id and energy value.
Note, this MAY work but you should test with the give command in bukkit with the new item id (if that works I'd guess adding to the emcConfig would).
E.g. Let's say the mod I had added an item that had the ID 1:5. This is how I'd add it 0-0: 0 Air 1-0: 1 Stone 1-5: 10 TEST
Note I've the price is 10 energy for the item.
how would i set this up to work with direwolf20's modpack. i want to include the ids from other mods that were by default in equivalent exchange. any help would be much appreciated.
@coolo1
The one error message detailed below. It seems to work, but for an unknown reason it can sometimes generate the error message. I'm using the latest one in the download link, so yes. Rarely the plugin has an issue where it spams a message similar to: "Energycraft has detected an exception" which continues until you destroy the condenser or reload plugins. (1.4.6 R0.1 beta build). It's semi-stable, and doesn't actually crash the server when the error message occurs although it'll spam your console - I watched it for about 5 minutes until I decided to reload. Bug also can wipe the energy value stored in the condenser. As far as I know, it won't start running on 1.4.6 r0.2 beta build or later as I tried to update our server to then a few days ago. Hope this helps :) Will be great to have this updated with the new items and working fully.
Just a quick query: Are you able to disable usage of certain items - would this be setting the energy value of them to 0? EDIT: Tested, yeah setting it to 0 will disable it. And would you add a permission for the command "/emc"? - Not essential but I'd like to use it.
EDIT2: Worked out why the console errors came up. One player was mining diamond ore with fortune picks and then converting the diamonds obtained into diamond ore for placing again. Clearly overloading the plugin and causing trouble basically. Disabled ores in our energy values to prevent this bug :)
EDIT3: Also you can add items in the config file which is handy, so I can add new items for energycraft :)
@Oli1593
Any error messages? What happens when you click the sign or destroy it? Are you using the EnergyCraft beta?
[Edit] Agreed, error in console and condensor not working. Can not be activated or destroyed and chests are empty. Task #28 generated an exception. Spams console for a few seconds then stops.
Love this plugin, one suggestion for implementation however - Any way to make a permission for use, as currently my server gives donators access to building one of these (once their donation has expired they'll be able to still use one however). Still working on the 1.4.6r0.1 beta build, except new items not accounted for but great job! :D Currently doesn't work on 1.4.6R0.2 beta build
Unfortunately, I will not have access to any computer over this break, which means that no coding will be done. I am also recruiting coolo1 as PR and Moderator to assist me with this project. I apologize for the inconvenience, but I will attempt to get back to work as soon as possible.
vsams14
So I know I've been inactive for a while. As much as I love Minecraft, school is much more important to me. This week, I'll be taking all my finals and I have a week off for Christmas, so I'll try to get as much done as possible. However, there is no guarantee, as I won't have access to my regular computer and will be stuck with a family laptop...
If the general public would like more reliable and quicker updates, I am open to having a secondary dev help out for the times when I'm not available. If anyone is interested, applications will be taken via PM ONLY, and I request that you do your utmost best to maintain proper spelling and sensical grammar.
Your King and Overlord,
vsams14
@vsams14
There were no errors, it appeared to load correctly, and nothing on failed use. It did work earlier, broke on update to 1.4.5.
It is Chest-EnchantingTable-Chest IronBlock-Obsidian-DiamondBlock
right?
I have Beta?(possibly dev, but I think it's beta) 0.2. It only /says/ it works with Beta 0.1
@Skyshayde
Please check your console for any errors. Was the plugin loaded properly at server start? Are there errors when you right click the sign or enchantment table?
-vsams14
Ps, I'm a terrible and irresponsible person, but I did not have time this weekend to work on coding. I will try to get it done this Wednesday or sometime soon!