#Selling without having the item in inventory
1 messages · Page 1 of 1 (latest)
menu_title: 'Default Menu'
open_command:
- shop
size: 9
open_requirement:
requirements:
permission:
type: no permission
permission: deluxemenus.admin
deny_commands:
- '[message] &cYou don''t have permission to do that!'
items:
'0':
material: GRASS
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: 'GRASS_BLOCK'
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] give %player_name% grass 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] clear %player_name% grass 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.'
1.8 btw
didnt get it.
apparently, the way you've made it, it works perfectly fine
oh, there is no GRASS_BLOCK item in 1.8.8. so try replacing it with GRASS
i dont understand whats the problem
is the menu not working the way it should?
could you explain what you're trying to do exactly
like
even if i dont have the grass in my inventory, it still says i sold Grass and it gives me money
so basically free money
how about '[console] minecraft:clear %player_name% grass 1'
nop
i think its something about this
right_click_requirement:
requirements:
anything_here:
type: has item # https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements#has-item
material: 'GRASS'
strict: true
deny_commands:
- '[message] &6Shop &8> &fYou don''t have &c1 x Grass &fto sell.'
the requirment
not working properly idk
isn't it grass_block ?
/papi ecloud download CheckItem
/papi reload
/papi parse me %checkitem_mat:grass_block%
what does this say in chat?
alright
right_click_requirement:
requirements:
anything_here:
type: string equals
input: '%checkitem_mat:grass_block%'
output: "yes"
deny_commands:
'[message] &6Shop &8> &fYou don''t have &c1 x Grass &fto sell.'
cant find grass_block in material list
?
works!
thanks again 😹 
wait.. nvm
now i cant even sell the grass
no
dafok
😭
no
what's your MC version?
1.8.9
oh 1.8
so nob was right
java 8
lmao
/papi parse me %checkitem_mat:GRASS%
no
okay now I'm confused
😭
LONG_GRASS ?
i dont understand any of these commands lmao
no
i guess 1.8 has no blocks
😂
wait
dirt works
ok.. mb i didnt have the block in inventory
/papi parse me %checkitem_mat:GRASS% says yes now
if i have it in my inv
and no if not
lmao 😭
its morning, okay? lmao
ok it works now
ty AGAIN lmao
right_click_requirement:
requirements:
anything_here:
type: string equals
input: '%checkitem_mat:GRASS%'
output: "yes"
deny_commands:
- '[message] &6Shop &8> &fYou don''t have &c1 x Grass &fto sell.'
so when i want more shops or wtv, i just use this yea?
you have the list of materials for 1.8 there, or you can type ?materials in #bot-commands if you forget
1 more question
thats for shop aswell, if its possible to create so you can buy multiple when left clicking
or do i have to make 1million other menus for that
by buy multiple, you mean like buying 16 instead of just 1 ?
you want multiple multiples?
or just 1 multiple?
gl with that
😭
yeah I realized afterwards that they were on 1.8
I checked latest
why was it just grass before tho XD
I'm almost certain there was
?materials