Jump to content

Question about possibly letting items to store additional info.


wsensor

Recommended Posts

Was on a server using the vending machine mod. Someone sold tons of items they had gathered up and it crashed the server by making large stacks of money.

It made me think that it needed changed somehow.

 

Would it be possible to get items that could store special info?

 

Instead of dollar bills and other various denominations would it be possible to have an item that could just hold all that info onto itself?

 

IE: Money (Stack of bills/wallet/purse whatever) Would be able to hold said amount of currency within itself. (Mainly to make mods be able to use multiple currency items without having to have a ton of recipes and such.)

So lets say: Stack/wad/pouch of bills/coins: Would contain 500 dollar bills or whatever. Now it could be possible to let players trade that and it would take it out of the stack automatically or whenever they pick money up it could be in batches stored into its own amount. Now this would not have to always be enabled in case servers don't use a mod that could take advantage of this or create items like this. (Could always make the weight variable based on amount in the special item via server settings.)

 

It would just be easier if a mod/base game could check and make change for stuff easier if a server used mods like vending machines in which case could take advantage of this without making large amounts of change in dollars/2dollars bills etc. 

 

This is just more of a way to avoid possible crashes from mass amounts of items being made in certain mods. (Mainly currency for vending machine mod and such like that as if it could store all that info in specific items and when you pick them up they auto combined it would be really nice and less likely to explode the server. This way mods like the vending machine mod could just generate a stack of bills with the correct value put in and when a player picks it up it would combine with their stack. Than letting them drop a specific value on right click or dragging to open a value box would be really useful.)

Edited by wsensor
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...