#Requirements Has item Help

1 messages · Page 1 of 1 (latest)

tough depot
#

left_click_requirement: minimum_requirements: 1 requirements: item_requirement: type: "has item" amount: 3 name: "Thangss Cookie" lore: - "Thangss Cookie" deny_commands: - '[message] &#b272fa&lH&#c47df3&la&#d788ed&ll&#e993e6&ll&#e993e6&lo&#d788ed&lw&#c47df3&le&#b272fa&ld &a»&c You do not have enough items to redeem.'
Thats what I have so far. The name of the item and lore are in console format tho, idk if that makes a difference

median fractal
tough depot
#

Yeah its not working

#

I changed it too
left_click_requirement: minimum_requirements: 1 requirements: item_requirement: type: "has item" amount: 3 name: "§x§f§b§0§0§0§0§lT§x§d§4§2§0§2§7§lh§x§a§e§4§0§4§e§la§x§8§7§6§0§7§5§ln§x§6§1§7§f§9§c§lg§x§3§a§9§f§c§3§ls§x§1§3§b§f§e§a§ls §x§0§1§d§5§c§3§lC§x§0§2§d§9§9§c§lo§x§0§3§d§d§7§5§lo§x§0§3§e§1§4§e§lk§x§0§4§e§5§2§7§li§x§0§5§e§9§0§0§le" lore: - "§x§f§b§0§0§0§0§lT§x§d§4§2§0§2§7§lh§x§a§e§4§0§4§e§la§x§8§7§6§0§7§5§ln§x§6§1§7§f§9§c§lg§x§3§a§9§f§c§3§ls§x§1§3§b§f§e§a§ls §x§0§1§d§5§c§3§lC§x§0§2§d§9§9§c§lo§x§0§3§d§d§7§5§lo§x§0§3§e§1§4§e§lk§x§0§4§e§5§2§7§li§x§0§5§e§9§0§0§le" success_commands: - "[console] ei give %player_name% ChristmasTree" - "[console] ei take %player_name% ThangssCookie 3" deny_commands: - '[message] &#b272fa&lH&#c47df3&la&#d788ed&ll&#e993e6&ll&#e993e6&lo&#d788ed&lw&#c47df3&le&#b272fa&ld &a»&c You do not have enough items to redeem.'

Im not getting any success or deny command output

median fractal
#

Do you have any left_click_commands?

tough depot
#

its not registering if I have the item or not, and is running the left click command

tough depot
#

So I did it different
left_click_requirement: minimum_requirements: 1 requirements: item_requirement: type: string equals ignorecase input: "%checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=ThangssCookie%" output: '3' deny_commands: - '[message] You do not have enough cookies to buy.' left_click_commands: - '[console] ei take %player_name% ThangssCookie 3' - '[console] ei give %player_name% ChristmasTree'

With the output being an int, is there a way to have it register if that int is >= 3?

tough depot
#

Sorry im just having a hard time. I want to check if a person has atleast 3 of 12 different items 😣