#shop in dm

1 messages · Page 1 of 1 (latest)

edgy peak
#

So i was wondering if its possible to make a shop to sell that uses the [placeholder] with checkitem and math so if the player's have an X amount of items they ll get an X amount of money when they sell the item

frank nest
#

sell all

edgy peak
#

awesome that helped a lot thank u :3

edgy peak
#

whats wrong with that and its not working? %math_10*{%checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=wheat%}%

#

i have math installed

#

oh lol i shouldnt have both % and { lol

edgy peak
#

cj i m trying to remake the shift click thing that the vanilla crafting table has but i m kinda stuck
- '[placeholder] %checkitem_give_amt:{math_4*{nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_log}}_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks%'
how would i make it so for the X amount of logs that a player has they ll get the X amount * 4

#

i m trying to find solutions but i m kinda new with the checkitem expansion

#

ping me if u know :/

edgy peak
frank nest
frank nest
#

checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_log would

edgy peak
frank nest
#
  1. images of text don't help
  2. send the placeholder you tried
edgy peak
#

%checkitem_give_amt:{math_4*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_log}}_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks%

frank nest
#

you need to use nested

#

also, you still need to sppecify a material...

edgy peak
#

but isnt the material the one from executableitems?

frank nest
#

that's not a material...

#

?checkitem

crude laurelBOT
#
FAQ Answer:

Command:

/papi ecloud download checkitem
/papi reload

Manual Download:
Download
Click here for more information on how to use the CheckItem Expansion.

frank nest
#

try

%nested_checkitem_give_amt:{math_0:_4*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_log}}_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks%

just add the material

#

Are these actual executableitems items? @edgy peak

#

with custom ids?

#

such as oak_log

#

and oak_planks

edgy peak
#

yuh

frank nest
#

hmmk

#

just makin sure

edgy peak
#

i dont have the vanilla minecraft items

frank nest
#

ya...

#

either way the itemm still has a material

edgy peak
#

%nested_checkitem_give_mat:oak_planks,amt:{math_0:_4*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_log}}_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks% like that?

#

the meterial of the item is oak_planks and the ei id is also oak_planks

frank nest
#

ya

#

looks right

edgy peak
#

i dont have any errors now in console but i dont get the item

frank nest
#

oh i see

#

you used _ to separate nbtstrings from amt

edgy peak
#

oh lol

frank nest
#

also just realized

edgy peak
#

damn finally made it

frank nest
#

yoou should be using the ei commands to give items

edgy peak
#

thanks cj u r the best ;3

frank nest
#

instead of checkitem

#

ngl

#

because checkitem you need to specify every single piece of information you want

edgy peak
#

well ye i do

frank nest
#

if your custom item only uses eid then it's fine, but

#

prob not

edgy peak
#

but i dont think ei give command supports math

frank nest
#

it's not up to the commmand

edgy peak
#

and i m recreating the shift click craft of the crafting table

frank nest
#

placeholders are parsed in deluxemenus

#

not in the command

#

[console] ei give %player_name% ...

edgy peak
#

ye ik thats what i use ;-;

frank nest
#

annd the amount is %math_0:_4*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_log}%

#

you see that player_name is parsed

#

why wouldn't math be?

edgy peak
#

well as long as it works that way i dont mind :/

frank nest
#

you're only giving part of a custom item

edgy peak
#

oh bruh i just noticed ;-;

#

its not the custom item

frank nest
#

it is...

#

according to ei

#

but it's missing... everythiing else

edgy peak
#

well the name/lore is missing tho

#

yuh

frank nest
#

yes...

#

that's exactly what i said

edgy peak
#

oh ye the give command from ei works

#

damn that was easy ;-;

#

thanks again ;3

edgy peak
#

cj i have some weird issues again with the math that i dont understand :/

#

so lets start with the fact that for a chest to be crafted u need 8 planks

#

if i have more than 8 but not enough to make a double (15) planks i still get 2 chests out of this

#

%math_0:_{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=spruce_planks}/8% any idea how i can change that?

edgy peak
#

i need smthing like to round down instead of up?

frank nest
#

%math_[decimals]:[rounding]_<expression>%

edgy peak
#

yeah i ve checked the wiki but didnt rly found anything for that its with the ceiling ig but dont rly know how to make it

edgy peak
#

oh awesome i found a solution for that

edgy peak
#

is it possible to make it so only the multiplications of 8 are removed like:
• You have 8 spruce planks the 8 get removed u get 1 chest
• You have 16 spruce planks the 16 get removed and u get 2 chests
and so on. Cause right now the only thing i can do is remove the whole amount which would even remove 15 and give 1 chest
thats btw the placeholder that i use in the give %math_0:down_{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=spruce_planks}/8%

edgy peak
#

ig its that %math_0:down_{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=spruce_planks}% but should be rounded with the multiplications of 8 too. so when its 9-15 it gets rounded down to 8, when its 17-23 it gets rounded back to 16 etc. is that even possible to make? :/

