Value
What it does:
This a very simple plugin made for convenience. It calculates the price of an item using the prices of the items used to craft it. Clean and simple.
The advantage of having this plugin is that if something ever gets a better value, then all you need to do is set the new price for the item, and anything that uses it will also raise/lower in value.
Here's an example:
If notch were to suddenly do an update that makes wheat OP, then you would normally have to set the new price of every item that uses wheat as a crafting ingredient. Well with this plugin, all you have to do is set the new price of wheat, and everything that uses it as a crafting ingredient will be affected by the new price.
The main idea of this plugin is to make server administrators less of a burden to place the prices on store items, since all this plugin does is show you the value.
Main features:
- Calculates the price of an item using the prices of the items used to craft it.
- Since it only uses 'raw' items, you only need to set up the price for about 1/4 of the total amount of items in Minecraft. Don't worry, There's a default configuration with prices set up by me, so you only need to modify if you feel like it ;)
- Make selling signs that use the values of only raw items to calculate the price of all the items in Minecraft.
How it works:
To get the price of an item, simply hold the item in your hand and type '/value'. The total price is multiplied by the amount held.
To make a Value sign, type in a sign as follows:
[Value]
Sell/Buy
Item ID*
Amount:Price*
* These two options only apply to buying
Now anyone with the value.trade.* permission will be able to sell/buy anything they want by right-clicking this sign. I only made the sign as a little 'extra', but buying/selling is not the main focus of this plugin.
Commands:
- /value - Tells you the price of the held item
- /value sell - Sells the held item for the price calculated by Value. Also takes into account the price drop set in the configuration.
- /value setworth - Sets the prices of the worth.yml of the Essentials plugin to the prices in Value
- /value reload - Updates the prices of raw items in the configuration file.
The configuration file:
The configuration will be generated in the plugin folder when you first run the server with the plugin. Just read the comments and you will know what to do.
Permissions:
- value.command.value - Permission to use the /value command.
- value.command.help - Permission to use the /value help command.
- value.command.setworth - Permission to use the /value setworth command.
- value.command.sell- Permission to use the /value sell command.
- value.command.reload - Permission to use the /value reload command.
- value.trade.sell - Permission to sell things with the sell sign.
- value.trade.buy - Permission to buy things with the buy sign.
- value.sign.sell - Permission to create/break sell signs.
- value.sign.buy - Permission to create/break buy signs.
Requirements:
- Vault
- An economy plugin


