#Selling without having the item in inventory

1 messages · Page 1 of 1 (latest)

placid vale
#

when i right click the item i wanna sell (the grass) it still gives me money even tho i dont got anything in my inventory
the money thing works tho, where you left click and says "You dont have enough money to buy this item"

#

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.'

Everything about DeluxeMenus requirements!

placid vale
#

1.8 btw

lament glade
#

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

placid vale
#

I did that at first, but still doesn’t work

#

It’s just the same

lament glade
#

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

placid vale
#

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

lament glade
#

how about '[console] minecraft:clear %player_name% grass 1'

placid vale
#

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.'

Everything about DeluxeMenus requirements!

#

the requirment

#

not working properly idk

calm goblet
#

isn't it grass_block ?

placid vale
#

jst the same

#

it does the same

calm goblet
#

/papi ecloud download CheckItem
/papi reload
/papi parse me %checkitem_mat:grass_block%
what does this say in chat?

placid vale
#

no

calm goblet
#

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.'
lament glade
calm goblet
#

wat

#

?materials

fickle dragonBOT
placid vale
#

thanks again 😹 pepe_wave

#

wait.. nvm

#

now i cant even sell the grass

calm goblet
placid vale
calm goblet
#

/papi parse me %checkitem_mat:grass_block%

#

when you have grass in your inventory

placid vale
#

no

calm goblet
#

dafok

placid vale
#

😭

calm goblet
#

/papi parse me %checkitem_mat:GRASS_BLOCK%

#

I doubt that's it but try anyways

placid vale
#

no

calm goblet
#

what's your MC version?

placid vale
#

1.8.9

calm goblet
#

oh 1.8

placid vale
#

or just 1.8

#

ye

calm goblet
#

so nob was right

placid vale
#

java 8

calm goblet
#

I didn't know GRASS_BLOCK didn't exist in 1.8 lol

#

it is indeed just GRASS

placid vale
#

lmao

calm goblet
#

/papi parse me %checkitem_mat:GRASS%

placid vale
#

no

calm goblet
#

okay now I'm confused

placid vale
#

😭

calm goblet
#

LONG_GRASS ?

placid vale
#

i dont understand any of these commands lmao

#

no

#

i guess 1.8 has no blocks

#

😂

#

wait

#

dirt works

calm goblet
#

uh

#

wat

#

why

#

how

#

who are you

placid vale
#

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

calm goblet
#

you lied to me

#

x2 today

placid vale
#

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?

calm goblet
#

yeah

#

and change the material in the placeholder in the input

placid vale
#

or jst copy the entire thing and replacing the block with a 1.8 vers

#

aighty

#

:D

calm goblet
# fickle dragon

you have the list of materials for 1.8 there, or you can type ?materials in #bot-commands if you forget

placid vale
#

1 more question

#

thats for shop aswell, if its possible to create so you can buy multiple when left clicking

calm goblet
#

spam click

#

XD

placid vale
#

or do i have to make 1million other menus for that

calm goblet
#

by buy multiple, you mean like buying 16 instead of just 1 ?

placid vale
#

like

calm goblet
#

you want multiple multiples?

placid vale
#

uj

#

wait

#

lemme show u

calm goblet
#

or just 1 multiple?

placid vale
#

like this

calm goblet
#

gl with that

placid vale
#

😭

calm goblet
#

get ShopGUI+

#

XD

#

or an actual shop plugin

#

not DM

placid vale
#

true lmao

#

well yea ill get that then probably

lament glade
#

🤷‍♂️

calm goblet
#

yeah I realized afterwards that they were on 1.8

#

I checked latest

#

why was it just grass before tho XD

lament glade
#

lol i got confused too

#

i think there was no grass (which grows vertically) in 1.8

calm goblet
#

I'm almost certain there was

astral pond
#

?materials