wooden oasis
#
%math_0_({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=spruce_planks}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=spruce_planks}[prc]8)/8%
#

@edgy peak try this

edgy peak
#

on it rn

#

it still gets rounded to 1/2/3

wooden oasis
#

this is not what you want ?

edgy peak
#

nah i want to round it if its closer to 8

wooden oasis
#

9-15 give 1 chest, 17-23 give 2 chest

edgy peak
#

like when u have for example 10 it gets rounded back to 8

#

i m trying to remove spruce planks now i finished with the give part

wooden oasis
#

so you just need remove /8

edgy peak
#

oh it works perfectly fine

#

thanks a lot ;3

wooden oasis
#

I used to have a hard time with that part

edgy peak
#

yuh its my first time trying complicated math placeholders

#

u saved a lot of time from me rn thanks again ;d

wooden oasis
#

np

edgy peak
#

u are the person that cj mentioned that has many menus right?

wooden oasis
#

maybe

#

I used to ask him a lot

edgy peak
#

cool cool

#

i started reworking the crafting table in deluxemenus and i was stuck with the fast craft that the vanilla crafting table has

wooden oasis
#

its quite hard

#

because this thing will take a long time to setup

edgy peak
#

well i m basically rewriting minecraft so...

#

cause u dont have to memorize the recipes

wooden oasis
#

you do it for every single item ?

#

bruh

edgy peak
#

yess

#

every item is gonna be custom made in executableitems

#

gonna use roseloot to drop them when u break blocks/kill entities

#

and deluxemenus for everything gui related

wooden oasis
#

sound good, keep going

edgy peak
#

thank u ;d

wooden oasis
#

almost 400 recipes thonking

edgy peak
#

some of em r gonna be double ig

#

like the chests r gonna be per plank type

#

like dif kind of planks that can make a chest

wooden oasis
#

yeah

#

9 type of wood

edgy peak
#

i already have 400+ menus so lets see how many i ll end up with after finishing

wooden oasis
#

you can merge all to one menu

edgy peak
#

nah that ll get too complicated

#

i m oke with the menu per file now

edgy peak
#

do u might know where i m wrong with this?

    - '[console] ei give %player_name% oak_slab %math_0:_2*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}%'
    - '[console] ei take %player_name% oak_planks %math_0_({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}[prc]3)%'

i think the issue is in the give command cause for some reason i get more planks than i should

#

it should be like the vanilla one x3 planks = 6 slabs

#

the take command works perfectly fine

wooden oasis
edgy peak
#

its the give command

#

and the 2nd is the take

wooden oasis
#

i know

edgy peak
#

just the plugins command's

wooden oasis
#

i asked about %math_0:_2*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}%

edgy peak
#

oh

#

well thats what i m trying to fix

wooden oasis
#

why you give player

#

amount they have * 2 ?

edgy peak
#

i give the *2 amount of the oak planks that they have

#

so if they have 3 planks * 2 = they get 6 oak slabs

#

like in the vanilla one

wooden oasis
#

so why don't you just give them 6 oak slab ?

edgy peak
#

i do

#

that works perfectly fine

#

the thing is that if they have more planks like 5

#

they still get more slabs

#

it wouldnt be 12 they get like 10

#

but that shouldnt happen

#

thats what i m trying to prevent

wooden oasis
#

take a look at the remove

#

thinking about it

edgy peak
#

thats what i m trying to do rn

#

%math_0_({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}[prc]3)% this is what i use for the give rn but still doesnt do what i want

wooden oasis
#

just *2 it

#

😐

edgy peak
#

at the end?

#

3*2?

wooden oasis
#

2*3 work fine too

edgy peak
#

it doesnt rly want

#

now it just gives 3 planks for 3 slabs

wooden oasis
#

why 3*2 = 3

edgy peak
#

i changed to this now %math_0_(2*{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}+{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}[prc]3)%

wooden oasis
#

what

#

are

#

you

#

doing

edgy peak
#

at this point no idea 💀

#

technically the give command works

wooden oasis
#

2*(5 -2) or (2*5 - 2)

edgy peak
#

but the issue is that if u have like 5 planks u ll get 12slabs

#

ig 2*(5 -2) ?

wooden oasis
#

%math_0_2*({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}[prc]3)%

edgy peak
#

its like oak_planks x 2 = oak slabs

wooden oasis
#

you put 2* to wrong place

edgy peak
#

still same thing

#

if u have 4-5 planks u still get 12 slabs

wooden oasis
#

did you change + to - ?

edgy peak
#

oh ye just now lol

#

i think its fixed now

#

thanks again :d

#

these things r confusing

wooden oasis
#

its just display as number

#

don't make it hard for you

#

just think its a simple math

edgy peak
#

i m bad in math 💀

#

but ye its not too complicated tho

#

its basic things

#

but the placeholders confuse me

wooden oasis
#

yeh

#

you will going crazy if want to make a shop

edgy peak
#