-
View User Profile
-
Send Message
Posted Aug 30, 2012@XxkmachoxX
You're probably right about the color of the sign...i just downloaded an older version last night and noticed i was wrong about that. As for the Milk_bucket I tried assigning a value to it and it still told me i was missing ingredients after a /value reload. I must be missing something. I also noticed that every piece of Iron Armor was giving me the same value ($20something) as if I was having the same issue that Techtony96 described and you fixed. I don't know whats going on. I finally just downloaded the last version that you still used the 'crafted items.yml' (v.1.2.0) in and just manually added the 1.3.1 items. Seems to be working for the most part. I can sell Book_and_Quill to the signs (though the book opens as I sell it) and Emeralds, but not EnderChests, Tripwire_hooks, or Emerald_Blocks (Tho they will give me a correct value using the /value command which is what matters!), and I cant do anything with the new Golden Apple as it uses the same name as the old one. Still can't sell Torches or Chests to the sign and there isn't any errors in the console or messages from the plugin when I try. I might as well be right-clicking the wall with my bare hands. I'll try removing the RWtorchLight plugin to see if that makes a difference (most players aren't going to be selling their torches anyway).
Thanks for the response! Keep up the good work.
BTW....not sure if it makes a difference, but I'm using CraftBukkit 1.3.1. R2.0 (I noticed the plugin says its for R1.0)
UPDATE:
I re-downloaded the 1.3.2 version of this plugin. Here are my findings:
Iron Armor (all pieces) = 22.89 (Iron Ingot is 21.80 for 1).
Gold Armor (all pieces) look for Gold_Nugget (not added by default) value to make....should be Gold_Ingot.
Cake IS working when I add a value for Milk_Bucket (my mistake...wonder what I did wrong last night).
These Items will NOT sell to a Value Sell sign: (not my plugins as I removed everything but Value for testing)..
Torch,
Enderchest,
Tripwire hook,
and chest.
There may be more but those are the ones I found. All of these items can be sold using the '/value sell' command just not with the sign.
-
View User Profile
-
Send Message
Posted Aug 30, 2012@PsychoFad
Actually, cake is calculated fine :P
If you see in the console, it indicates that it's missing the raw item value of milk_bucket, and it adds it automatically to the list of raw items as '-1'. Just set the price of milk_bucket to something other than -1 and it will calculate the value of cake. You could say the plugin 'adapts itself' to anything I might have missed xD
And this plugin never changed the color of [Value], you're probably just confusing it with another plugin :D
-
View User Profile
-
Send Message
Posted Aug 29, 2012Just want to say I love this plugin. I do however miss the craftable items.yml file as I could easily add in items that you might have missed. Like for instance, Cake! One more thing I noticed...minor annoyance though...the Value Sell sign...I thought it used to turn [Value] blue if it was set up correctly. I set up a sign, it didn't change at all, I destroyed it...set up another...checked the config....then decided to try and sell something and it worked. Mind Blown. Can't seem to sell a torch or a chest to it but that may be because of my RWtorchLight and QuickShop plugins...not sure.
Anyways...keep up the good work! Thanks!
-
View User Profile
-
Send Message
Posted Aug 19, 2012@CrazyDavid14K
I don't know what DynamicEconomy is xD But one thing I can tell you for sure is that its not meant to replace an economy system. The goal of this plugin is to help a server administrator by giving him an idea of what the price of any given item should be, according to the price of the raw items. So lets say you want to know what a sign would cost. Well the plugin looks for the "root" of the materials needed to make a sign:
2 sticks -> 2 planks
-v6 planks -> 8 planks -> 2 logs -> gets the price of logs * 2
Since crafting a sign gives you 3 signs, it divides the value by 3, so it ends up giving you the price according to the 'raw materials' needed to make it.
-
View User Profile
-
Send Message
Posted Aug 18, 2012Is this like DynamicEconomy ?
-
View User Profile
-
Send Message
Posted Aug 16, 2012@Techtony96
Here you go: https://dl.dropbox.com/u/28682356/Minecraft/My%20Plugins/Value/Value.jar
I will add a data values, can't promise it will be soon though :P
-
View User Profile
-
Send Message
Posted Aug 16, 2012direct link for the new download? it seems to take 12-24 hrs for it to update.
Also, could you add support for data values? that way i can price it if i want to.
-
View User Profile
-
Send Message
Posted Aug 16, 2012@Techtony96
Fixed the problem with armor (was also happening with weapons :P ) and Golden apples now get the right price!
The reason wool only has one price is because the price of wool is the sum of 4 strings and if its colored an ink sac(which is a dye). I'll probably add data values for a later patch, so that way you can put a price for each different dye color(and different grass types, etc), but for now that is not a priority. Also lapis lazuli is treated as a dye because it is one! When you break a lapis lazuli ore, it gives you a random amount of lapis lazuli. If it used the same price as the ore, you would either have an overpriced ink, or an underpriced ore.
Anyways, thanks for the feedback, it really helps! :D
-
View User Profile
-
Send Message
Posted Aug 16, 2012Issue Items:
Wool (Only one price of it) Iron/Gold/Diamond Armor returning the price of Iron/Gold/Diamond GoldenApple not taking the price of Apple Dies not taking from being crafted LapisLazuli Treated as a die, not an ore Potion's not working
Basically, the plugin isn't taking into account data values. And Golden Apple seems to be messed up.
-
View User Profile
-
Send Message
Posted Aug 15, 2012@Techtony96
Damn sorry but no, I'm at the university right now and the plugin is at my desktop :P By the time I get home it will probably be approved, but if not, then ill send you a link!
-
View User Profile
-
Send Message
Posted Aug 15, 2012think you could PM me a direct link?
-
View User Profile
-
Send Message
Posted Aug 15, 2012Had to apply a small patch already :P, so wait till 1.3.1 is approved
-
View User Profile
-
Send Message
Posted Aug 15, 2012@Techtony96
I have finally uploaded the new version of Value! I had to change the code a LOT, but now it will always be up-to-date with every new version of minecraft, unless they make some sort of overhaul. If the plugin encounters a new raw item when a player attempts to see its value, it will indicate what the new raw item is in the console, and put it in the list as '-1', ignoring it someone attempts to get its value :D
Unfortunately it takes time for bukkit to approve the new version, so you might not see it in a while.
-
View User Profile
-
Send Message
Posted Aug 15, 2012@XxkmachoxX
Awesome, think the version is going to be up today? My players have been waiting for the market..
-
View User Profile
-
Send Message
Posted Aug 14, 2012@Techtony96
That actually makes a lot of sense :O
Ok then changed smelting price to take 1/8 price of coal :)
I actually got everything working now, just fixing a couple of bugs and I'll upload!
-
View User Profile
-
Send Message
Posted Aug 14, 2012Take 1/8 the price of coal because u can smelt 8 things with one piece of coal.
Also, no update today? :(
-
View User Profile
-
Send Message
Posted Aug 14, 2012@Techtony96
I guess I know what you're trying to say, the only thing I don't understand is why take 1/8 of the price of coal. But if you don't want money added to smelting, just change smelting to 0. So there will be 0% price added.
-
View User Profile
-
Send Message
Posted Aug 14, 2012@XxkmachoxX
Sounds amazing. This integrates perfectly into my server set up! Will be watching this thread today to see when it's updated.
Question though. This plugin adds money to smelting. But could you have the time be free, as ppl could buy dimaonds, craft diamond blocks and sell them and make money. Instead of the stuff in the config, why not for smelting, take 1/8 of the price of coal.
I know what i said above is kind of confusing, but i will explain it in greater detail if it doesnt make sence
-
View User Profile
-
Send Message
Posted Aug 13, 2012@Techtony96
I'll probably have it up by tomorrow, just need to work out how to handle 'infinite loops'
For example, 1 diamond block creates 9 diamonds, 9 diamonds create 1 diamond block, so it just keeps iterating through that forever. I got it working but now I just need to make a method that will return the 'most basic' item between the two to use as a raw item, which will be the one that requires more (aka, the diamond). I'll do that tomorrow though, right now its late and I need to get my sleep! :)
-
View User Profile
-
Send Message
Posted Aug 13, 2012@XxkmachoxX
ETA on this? If you want a bit of help, i can. Im still new, but i am always learning