#When shopping, I can still buy things even if I don't have money

1 messages · Page 1 of 1 (latest)

violet prism
#

Here's an example:

click_requirement:
  requirements:
    hasPoints:
      type: ">="
      input: "%playerpoints_points%"
      output: "10"
thorn schooner
#

it is not working

violet prism
thorn schooner
#

how bad ?

#

even though I have points, now I can't click

#

can you give me some command somewhere where you use it?

#

@violet prism

violet prism
#

add 4 spaces in front so it's aligned properly

thorn schooner
#

okay
I have it written like this

#

'pointy15':
material: Anvil
slot: 33
priority: 3
update: true
hide_attributes: true
display_name: '&b&lForging'
lore:
- '&f&lCena: 10 Pointov'
click_requirement:
requirements:
hasPoints:
type: ">="
input: "%playerpoints_points%"
output: "10"
left_click_commands:
- '[sound] ENTITY_FIREWORK_ROCKET_BLAST'
- '[console] points take %player_name% 10'
- '[player] skills xp add %player_name% Forging 10'
slot: 33

#

.

I still don't know why it doesn't work the way I want it to

violet prism
#

?paste

fading echoBOT
#
FAQ Answer:

Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use

violet prism
#

please paste your config there

thorn schooner
#

okay

violet prism
thorn schooner
#

okay

#

so if i do it everywhere should it be the same?

violet prism
#

yep it should work, you only have to change the "10" to the price

#

you can also add deny_commands and let the player know that they don't have enough money

thorn schooner
#

I would like to add a command deny command

thorn schooner
violet prism
violet prism
thorn schooner
#

the player can still buy without points

violet prism
#

what does running /papi parse me %playerpoints_points% show?

thorn schooner
#

that I have 0 points

#

players can still buy things when they have no points

#

type: ">=" what is this for?

violet prism
#

that input is more than the output

#

basically meaning that the player has 10 or more points

thorn schooner
#

oh and what should I put there?

violet prism
#

it should already work as is

thorn schooner
#

does not work 😦

#

ň

#

I set this to point 15

violet prism
#

can you maybe try left_click_requirement: instead of click_requirement:?

thorn schooner
#

like this?

violet prism
#

yep let me know if it works

thorn schooner
#

okay