i already have a shop

#

its more simple than that

wooden oasis
#

this is my buy part of shop

edgy peak
#

damn thats way too advanced

#

the only thing that i havent use of deluxemenus is the meta

wooden oasis
#

I've only been using it for the last few months

#

over 2 months, maybe

edgy peak
#

thats a buy more menu for every item right?

wooden oasis
#

yeh

#

if you config right

edgy peak
#

also what exactly is this '%deluxemenus_meta_stackBuyPage_INTEGER_0%'

wooden oasis
#

buy stack

#

at my country, they called this thing as 64 items

#

2 stack = 128 items. etc

edgy peak
#

ig i ll have to take a look in meta myself :d

wooden oasis
#

oh yeh

#

this is simple shop

edgy peak
#

yuh

#

i dont use meta

wooden oasis
#

my shop can buy up to 2304 items

edgy peak
#

i have a sell full inv option too

#

the iron bucket in the menu

#

but i just use a click requirement

click_requirement:
      requirements:
        has_item:
          type: '>='
          input: '%checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=carrot%'
          output: '2304'
#

ig for the buy its gonna be if there r 2304 empty slots or smth

wooden oasis
edgy peak
#

oh u have confirms too

#

i just noticed that

wooden oasis
#

Some items will have its shop, like ender pearl, snow ball, egg

#

and non stackable item

edgy peak
#

it looks very interesting tho goodjoob

#

how do u trigger the opening menu arguments per item

wooden oasis
#

/buymore <item-id> <price> <current shop name>

edgy peak
#

oh as a command

wooden oasis
#

take it and study it

edgy peak
#

i will :d

#

i ll mess with meta too when i get the time

wooden oasis
#

its just a simple thing

edgy peak
#

wym simple? u got more complicated than this one? lol

wooden oasis
#

wait there, i'll make a simple meta menu

edgy peak
#

i ll import and test it out in game too

#

what expansion is the %nf placeholder

wooden oasis
edgy peak
#

the shop looks very smooth

wooden oasis
edgy peak
#

yuh that helps more to understand thank ya

#

so basically meta is like a point system for the menus?

wooden oasis
#

what's point system

edgy peak
#

i m just trying to understand it :/

wooden oasis
#

try this in game

#

do you at free time ? @edgy peak

edgy peak
#

i ll try it in few minutes i m finishing with smth rn

#

why r there 2 shift left click commands per action

#

item*

wooden oasis
#

oh, i forgot to change it

edgy peak
#

yuh i changed it to right

#

i dont get an output from %deluxemenus_meta_doubleType_DOUBLE% for some reason

#

and the other 2

wooden oasis
#

maybe default number is empty space

#

because its not used before

edgy peak
#

i click the items but i dont see any changes

wooden oasis
#

become proficient with it, it will be quite useful

#

ah, i forgot to put update

edgy peak
#

damn i can thing of many cases that i can use that honestly

#

especially the string one

#

and i could parse this placeholder for others too right,

wooden oasis
#

of course

edgy peak
#

what's with the delay for the refresh tho?

wooden oasis
#

because if you click to fast, the menu will not refresh

edgy peak
#

oh

wooden oasis
#

its just 3 tick

#

don't matter too much

#

the menu just refresh every 1 second

edgy peak
#

the fast click is an issue in general with the refresh?

#

do u use delay for refresh in your menus too?

wooden oasis
#

i use delay for every single [refresh]

#

some people get issue when use [refresh] without delay

edgy peak
#

oh

#

I didn't know about that

#

ig i ll add it too

#

do the meta gets stored somewhere?

#

and does it get deleted after a server restart or player closes the menu?

wooden oasis
#

idk where it gets stored

#

but the meta is not removed if you touch it

edgy peak
#

cool cool

edgy peak
#

do u might know how to fix this too?
[console] ei give %player_name% oak_stairs %math_0_({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}[prc]6)%
so the player gets x4 stairs per x6 planks i only found a way to make it so x6 planks give x3 stairs x12 give x6 but thats not how it is in vanilla :/

frank nest
#

FLOOR(22/6) * 3
3 * 4
12
%math_0:_FLOOR({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}/6)*4%

#

You can subtract the modulus, or you can use FLOOR()

#

from evalex functions

#

probably easier to write without having the extra checkitem placeholder

frank nest
edgy peak
#

there is a small issue with the give. If i have an uneven number like 9 it gives me 8 stairs instead of 4, and same when its 23 it gives me 16

wooden oasis
#

6 planks = 4 stairs
Has 14 planks
=> (14-2)/6*4

edgy peak
#

that would result to 8 stairs right?

wooden oasis
#

Yeh

edgy peak
#

but i cant just add -2 in the checkitem

wooden oasis
#

scrolling up, it used to appear

edgy peak
#

i changed it to %math_0:down_({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}/6)*4% and it seems that its working

#

now i ll try recreating a more confusing one that needs 2 different items for the recipe

edgy peak
#

