Hello, English is not my native lang so sorry for my bad english
Im new in skript scripting, ... and this forum.
well, im stuck at this part.
here is the code :
and here is the item list:
Here is the problem:
i expect this part
to be :
but, i cant make it to work.
i think skript parse {_req} and {_drop} as text?
or is it because of me lack of understanding and write it the wrong way?
googling return null (i dont know what keywords to use for my problem).
have any solution? or advice?
Im new in skript scripting, ... and this forum.
well, im stuck at this part.
here is the code :
code_language.skript:
aliases:
type of stone = 1, 4, 2, 3 #test block
t4 = diamond pickaxe
t3 = t4, iron pickaxe, golden pickaxe
t2 = t3, stone pickaxe
t1 = t2, wooden pickaxe
on mine of type of stone:
set {_pool::*} to yaml nodes with keys "luckypool" from "yml.itemdb"
loop {_pool::*}:
set {_chance} to yaml value "luckypool.%loop-value%.chance" from "yml.itemdb"
set {_drop} to loop-value
set {_req} to yaml value "luckypool.%loop-value%.tool" from "yml.itemdb"
chance of {_chance}:
tool is {_req}
drop 1 {_drop}
and here is the item list:
code_language.skript:
luckypool:
diamond:
chance: 1 #test 100% chance
break: 0
tool: "t4"
bone_item:
chance: 1
break: 0
tool: "t1"
Here is the problem:
i expect this part
code_language.skript:
tool is {_req}
drop 1 {_drop}
to be :
code_language.skript:
tool is t4 #and t4 refer to alias t4
drop 1 diamond
but, i cant make it to work.
i think skript parse {_req} and {_drop} as text?
or is it because of me lack of understanding and write it the wrong way?
googling return null (i dont know what keywords to use for my problem).
have any solution? or advice?