Hey guys, To me, this seems like an easy thing to do. This is me talking, somone that has no idea about java or bukkit. please, tell me if i'm wrong, but i have been looking for somthing similar to Minetrade, a small Hmod plugin that converts produce into gold, perfect for a roleplay server. It would be greatly apperciated is someone could look into this, i really need it Heres the link to the origional thread:http://forum.hey0.net/showthread.php?tid=976&highlight=Minetrade I thought it was easy because theyve managed to fit the scource code on the front page...some of my server error codes are longer. Carnage104
hmm, sounds interesting. will see what I can do but I wont be able to look at it until after some sleep. staying up until 0400 the other night coding is taking its toll on me. as for a roleplay server ** shameless plug ** check out my new BlockBonus plugin linked below, it may have some use to you
Lol now I know I had a few too many last night, I had written a response to this and doesn't appear i posted it! Anyway, I have all the mechanics done and am now just working on implementation. Right now I have it where you look at the sign, scroll the mouse wheel and the conversion type changes (similar to Edward Hand's implementation of the picture changing). When the type changes on the sign the contents of the box are updated. However, I was thinking that wasn't the most intuitive of implementations so I was going to change it to include a button in the mix so it would be like: The box with the redstone torch under it would signify that this is the box in question, the sign and button would both just have to be within one block of the box. Put items into the box, choose the type you want to convert to on the sign, click the button, and presto-changeo you have new material. I also have it to where the remainder determination would take into account what was passed in, what the leftover value is, and then use the highest possible match of the provided materials first. I will explain it further when I post the submission, should be some time this evening depending on what is going on here. Family first ya know... P.S. Thank goodness my Java skills are much better than my paint skills... --- merged: Feb 27, 2011 9:47 PM --- Initial release is available. I was hoping to get a configuration video together but I am out of time for now. More to come, but if you follow the layout above should work Let me know what you think and we can go from here. http://forums.bukkit.org/threads/fu...-conversion-based-on-defined-values-432.6359/
I thank you SOOO much for this....ill just test it now --- merged: Feb 28, 2011 6:15 AM --- Ok one thing i would like implemented, are you able to make it that for certain types of blocks to not be converted into or from but available when converting the other way round? in other words, i want people to be able to convert stuff into gold, not anything else, for example.
The from would be easy as you would just give them a value of 0 (or don't configure a value) so they would never be converted into anything. The to I have coded and it will be in the next release. I am hoping to work on that sign idea I mentioned. The to will work like this: Code: material: diamond_ore: convertto: false value: 128 stone: convertto: false value: 1 gold_ore: convertto: true value: 64 False will be assumed for any item that isn't explicitly stated as well, so this would be the same thing: Code: material: diamond_ore: value: 128 stone: value: 1 gold_ore: convertto: true value: 64