cj can u give me an example of how the IF can be used? One simple and one more advanced

frank nest
#

i'm confused why there would be an issue when using floor to round it down thonking

frank nest
#

FLOOR(9/6) should be 1

#

if you didn't do floor then yes, it will probably round with rules 0-4 go down, 5-9 go up

frank nest
edgy peak
#

mby it should be 0:FLOOR_ instead of 0:_Floor?

frank nest
#

that's rounding after

#

i'm using it as a function

edgy peak
#

oh

#

its fixed with the down already :/

#

i ve got issues with the signs now

frank nest
#

Did you end up subtracting the modulus?

frank nest
#

oicic

#

hmm, maybe it sets all rounding for the expression then

#

oh ya, it does

#

nice

#

i'll do some testing later to see why FLOOR() wasn't working thonking

#

I do wish you luck with signs 🙂

edgy peak
#

i m trying to find a solution for like an hour+ xd

#

to craft vanilla signs u need 6 planks 1 stick and u get 3

frank nest
#

oh it's still crafting

edgy peak
#

and i cant find a way to recreate that

#

yuh its always been the crafting

frank nest
#

ye ye i just figured signage

#

({planks}/({stick}*6))*3
thonking

#

just thinking out loud

#

this would error if you had 0 sticks, but if you check with a requirement that would be a non-issue

#

hmm ya there's a loot of scripting needed

#

there is IF(condition, resultIfTrue, resultIfFalse)

#

it's a pretty complex thing to try and accomplish without being able to store variables imo

edgy peak
#

yuh i use view requirements

#

i ll try the if

#

cause i cant think of any other way

frank nest
edgy peak
#

yuh

#

or planks than sticks

frank nest
#

ye ye

#

sometin gonna error

edgy peak
#

cause u dont need to have the same amount of both to craft the recipe

frank nest
#

so maybe you can use the if to check if you have more planks*6 or sticks*1

#

and then do a different function depending?

#

either planks/6 to get the amount of sticks needed, or sticks*6 too get the amount of planks needed maybe

edgy peak
#

i ll try to figure out how to make it

#

ig thats the most complicated one that i ve made so far

frank nest
#

should be tbh

#

pretty crazy

#

just wait foor pistons

edgy peak
#

the if works like %math_0:_if({.... ?

frank nest
#

yes it should

#

just like floor should've

edgy peak
#

oh gosh pistons r more crazy

frank nest
#

%math_0:_if(5>3,50,0)%

#

test that

#

never used the if myself

#

so idk the conditions

edgy peak
#

that returns 50

frank nest
#

nice

#

%math_0:_if({planks*6}>{sticks*1},<other formula>,({planks}/({stick}*6))*3)%

#

%math_0:_if({planks*6}>{sticks*1},({planks}/6)*3,({planks}/({stick}*6))*3)%

#

%math_0:_if({planks*6}>{sticks*1},{planks}/2,({planks}/({stick}*6))*3)%
could just divide by 2 in the planks>sticks function tbh

#

the order you remove the items in though is another problem I'm thinkin about

#

might need to store a temporary meta value or something... not sure

edgy peak
#

if i cant find a solution i ll just wont have a fast craft option for some items till figure something out

#

but ye some of these recipes r complicated af

frank nest
#

maybe just multiple items might be easier

#

1 item if you have more planks
1 item if you have more sticks

#

changing with view requirements

#

might make it easier gooing forwards as well for things like pistons

#

welp imma get on with my day

#

gl o/

edgy peak
#

i dont think that view requirements can be a solution

frank nest
#

actually click requirements + deny/success commands combination would work

#

man I gotta cloose diiscord

#

😂

#

can't help myself

edgy peak
#

eh idk cause these r for shift click only

#

xd

frank nest
edgy peak
#

mby i can prevent the null with min?

edgy peak
#

but ig it works since the view requirements prevent it ye

#

wait u might just found the solution lol

#

eh it works but if i have like 8 planks it gives 4 signs

#

shouldnt the prc be fixing it?
%math_0:down_if({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}*6>{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=stick}*1,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}/2,({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}/({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=stick}*6))*3[prc]3)%

wooden oasis
#

what are you guys talking about

edgy peak
#

signs xd

#

cause now its a lil more complicated to use math to craft the correct amount of signs

#

since there r more than 1 materials needed and both sticks and planks are different amounts

#

6planks + 1 stick = 3 signs

wooden oasis
#

ok, now

#

you has 14 planks

#

=> need 2 sticks

edgy peak
#

yuh

#

for 6 signs

wooden oasis
#

=> signs = (14-2)/6*3

edgy peak
#

yuh that would return 6

#

but the issue is mostly if u have 16 planks and 2 sticks

edgy peak
wooden oasis
#

18 planks + 3 sticks = 9 signs

#

but you just has, 18 planks and 2 sticks

#

then use the min vaule *3 = sign

#

%math_0_min({planks}/6, {sticks})*3%

#

like this

edgy peak
#

doesnt seem to return anything

#

[math] Cause: 'min(20/6) ,3*3' is not a valid Math Expression

#

i get this issue

wooden oasis
#

😐

#

should be this ((20-2)/6, 3)*3

edgy peak
#

%math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-2)/6,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=stick}*3)% this is what i have rn

