UnlockCraft
choose your recipes
Why did I make this mod?
In the beginning Minecraft was really fun for me. I loved to make my first recipes in Vanilla Minecraft. Even exploring through all the cool Modpacks and Mods there are around here was heavenly fun for me. But then I realized that hunting for the ultimate suite of armor with the perfect set of tools was quickly getting boring. I missed the achievements. HQM tried to change that. Successfully for a big part.
But still it is mostly a straight line. At the end most people are at the same point. Most people have their ultimate base with magic and machines in one place. And that was the point to this mod: why not having jobs in terms of crafting like in Real Life? Why not making crafting recipes to your Minecraft Skill Points you can spend during the game? At the end everyone has their own set of "crafting skills" that are best used in a group of players with different crafting specializations. One does the weapons the other is making food and decoration, the neighbor is good at making armor. Maybe you can trade with him?
What is this mod about?
This mod is about unlocking crafting recipes by selling as much different items as possible.
At the beginning you can't craft anything. Not even a crafting table or 4 wood planks out of 1 wood.
So how do you get to craft a crafting table and your diamond armor suite you crave for?
You need to buy every recipe you want to craft and sell stuff to get more recipes. But you will need to decide
what recipes are worth buying and which aren't. You have to decide whether you go towards Thaumcraft or
Tinkers Construct or your RoboSuit. You have to specialize! You have to learn crafting again!
Every price you pay for a recipe is individually settable. Selling and buying is fully configurable.
You can even bulk set prices by using ranges (IDs 1000-1700 = 600 RP) or search terms
("supermod." = 5000 RP) or disable items (just set the price incredibly high)
How it works
You have a starting amount of Recipe Points (short RP), which you can spend on recipes. For example you have
500 RP and every recipe costs per default 100 RP. Whenever you want to craft a recipe, which is not owned by
you and you can afford, you get the message "Recipe (ID) costs 100 RP, buy? /unlock ID"
So yeah, then you can buy it with /unlock ID For example /unlock 58:
Voila, you can craft the wanted recipe.
When you are low on RP, you can sell items in your hand via /unlock sell and you get 1 RP per Item.
Some details about the selling mechanics (don't read if you get bored by maths)....
But after you get 64 RP from one item type, you need double as much to get 64 RP.
So if you sell 10 Stacks of Cobblestone, you get:
64 RP + 32 RP + 32 RP + 16 RP + 16 RP + 16 RP + 16 RP + 8 RP + 8 RP + 8 RP = 216 RP
Will you sell 5 Stacks of Cobblestone afterwards, you get:
8 RP + 8 RP + 8 RP + 8 RP + 8 RP = 40 RP
One stack of Dirt would still give you 64 RP though, because you haven't sold Dirt yet.
Actually you can't get unlimited RP with one item, because after you get less then 1 RP for a stack of one item, the
number will be round to 0. So time to get another item for selling
Notes
- Works in Singleplayer and Multiplayer! Tested with Tolkien Craft 2-Server and FTB Lite-Singleplayer.
- With version 0.3 no longer needs the mod installed on the client. (You can do it for Singleplayer use though)
- This is NOT a Bukkit Plugin, but Forge only.
- Currently only allows crafting in inventory and vanilla workbench.
For example Tinkers Crafting Table won't work. I will fix that later if there is a way to get a definitive Player that is using the table right now. So automated crafting is not possible.
Usage Ideas
With this mod you can for example give every player 10 RP, set the recipe price to 1 RP and disable selling by
setting the sellPriceFactor to 0. Now every player on your server can wisely choose only 10 recipes!
Planned Features
- GUI
- Recipe groups (buying a pack of recipes at once, like: /unlock vanilla or /unlock tinkersconstruct)
- Crafting areas (here some recipes are unlocked for free for all players that are inside this region, when they leave the region, the recipes are gone)
- Home chunk (every machine inside this chunk can use your recipes)
Commands
How to download
Put the unlock-*.jar in your mods-folder.
Look in the "Files"-section.
Config
unlock.cfg - Parameters for buying, selling and default values.
# Configuration file
admin {
# Operators and players in cheat mode can use OP-commands. Disable for Story-Modpacks. [default: true]
B:enabled=true
}
general {
# Percentage of the standard recipe buying pricing [range: 1 ~ 10000, default: 100]
I:buyPriceFactor=100
# Currency symbol [default: RP]
S:currency=RP
# Default price for recipes without set price [range: 0 ~ 999999, default: 100]
I:defaultPrice=100
# Item IDs like 4 (Wood) with 6 Sub-IDs have 6 times the default price as price [default: true]
B:multiPrice=true
# Number of items sold of one type until price gets lower, 0 = deactivated. [range: 0 ~ 4096, default: 64]
I:priceLimit=64
# Percentage of the standard item selling pricing, 0 = deactivates selling [range: 0 ~ 10000, default: 100]
I:sellPriceFactor=100
# Starting amount of money for recipes [range: 0 ~ 999999, default: 500]
I:startBudget=500
}
refund {
# Amount of the set item you need to refund [range: 1 ~ 64, default: 1]
I:amount=1
# Allows to refund recipes [default: false]
B:enabled=true
# ID of the item that is used by refunding [range: 1 ~ 2147483647, default: 264]
I:item=264
# Percentage of recipe points you get from a refunded recipe [range: 1 ~ 100, default: 50]
I:percentage=80
}
unlockPlayers.cfg - Player database
unlockPrices.cfg - Price database
Feedback
Feel free to give me feedback on this mod. It's actually my first Minecraft mod.