KH Economy Datapack
- Video Explanation https://www.youtube.com/watch?v=8Eycf-jzFbY
- Server-side datapack (works on single player) with Geyser compatibility.
- Uses only vanilla features.
- A vanilla economy system where players earn money through specialized work.
- Start as a Worker, get paid at sunset, and advance through social ranks based on wealth.
- Banking system allows withdrawal/deposit of diamonds/emeralds for compatibility with shop mods.
Compatibility
- This is compatable with vanilla and ALL loaders(Forge, Fabric, etc.)
- Server side only(People do not need to download anything)
- Works with Geyser
- Works on single/multiplayer worlds
- Uses all vanilla mechanics
Job System
- Worker Job - 8 Specialization Trees
Farming - Harvest crops for XP and payment
- Crops: Wheat (1 XP), Potatoes (1 XP), Carrots (3=1 XP), Beetroot (2=1 XP), (NEW!)Pumpkins (2 XP), Melons (3=2 XP)
- Levels: 500→600→700→800→900→1000→1200→1400→1800 XP
- Method: Break crops, collect items
Mining - Extract ores from the earth (Updated Recently!)
- Regular Ores: Coal/Copper (.1 XP), Iron/Redstone/Lapis/Gold (1 XP), Diamond/Emerald (4 XP)
- Deepslate Bonus: Coal/Copper (.2 XP), Iron/Redstone/Lapis/Gold (2 XP), Diamond/Emerald (6 XP)
- Nether: Gold (1 XP), Quartz (.5 XP), (NEW!)Ancient Debris (10XP)
- Levels: 200→300→400→500→600→700→700→800→900 XP
- Method: Break ores, collect items
Ranching - Manage livestock and animal products
- Animals: All farm animals give 1 XP for breeding, 1 XP + payment for meat collection
- Special: Rabbit Foot (20 XP), Wool (3 pieces = 1 payment), Eggs (no reward yet)
- Levels: 100→200→300→400→500→600→700→800→900 XP
- Anti-Exploit: 10-second cooldown after killing 2+ animals within 1 second
- Method: Kill animals, collect items, breed animals, shear sheep
Fishing - Catch fish with fishing rod
- Fish: Cod/Salmon (1 XP), Pufferfish (2 XP), Tropical Fish (5 XP)
- Levels: 50→100→150→200→250→300→350→400→450 XP
- Method: Use fishing rod, catch fish with active rod
Hunter - Eliminate hostile mobs
- Common Mobs (1 XP): Zombie, Skeleton, Creeper, Spider, Drowned, Husk, Stray, Cave Spider, Zombified Piglin, Hoglin, Piglin, Endermite
- Strong Mobs (2 XP): Phantom, Blaze, Ghast, Wither Skeleton, Magma Cube, Piglin Brute, Shulker
- Elite Mobs (3 XP): Enderman, Witch
- Special Mobs: Guardian (20 XP), Elder Guardian (35 XP), Ravager/Pillager/Vindicator/Evoker/Vex/Silverfish/Zoglin (varies)
- Boss Mobs: Warden (50 XP), Wither (50 XP), Ender Dragon (100 XP)
- Levels: 50→100→150→200→300→400→500→600→700 XP
- Method: Kill hostile mobs (no mob farms allowed)
Blacksmith - Craft equipment and tools
- Equipment: Iron (1 XP), Gold (2 XP), Diamond (3 XP), Netherite (4 XP)
- Items: Helmet, Chestplate, Leggings, Boots, Sword, Pickaxe, Axe, Shovel, Hoe
- Levels: 20→25→30→35→40→45→50→55→60 XP
- Bonus: Grants Minecraft XP (earned XP × level × 2)
- Method: Craft at crafting table
Lumber - Process wood into planks
- System: Break logs to earn credits, craft planks for rewards (4 planks = 1 log credit)
- Levels: 100→150→200→250→300→350→400→450→500 XP
- Method: Break logs, craft planks
Cooking - Prepare food items
- Simple Foods (1 XP): Bread, cooked meats, baked potato, pumpkin pie, fermented spider eye
- Complex Foods (2 XP): Cookies, soups, honey bottle, mushroom stew, suspicious stew
- Advanced Foods (3 XP): Golden carrot, cake, rabbit stew, glistering melon
- Master Foods (4 XP): Golden apple
- Levels: 200→250→300→350→400→450→500→550→600 XP
- Payment: Level × 2 base rate × items crafted
- Method: Craft at crafting table
Treasurer Job (Admin-Only)
- Special administrative role for server management.
- Salary: $100 × level daily (1 XP per day, levels at 10/12/14/16/18/20/22/24/26 XP)
- Appointment (Op required):
- /trigger setTreasurer set 1 - Make nearest player treasurer
- /trigger removeTreasurer set 1 - Remove treasurer role
- /function economy:treasurer/make_me_treasurer - Make yourself treasurer City Bank Management:
- /function economy:banking/check_city_bank - Check city funds
- /trigger spendCity set <amount> - Spend city money
- /trigger depositCity set <amount> - Deposit to city bank
Job Balance Control (1-1000%, 100 = default):
- /trigger setFarmerMult set <amount>
- /trigger setMinerMult set <amount>
- /trigger setHunterMult set <amount>
- /trigger setCookMult set <amount>
- /trigger setLumberMult set <amount>
- /trigger setFisherMult set <amount>
- /trigger setRancherMult set <amount>
- /trigger setBlacksmithMult set <amount>
Tax Control:
- /trigger setTaxRate set <amount> (1-20%, default 5%)
Banking System
- Convert between digital money and physical items.
- /trigger withdrawEmeralds set <amount> - Emeralds ($20 each)
- /trigger withdrawDiamonds set <amount> - Diamonds ($100 each) Deposit:
- /trigger depositEmeralds set <amount> - Emeralds ($20 each)
- /trigger depositDiamonds set <amount> - Diamonds ($100 each)
Social Ranks
- Advance based on total money earned:
- Peasant (White) - Starting rank
- Commoner (Green) - $50,000
- Noble (Yellow) - $200,000
- Royal (Red) - $500,000
Player Commands
- /trigger pay set <amount> - Pay nearest player (5 blocks)
- /trigger chooseWorker - Become Worker
- /trigger quitJob - Become unemployed
- /trigger levelCheck - Check skill levels
Realtor (requires Open Parties mod): /trigger setPrice, /trigger sellChunk
Payment System
- When: Automatic at sunset daily
- Formula: Level × work completed = payment
- Requirement: Must break/kill source AND collect items
- Tax: 5% automatically deducted for city bank
- Anti-Exploit: Prevents mob farms and item duplication abuse
Installation
- Place datapack in world/datapacks folder. Admin uninstall: /function economy:uninstall
Uninstall
- Delete the core folder inside the datapack (located inside kheconomy.datapack/data/economy/function)
- /reload in your game (when you do this after removing the core the game will not set new objectives)
- /function economy:uninstall (This uninstalls everything from your world)
- Delete the datapack (kheconomy.datapack) ###Future Plans
- Config file for server balancing
- Enchanting and potion skill trees
- Enhanced shop integration
- Social status expansion
- City bank features