#

but the amounts arent correct

#

like i have 12 planks 2 sticks and it returns 2

edgy peak
#

it should be out of the ) ?

wooden oasis
#

yes

edgy peak
#

bruh

#

ig it works?

#

lemme do some testing

#

yuh it works even if u have a huge amount of sticks low planks / huge planks low sticks o.O

#

just wow...

#

would the take command be with the min too?

wooden oasis
#

should be

edgy peak
#

any idea what should i change here %math_0_min({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=stick})*3% for the take stick command ?

#

oh mby its /3 ?

#

no nvm

wooden oasis
#

like above without *3

edgy peak
#

wouldnt that remove the whole amount tho?

wooden oasis
#

yeh

wooden oasis
#

yeh

edgy peak
#

and *6 for the planks?

wooden oasis
#

yeh

#

min * 6 = plank
min = stick
min * 3 = sign

edgy peak
#

ugh doesnt seem to work

#

cause the sticks are getting removed

#

and in the math of planks the value is 0

wooden oasis
#

so make other item with view_requirement if min < 1

edgy peak
#

hm i might know a workaround with that

#

what if i just use meta?

#

before taking the amount of sticks i can use meta to set the number

#

and then use it in the take planks placeholder

#

and once its finished i can reset the meta again

wooden oasis
#

as you want

edgy peak
#

it seems like a solution

#

i ll give it a try

#

like [meta] set integerType INTEGER %math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-2)/6,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=stick})%

wooden oasis
#

why you put -2 in there

edgy peak
#

idk its just there from before ;-;

edgy peak
wooden oasis
#

change it to amount[prc]6

edgy peak
#

the -2?

wooden oasis
#

yes

#

what if amount = 21 ?

#

21-2=19

edgy peak
#

now it returns 0 for some reason

wooden oasis
#
%math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}[prc]6)/6,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=stick})% ```
edgy peak
#

oh now it works

#

and ig the command for planks take needs a fix too?

%math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}amount[prc]6)/6,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=stick})*6%
wooden oasis
#

you are now trying meta

edgy peak
#

oh oke

wooden oasis
#

and integerType is a name of meta

#

you can change it as you want

edgy peak
#

oh awesome

wooden oasis
#

so now, the value of integerType is min

edgy peak
#

how do i reset it? with null?

wooden oasis
#

yeh

#

set <name> <type> null

edgy peak
#

ok thats the meta now

- '[meta] set sticks INTEGER %math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}[prc]6)/6,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=stick})%'
#
- '[console] ei take %player_name% oak_planks %math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}amount[prc]6)/6,{deluxemenus_meta_sticks_INTEGER})*6%'
``` thats the take planks
#

and thats my reset

- '[meta] set sticks INTEGER null'
wooden oasis
#

the name should be minValue for easier

edgy peak
#

so change it from sticks to minValue?

wooden oasis
#
- '[meta] set minValue INTEGER %math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}[prc]6)/6,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=stick})%'
- '[console] ei take %player_name% oak_planks %math_0_{deluxemenus_meta_minValue_INTEGER}*6%'
- '[console] ei take %player_name% stick %math_0_{deluxemenus_meta_minValue_INTEGER}%'
- '[console] ei give %player_name% oak_sign %math_0_{deluxemenus_meta_minValue_INTEGER}*3%'
- '[meta] set minValue INTEGER null'
- '[refresh]'
edgy peak
#

oh ye that sounds about right

#

oh wow

#

i cant believe that this actually works ;-;

#

thanks a lot ;3

wooden oasis
#

np

edgy peak
#

meta might be the most useful thing that dm has

frank nest
#

genius

edgy peak
#

he is for sure

#

I wouldn't be able to solve this

wooden oasis
#

its just a simple math 😐

frank nest
#

yep, just puttiing it all together

#

using the toools you have

#

smh my keybooard getting bad

#

lol

wooden oasis
#

i'm interesting about player manager now 🤌

frank nest
#

ah

edgy peak
#

idk how u find these simple🥴

wooden oasis
#

because im good at math 🤌

#

or math at my country is to hard

#

so i just see them as a simple math

edgy peak
#

probably

frank nest
#

all about the numbers

edgy peak
wooden oasis
#

placeholder and [openguimenu]

edgy peak
#

but he types while the menu is open ;-;

frank nest
#

it just opens the new one

wooden oasis
#

i think i cant make player manager menu :L

frank nest
#

oh?

wooden oasis
#

playerlist broken, maybe

frank nest
#

hmm, it shouldn't be, but Tanguygab is active in this discord if you have issues

wooden oasis
edgy peak
#

damn that sounds like an interesting menu

wooden oasis
#

