#Clair Error !

1 messages · Page 1 of 1 (latest)

wintry cypress
#

Hey guys, i want to ask why my code its not working right, its like when i sell a rotten fresh its giving me the money but its clair my whole inventory and i lost all my items!

'Month-01-1': material: ROTTEN_FLESH slot: 11 priority: 1 update: true display_name: "&b&nRotten Flesh" lore: - " " - "&fBuy price: &a$0.75" - "&fSell Price: &#FF2020$0.25" - " " - "&8⟶ Left click to buy" - "&8⟶ Right click to sell" left_click_requirement: requirements: hasMoney: type: ">=" input: "%vault_eco_balance%" output: "0.75" deny_commands: - "[message] &cYou do not have enough money!" left_click_commands: - "[takemoney] 3000" - "[console] minecraft:give %player_name% minecraft:rotten_flesh 1" right_click_requirement: requirements: has_item: type: has item material: 'ROTTEN_FLESH' amount: 1 deny_commands: - '[message] &cYou don''t have enough &6ROTTEN FLESH &cto sell! Required: 1' right_click_commands: - '[console] clear %player_name% ROTTEN_FLESH 1' - '[console] eco give %player_name% 50' - '[message] &aYou sold 1 &6ROTTEN FLESH &afor $50' view_requirement: requirements: available: type: '==' input: '%localtime_timezone_Europe/Berlin,M%' output: '1'

brittle rapids
#

try minecraft:clear instead of clear

#

@wintry cypress

wintry cypress
#

Cool its working now ! Thanks you 😄

brittle rapids
#

yep!, no problem

#

just fyi, it was using the essentials clear command

wintry cypress
#

it was first time that i used this command, i saw it first time at the info from deluxemenu at google

brittle rapids
#

makes sense

wintry cypress
#

did you know maybe why i dont get the msg when play dont have the item at the inventory?

right_click_requirement: requirements: has_item: type: has item material: 'ROTTEN_FLESH' amount: 1 deny_commands: - '[message] &aShop » &fYou do not have 1x Grave in your inventory to sell'

=-=-=-=-=-=-=

#

'Month-01-1': material: ROTTEN_FLESH slot: 11 priority: 1 update: true display_name: "&b&nRotten Flesh" lore: - " " - "&fBuy price: &a$1.75" - "&fSell Price: &#FF2020$0.50" - " " - "&8→ Left click to buy" - "&8→ Right click to sell" left_click_requirement: requirements: hasMoney: type: ">=" input: "%vault_eco_balance%" output: "1.75" deny_commands: - "[message] &aShop » &fYou cannot afford $1.75" left_click_commands: - "[takemoney] 1.75" - "[console] minecraft:give %player_name% minecraft:rotten_flesh 1" - "[message] &aShop » &fYou bought &a1x Rotten Flesh &ffor the price of &a$1.75" right_click_requirement: requirements: has_item: type: has item material: "ROTTEN_FLESH" amount: 1 deny_commands: - "[message] &aShop » &fYou do not have 1x Grave in your inventory to sell" right_click_commands: - "[console] minecraft:clear %player_name% minecraft:rotten_flesh 1" - "[givemoney] 0.50" - "[message] &aShop » &fYou sold &a1x Rotten Flesh &ffor the price of &a$0.50" view_requirement: requirements: available: type: "==" input: "%localtime_timezone_Europe/Berlin,M%" output: "1"

steady idolBOT
#
Valid Config!

tolmwn, I checked your config and, it's valid!

+ Correctly Formatted```
brittle rapids
#

it's misaligned

#

deny_commands needs to be aligned with either: requirements or type

wintry cypress
#

but it is with the

right_click_requirement: requirements: has_item: type: has item material: "ROTTEN_FLESH" amount: 1 deny_commands: - "[message] &aShop » &fYou do not have 1x Grave in your inventory to sell"

#

fount it! it was the space on it