Can Command Blocks Subtract Essentials Money From a Nearby Player?

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Raycubed

New Member
Jul 29, 2019
7
0
0
I found one command that was /eco take <name> <amount>

But that's for one specific name which would not be applicable for a public function.




Here's want a want to do.

Setting: Shops

Scenario: Player presses button to activate a dispenser and a command block at the same time. Dispenser gives wanted item and the command block removes the set amount for that item.

You may ask "why do it that way, when there's other ways?"

Because it looks cooler lol
f9809ead90ac2162486b2062c3f738bf.png
 

null123

Well-Known Member
Mar 27, 2014
567
280
79
Have the command block target the nearest player, and run this command: /sudo pay (owner or something?) (Ammount)