but by some reason, its broken rn

wooden oasis
#

kick, ban, etc

#

where is my tier rank thonking

edgy peak
#

lmao

#

good question

wooden oasis
#

hmm.. , i should be tier 2 rn

edgy peak
#

mby if u text a little more?

wooden oasis
#

nah, i'm tier 0 now reversed_fingerguns

#

#bot-commands message

edgy peak
#

kekw

edgy peak
#

i ll try to make the piston now fingerguns

wooden oasis
#

🥴

wooden oasis
#

making player manager menu is funny

edgy peak
#

yuh the meta ll be very useful

wooden oasis
#

i like your way

edgy peak
#

r u gonna make a ban system with it?

#

idk i ll just copy the stick from the sign recipe

frank nest
#

i lie

edgy peak
#

;-;

wooden oasis
frank nest
#

player menu iis nice

edgy peak
#

sounds cool

#

i might make player profiles with meta

frank nest
#

with meta?

edgy peak
#

yuh

wooden oasis
#

how

edgy peak
#

the string option ig

frank nest
#

arguments?

#

so youcan /profile <user>

edgy peak
#

yuh that too

#

well i was talking about things like birthday and stuff

#

that i ll do with meta

#

but ye it ll open with /profile user

frank nest
#

ah

#

icic

#

makes sennse

edgy peak
#
  'green_glass':
    material: green_stained_glass_pane
    display_name: '&l'
    priority: 1
    view_requirement:
      requirements:
        has_item:
          type: '>='
          input: '%checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks%'
          output: '3'
        has_item_2:
          type: '>='
          input: '%checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone%'
          output: '4'
        has_item_3:
          type: '>='
          input: '%checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=iron_ingot%'
          output: '1'
        has_item_4:
          type: '>='
          input: '%checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=redstone%'
          output: '1'
    slots: [14,15,16,23,25,32,33,34]

this looks so fun already

wooden oasis
#

hey CJ, i need your keyboard menu

frank nest
#

i think it's in showcase

#

do you need icon

wooden oasis
#

i need config

frank nest
#

currently uses air so you can use gui title for keyboard

edgy peak
#

oh wow

frank nest
#

smh imma use this keyboard instead of mine it works better

#

ohh kristopher

#

this is what iw as saying earlier

#
    click_requirement:
      minimum_requirements: 1
      requirements:
        length:
          type: '>'
          input: '%string_length_{deluxemenus_meta_keyboard_STRING_}%'
          output: 0
          deny_commands:
          - '[meta] remove keyboard STRING s'
          - '[openguimenu] keyboard'
        shopsearch:
          type: 'string equals ignorecase'
          input: '{variable}'
          output: 'shopSearch'
          success_commands:
          - '[player] shopSearch %deluxemenus_meta_keyboard_STRING_%'
          optional: true
        hex:
          type: 'string equals ignorecase'
          input: '{variable}'
          output: 'hex'
          success_commands:
          - '[meta] set rgb-value STRING %nested_conversion_16:10_{string_substring_0,2_{deluxemenus_meta_keyboard_STRING_}}%, %nested_conversion_16:10_{string_substring_2,4_{deluxemenus_meta_keyboard_STRING_}}%, %nested_conversion_16:10_{string_substring_4,6_{deluxemenus_meta_keyboard_STRING_}}%'
          - '[refresh]'
          optional: true
        pattern-0:
          type: 'string equals ignorecase'
          input: '{variable}'
          output: 'pattern-0'
          success_commands:
          - '[meta] set pattern-0-color STRING %deluxemenus_meta_keyboard_STRING_%'
          - '[openguimenu] patterns'
          optional: true
    click_commands:
    - '[broadcast] %deluxemenus_meta_keyboard_STRING_%'
    - '[meta] remove keyboard STRING s'
#

this uses success commands as sort of a "decider"

#

so you can run different actions upon click

#

depending on... things

#

obviously what you ended up with is better for this

edgy peak
#

bruh i ve never seen something like that b4

frank nest
#

i saw obviouslee's hex menu and wanted to make a keyboard

#

lol

edgy peak
#

i think i ve tried things with the success/deny commands before but didnt rly work

#

idk if i had syntax errors or smth but didnt rly care at the end just did "global" deny commands

frank nest
#

you need click_commands for click_requirement no matter what

#

so if they don't exist, nothing will happen

edgy peak
#

well ye i think i had

frank nest
#

most people try and just use success and deny

#

insiide the requirement

#

success is just additional click commands

edgy peak
#

i ll try them again at some point

#

and thats for forging/upgrading minions for skyblock

#

one of my fav things i ve done so far

frank nest
#

that's the best part, you can do anythiing!

edgy peak
#

ikrrr

frank nest
#

😄

edgy peak
#

thats also where i use my "animated" menus

#

