A Bit is sort of like a gold coin except way cooler. This is not a standalone mod. This is an API of sorts. It is meant to be used by modders and eliminates the need for a currency system all their own.
SYSTEM OVERHAUL:
I removed the old transaction class and rewrote the entire system due to bugs and messy code. The new class that handles everything is called Bits. Its way easier to use and I've added a GUI. I decided to go with the "one account game wide" system and it works great. If you don't have an account all you do is go into your world. A gui will pop up and thats it! You have an account. The gui can be accessed through the default keybind "B" or whatever you change it to. In the gui you will be able to make deposits and withdrawals from your account. I hope that this new system will be easier for modder to use in their own mods.
How to use Bits in your mod:
This goes in your mod_ file
public static Product PRODUCTNAME= new Product(Item.swordGold, 1, 10);
The product class takes the fields item, the amount you get per purchase, and cost of the item. So the code above would give you one gold sword at a rate of ten Bits per purchase. To buy the product you have to call the Bits class. You can call this anywhere you want. It can be in a GUI class on button click or it can just as simply be on block right click. Put this code where ever you want to buy the product.
Bits.makePurchase(mod_MODFILE.PRODUCTNAME);
Thats it.The Bits system will do all the rest.
When I release Bits I will also be releasing myShop which will allow you to create shops in minecraft. There will be display cases, shelves, and a lot more. More information for myShop will be revealed soon.
Please spread this around as it will make currency simple. No more 30 types of money, one per mod. No more using gold ingots as money. +1 this is you want a universal currency for minecraft.
Subscribe to my youtube channel for videos on Bits.
Since Bits is almost ready for release(aside from a few bugs) i have started working on the myShop mod. It allows you to make products in-game and make shops all using the Bits system.
Since Bits is almost ready for release(aside from a few bugs) i have started working on the myShop mod. It allows you to make products in-game and make shops all using the Bits system.
Make shops? How will that work? Multi-block setup?
Make shops? How will that work? Multi-block setup?
In game you will register a product with a registration table. It will give you an item called product, which stores the items name, the cost of the item, and the amount you get per purchase. There will be blocks like shelves and display cases in which you can place the product and the transaction class will get the information of the product from the item. Its pretty simple but took forever to implement! lol
In game you will register a product with a registration table. It will give you an item called product, which stores the items name, the cost of the item, and the amount you get per purchase. There will be blocks like shelves and display cases in which you can place the product and the transaction class will get the information of the product from the item. Its pretty simple but took forever to implement! lol
A Bit is sort of like a gold coin except way cooler. This is not a standalone mod. This is an API of sorts. It is meant to be used by modders and eliminates the need for a currency system all their own.
SYSTEM OVERHAUL:
I removed the old transaction class and rewrote the entire system due to bugs and messy code. The new class that handles everything is called Bits. Its way easier to use and I've added a GUI. I decided to go with the "one account game wide" system and it works great. If you don't have an account all you do is go into your world. A gui will pop up and thats it! You have an account. The gui can be accessed through the default keybind "B" or whatever you change it to. In the gui you will be able to make deposits and withdrawals from your account. I hope that this new system will be easier for modder to use in their own mods.
How to use Bits in your mod:
The product class takes the fields item, the amount you get per purchase, and cost of the item. So the code above would give you one gold sword at a rate of ten Bits per purchase. To buy the product you have to call the Bits class. You can call this anywhere you want. It can be in a GUI class on button click or it can just as simply be on block right click. Put this code where ever you want to buy the product.
Thats it.The Bits system will do all the rest.
When I release Bits I will also be releasing myShop which will allow you to create shops in minecraft. There will be display cases, shelves, and a lot more. More information for myShop will be revealed soon.
Please spread this around as it will make currency simple. No more 30 types of money, one per mod. No more using gold ingots as money. +1 this is you want a universal currency for minecraft.
Subscribe to my youtube channel for videos on Bits.
Nice! So, when do you plan on releasing?
Hopefully soon, I just have a couple bugs i need to fix
I hope to see this soon then .
EDIT:
This is the deposit operation.
The format for the command is "/bitbank deposit BITCARDPIN AMOUNTOFMINEBITSTODEPOSIT"
Nice work! Do you also plan to have some kind of gui for people that don't use commands?
Awesome!
PixelPond - Wicked Fast Servers in OCE
no sorry it wont
Lol, good thing it's in the W.I.P. stage.
Since Bits is almost ready for release(aside from a few bugs) i have started working on the myShop mod. It allows you to make products in-game and make shops all using the Bits system.
Make shops? How will that work? Multi-block setup?
Awesome. Can't wait for this to come out.