• check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • check_circle Recipes
  • 4,619 views, 1 today
  • 146 downloads, 0 today
  • 6
  • 6
Frogster's Avatar Frogster
Level 34 : Artisan Waffle
5
Economy is a datapack I've been working on for a few months (namely due to procrastination).
Economy adds new triggers and a whole new system for dealing with valuables.

Usage

To start off with the datapack, you actually can't do anything new. You first must gain the "Economy" advancement, which requires you to either obtain a stack of valuables, or trade with a villager. After that, a new advancement tab appears that describes what all you can do.
Once you have the "Economy" advancement, you must run "/trigger ecoAccount.open" this allows you to open a new account with the datapack to store money.

When you have an account, these options then pop up:
  • ecoAccount
  • ecoAccount.close
  • ecoDeposit
  • ecoWithdraw
  • ecoBreak
  • ecoCombine
  • ecoSwap
Commands

ecoAccount  
ecoAccount allows you to view your account menu, which shows your current amount of money, options to close your account, deposit, or withdraw, and any other data to be shown from datapack extensions. The menu also shows the current version of the datapack.
ecoAccount.close
This brings up a confirmation menu to close your account. Either run the command twice, or hit the "Close" button in the popup menu to close your account. It also deletes any saved money, so ensure you've withdrawn all of it before closing your account.



ecoDeposit
This is how you input money into your account. You can simply run the command to bring up a dynamic menu to edit the value to deposit, or run "/trigger ecoDeposit set <value>" in which value is the number of cents to deposit. Eg: if you run "/trigger ecoDeposit set 3200", you'd deposit $32.00.

Depositing must actually have money to put into your account. It will not accept depositing of nothing.

ecoWithdraw
This is how you remove obtained money from your account. It works the same as ecoDeposit in reverse. Can take a while longer when dealing with large amounts of cash.

ecoBreak
ecoBreak allows you to change the money in your mainhand into a smaller value. Simply run "/trigger ecoBreak" and the datapack will 'break' your bill into the next value down that splits evenly.

ecoCondense
ecoBreak in reverse. Though if one type goes in evenly it will.

ecoSwap
Allows you to swap between gold and iron ingots since they're worth the same.

You can also run "/function economy:settings" to bring up the settings menu.

Settings

Require Tier Obtained to Transact: When enabled, this forces you to have the tier of currency unlocked before you can do a transaction into it.

Official Extensions
Economy supports custom extensions to make the experience better. There are numerous tags to add UI elements, as well as free customization of settings. To make your own, scroll through some of the code to find acceptable options.

Other Notes

To uninstall, run "/function economy:uninstall"
To allow a player to use the features, run "/execute as <player> run function economy:bank/account/grant_eligability"
CompatibilityMinecraft 1.17
toMinecraft 1.19
Tags

1 Update Logs

v1.0.1 Pre-Update/Hotfix : by Frogster 10/22/2022 11:53:56 pmOct 22nd, 2022

Added:
  • predicate "economy:holding_iron"
Fixed:
  • error in positioning of barrel math in ecoCombine to move it to the head
Changed:
  • Subminor version to 1
  • all version numbers to 1.0.1
Removed:
  • destroy tag in setblock command in favor of item to prevent other players picking up Swapped or Combined valuables
  • unused file safe.txt

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome