#Pay with items?

1 messages · Page 1 of 1 (latest)

hidden quail
#

Hello, I would like to create purchasable ranks with the Deluxe menu
Purchasable with items/money/xp/custom currency
I would like to know how to put items to pay for them and have a counter when you click on them, it increases the counter but with a limit of items to put and when all the requested things are completed, the payment is released

Or plugin compatible with DeluxeMenu to do this

velvet steppe
#

you need a placeholder which returns the amount of that specific item in your inventory. you can use statistic expansion for this

#

then you just need to put the placeholder in your lore
f.e. %placeholder%/64

#

when you click on them, it increases the counter but with a limit of items to put
i dont understand this. could you clarify?

hidden quail
velvet steppe
#

I click on the GUI log it takes away 64 and the storyteller goes up to 64 and I can't put it back.
yeah thats possible using /clear command of minecraft. you'd need to add this command in your click_commands.

hidden quail
velvet steppe
#

requirement you mean, right?

#

what is your block name

hidden quail
#

wheat

velvet steppe
#

%checkitem_mat:WHEAT,amt:<number>%

#

this would return yes or no. based on this, you will need to set a requirement of your menu item.

#

along with this, you'll also need one different item set in your menu. this will be shown when you do not meet the minimum requirement (no. of wheat < <amount>) to set this requirement use the same placeholder and set the view requirement to has item type

    view_requirement:
      requirements:
        has_wheat:
          type: has item
          material: WHEAT
          amount: 5

velvet steppe
#

@hidden quail did you ping me four times?

hidden quail
#

No

hidden quail
velvet steppe
#

why you can't do it? if you need assistance you can message me (in this thread) whenever you want

#

whats wrong with your current config

hidden quail
#

I'm asking you this because I don't understand what you're explaining to me

velvet steppe
#

alright ill send a basic menu once i start my pc

#

give me some time

hidden quail
#

OK, no problem

velvet steppe
hidden quail
velvet steppe
hidden quail
velvet steppe
#

i dont understand this image

#

is this like a final upgrade? f.e. you must have level 8 before you can access it

hidden quail
blissful flint
#

Hey that's a screenshot of my server :c

hidden quail
modest axle
modest axle
#
    view_requirement:
      requirements:
        has_wheat:
          type: '>='
          input: '%checkitem_amount_mat:WHEAT%'
          output: '5'
hidden quail
velvet steppe
#

and what would be the item for the next 4 rank/upgrades

velvet steppe
hidden quail
velvet steppe
#

what is 8 here? the minimum rank or materials

hidden quail
#

8 materials for 1 rank

velvet steppe
#

let me make a blueprint real quick

modest axle
#

💀 who pinged me 3 times

modest axle
velvet steppe
hidden quail
hidden quail
velvet steppe
#

after clicking it'll take all the material in your inventory and what will happen next?
final upgrade unlocks or next upgrade unlocks

hidden quail
velvet steppe
#

But you can click on the 8 in any order you want
wdym by any order

#

what i understand is you purchase the first rank by selling all 8 different materials and now second rank unlocks
to purchase second rank you need to sell 10 different materials and now third rank unlocks
to purchase third rank you need to sell some amount of different materials

velvet steppe
#

bru.

hidden quail
#

?

velvet steppe
#

that was a question

hidden quail
#

Pink rank 2 Unlock click buy gui

velvet steppe
#

@modest axle could you try to find out why it shows different colors in helpchat paste?

#

most probably im missing something

modest axle
#

idk it does it

#

nah

#

thats what it does for no reason

velvet steppe
#

bruh

#

i dont have a server so i cant test out things

hidden quail
velvet steppe
#

alright, do you have any other queries related to this menu?

hidden quail
#

I installed the code it was already like that

velvet steppe
#

uh, so do you have any problems using it?

hidden quail
velvet steppe
#

the config only consist of rank 1 😅