#A modded bank system

1 messages · Page 1 of 1 (latest)

split nimbus
#

So i have a modded minecraft 1.16.5 city server and i want to create a bank that trades essentials ECO balance to Good Ol' Currency 1.16.5 modded money how can i do that? with check item or smt can someone help me pls

#

with deluxemenus

pliant gale
#

it's an item?

#

are you wanting to also trade the item for money as well as money to item?

split nimbus
#

yes

split nimbus
#

and i want to put them in a "shop" with deluxe menus so i can trade them in essentials balance and vice versa

pliant gale
#

You can most likely use the has item requirement

#

I’m off to work soon, but

#

The material is usually modid_namespace

#

And use regular give commands to give the items

#

There is a shop example on the wiki using checkitem, but has item is built in

civic larkBOT
split nimbus
#

Can i get like a help with a menu made by you or smt

#

Pls ?

#

Ty

pliant gale
#

this is a slight modification to the example on the wiki

items:
  '0':
    material: GRANITE
    slot: 0
    display_name: '&fGranite'
    lore:
    - ''
    - "&8• &7Buy for: &c$&f100"
    - "&8• &7Sell for: &a$&f25"
    - ''
    - '&8Left click to buy'
    - '&8Right click to sell'
    - ''
    left_click_requirement:
      requirements:
        anything_here:
          type: has money
          amount: 100
          deny_commands:
          - '[message] &6Shop &8> &7You need &c$100 &fto buy &c1 x Granite&f.'
    right_click_requirement:
      requirements:
        anything_here:
          type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
          material: 'GRANITE'
          strict: true
          deny_commands:
          - '[message] &6Shop &8> &fYou don''t have &c1 x Granite &fto sell.'
    left_click_commands:
    - '[console] eco take %player_name% 100'
    - '[console] minecraft:give %player_name% GRANITE 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
    - '[message] &6Shop &8> &fYou bought &a1 x Granite &ffor &a$100&f.'
    right_click_commands:
    - '[console] eco give %player_name% 25'
    - '[console] minecraft:clear %player_name% GRANITE 1' # By adding "minecraft:" we avoid accidentally using a command from a plugin like Essentials
    - '[message] &6Shop &8> &fYou sold &a1 x Granite &ffor &a$25&f.'
#

the only change i made was switching checkitem to has item requirement

split nimbus
#

nah idk man

#

how can i make the item

#

like GRANITE

#

to be

#

the

#

modded item

#

?

#

this one

warped tundra
#

try gocurrency_currency