which is basically just that

    click_commands: 
    - '[message] &7[&#ce6e15&l!&7] &7Refining a &#ce6e15Lumberjack Ghost&7.'
    - '[givepermission] refine.minion.on.cd'
    - '[placeholder] %checkitem_remove_mat:NETHER_STAR,lorecontains:&61,amt:2%'
    - '[console] minion give %player_name% lumberjack 1 2<delay=100>'
    - '[console] ecobits givesilent %player_name% grs 1<delay=100>'
    - '[givepermission] ghost.refine.lumberjack.glass.11'
    - '[sound] block_note_block_pling'
    - '[refresh]'
    - '[givepermission] ghost.refine.lumberjack.glass.12<delay=20>'
    - '[sound] block_note_block_pling<delay=20>'
    - '[refresh]<delay=20>'
    - '[givepermission] ghost.refine.lumberjack.glass.13<delay=40>'
    - '[sound] block_note_block_pling<delay=40>'
    - '[refresh]<delay=40>'
    - '[givepermission] ghost.refine.lumberjack.glass.14<delay=60>'
    - '[sound] block_note_block_pling<delay=60>'
    - '[refresh]<delay=60>'
    - '[givepermission] ghost.refine.lumberjack.glass.15<delay=80>'
    - '[refresh]<delay=80>'
    - '[takepermission] ghost.refine.lumberjack.glass.11<delay=100>'
    - '[takepermission] ghost.refine.lumberjack.glass.12<delay=100>'
    - '[takepermission] ghost.refine.lumberjack.glass.13<delay=100>'
    - '[takepermission] ghost.refine.lumberjack.glass.14<delay=100>'
    - '[takepermission] ghost.refine.lumberjack.glass.15<delay=100>'
    - '[takepermission] refine.minion.on.cd<delay=100>'
    - '[message] &7[&#ce6e15&l!&7] You refined a &#ce6e15Lumberjack Ghost &7to &#ce6e15Rank 2&7.<delay=100>'
    - '[refresh]<delay=105>'
#

its only for glass changes

#

from white to green till the upgrade is rdy

frank nest
#

ah, you should use meta and clear it upon open as well imo

wooden oasis
#

now you can change it to meta and some placeholder

edgy peak
#

well i didnt rly knew what i can do with meta till yesterday

frank nest
#

ye exactly

wooden oasis
#

nah, just meta

frank nest
edgy peak
#

or just at the end with a delay?

frank nest
#

it's security for if that dooesn't happen

#

but then again, your current menu doesn't have that

#

soo 🤷‍♂️

frank nest
edgy peak
#

or mby if the player leaves the server

#

cause i think that delayed console commands and stuff wouldn't work to the player if left the server

frank nest
#

ye prob no

edgy peak
#

reset on opening the menu it is then :d

frank nest
#

but also delayed

#

since you don't close the menu

#

or just reopen it instead of refresh

#

that would work well

edgy peak
#

yuh i was about to say just that

frank nest
#

10/10

edgy peak
#

if u have delayed give meta and they re open the menu it resets back to 0 or smth

frank nest
#

ye

edgy peak
#

well i also use temp perms from luckperms

#

its very useful for cooldowns n stuff

frank nest
#

in fact i recommend that over meta

#

because there's an actual scheduler making sure it gets cleared

#

(upon open obviously is fine, but the data is stored until opened)

edgy peak
#

its done besides the math :d

#

the requirements look kinda ugly tho

#

i ll just make 2 in a row

frank nest
#

siiiiick

#

really niice

edgy peak
#

thank u :d

wooden oasis
#

really nice design

edgy peak
#

time to do math :d

wooden oasis
#

how many recipe you did ?

edgy peak
#

if i finish with 1 wood type all the others r just copy paste

wooden oasis
#

yeh, good luck

#

i'm going to bed

edgy peak
#

gn :d

#

what time is it for ya

wooden oasis
#

6 am

edgy peak
#

o.O

frank nest
#

sounds about right

wooden oasis
frank nest
#

sounds about right for a server dev

#

🙂

edgy peak
#

^^

#

weird i cant react to msgs with emojis here

#

i tho i could

wooden oasis
#

I'm quite hungry

#

Should i eat some food

edgy peak
#

go eat breakfast fingerguns

wooden oasis
edgy peak
#

or mby its a thing with tier

#

that we dont have yet

#

i hope this will be correct for iron ingot

%math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}[prc]3)/3,({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]4)/4{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=iron_ingot})%
#

oh wait i have to get redstone in too yikes

#

or not

#

bruh i was making the changes in the sign file

edgy peak
#
- '[meta] set minValueIron INTEGER %math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]4)/4,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=iron_ingot})%'
    - '[meta] set minValueRedstone INTERGER %math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]4)/4,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=redstone})%'
    - '[console] ei give %player_name% piston %math_0_min({deluxemenus_meta_minValueIron_INTEGER},{deluxemenus_meta_minValueIron_INTEGER})/2%'
    - '[console] ei take %player_name% iron_ingot %math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]4)/4,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=iron_ingot})%'
    - '[console] ei take %player_name% redstone %math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]4)/4,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=redstone})%'
    - '[console] ei take %player_name% oak_planks %math_0_{deluxemenus_meta_minValueIron_INTEGER}*3%'
    - '[console] ei take %player_name% cobblestone %math_0_{deluxemenus_meta_minValueIron_INTEGER}*4%'
    - '[meta] set minValueIron INTEGER null'
    - '[meta] set minValueRedstone INTERGER null'
    - '[sound] block_lever_click'
    - '[refresh]'

tran i need a lil help with the give command :/

edgy peak
#

oh and ig it needs some more adjustments

wooden oasis
#

what's this

#

@edgy peak

edgy peak
#

the piston shift commands

wooden oasis
#

why you set to much meta

edgy peak
#

idk i tho i need both for iron and redstone

wooden oasis
#

just need to set 1 minValue

#

min(Cstone/4, planks/3, redstone, iron)

edgy peak
#

for the give?

wooden oasis
#

for take

#

give too

edgy peak
#

not like that ig? cause it returns 0
%math_0_min((({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]4)/4,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=iron_ingot}[prc]3)/3,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=redstone},{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=redstone})%

wooden oasis
#

i think this is wrong

#
{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]<number>

not this {checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]<number>
#
%math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]4)/4, ({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_planks}[prc]3)/3, {checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=redstone}, {checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=iron_ingot})%
edgy peak
#

i m still impressed how u solve these so fast

#

the take commands are correct tho right?

#

i think i might need 3 meta in t his

edgy peak
#

i tried it with
oak 38
cobble 55
iron 7
redstone 3
the result should be 3 pistons but it gave me 9

#

nvm it was just combined from the previous tests

edgy peak
#

yuh it is

#

it was just combined from my last tests and didnt notice

#

now my only issue is with the redstone/iron

wooden oasis
#

Why

edgy peak
#
    - '[console] ei take %player_name% iron_ingot %math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]4)/4,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=iron_ingot})%'
    - '[console] ei take %player_name% redstone %math_0_min(({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=cobblestone}[prc]4)/4,{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=redstone})%'

i have these

#

and if i have for example 12 iron but 2 redstone

#

i think it removes more or smth

#

lemme do some testing again

#

yuh it seems that it removes more iron ingot than it should

wooden oasis
#

Cstone = minValue * 4
Planks = minValue * 3
Redstone = minValue
Iron = minValue

edgy peak
#

for example
oak - 30
cobble - 50
iron 10
red - 5
its giving 5 but the iron is 0 when it should be 5

#

and ig it ll be the same for redstone

#

so i have to do 4 diff meta?

#

oh

#

u mean minvalue/3 minvalue/4?

wooden oasis
#
  • not /
#

Its take part

#

Piston = minValue

edgy peak
#

oh ye right

#

i think i found the solution

#

something like that right?

   - '[console] ei take %player_name% iron_ingot %math_0_{deluxemenus_meta_minValueIron_INTEGER}%'
    - '[console] ei take %player_name% redstone %math_0_{deluxemenus_meta_minValueRedstone_INTEGER}%'
    - '[console] ei take %player_name% oak_planks %math_0_{deluxemenus_meta_minValueIron_INTEGER}*3%'
    - '[console] ei take %player_name% cobblestone %math_0_{deluxemenus_meta_minValueIron_INTEGER}*4%'
wooden oasis
#

Yeh

#

Thats right

#

No

#

Wrong meta name

edgy peak
#

i have 2 meta :/

#

one for redstone and one for iron

#

isnt it right?

wooden oasis
#

As i said, you just need 1 meta

edgy peak
#

oke oke

wooden oasis
#

Set the name minValuePiston for easier, maybe

edgy peak
#

true true thanks again ;3

wooden oasis
#

I think you must to use the minValue for all other recipe

edgy peak
#

ye it seems easier in more complicated recipes

wooden oasis
#

Your recipe just can craft all ?

edgy peak
#

only the shift left click

#

if u do a regular click its just 1

edgy peak
#

tran whats wrong with this
[console] ei give %player_name% oak_wood %math_0:down_({checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_log}-{checkitem_amount_nbtstrings:PublicBukkitValues..executableitems:ei-id=oak_log}[prc]3)%
and when i have 9 logs it returns 9 wood

wooden oasis
#

remove :down

edgy peak
#

still same thing :/

#

for 4 oak_log it should give 3 oak_woods

wooden oasis
#

8 log = 3 wood

edgy peak
#

8 log = 6 wood o.O

wooden oasis
edgy peak
#

yuh i get the right amount when i have 8 log

#

but i get 6 when i have 7 too

#

ugh yikes i messed up with the take command too

#

cause when i have 7 it removes only 4

#

oh wait nvm it should only remove 4 ye

wooden oasis
#

=> (log-log[prc]4)/4*3 = wood

edgy peak
#

thanks again ;d

wooden oasis
#

and my name is Anh not Tran

edgy peak
#

oh oke oke

#

lol