Hello. This might be a difficult question, but I'm looking for a stable way on saving a value for each and every item.
Let's say for example, I assign a stick a value of 1 and an oak plank a value of 2.
Skript will then loop through recepies and see if the ingredients have any value. If so, it adds up all the values of these ingredients and defines the new item a value. Is there anyone able to help with the logic behind this.?
#EMC Item Exchange
1 messages · Page 1 of 1 (latest)
Let's say i sacrifice a stick, wich adds 1 to my total value. One i have a diamonds worth of value, i can then exchange that for a diamond!
Sacrifice a diamond and the value of a diamonds is added to me, that's worth allot of sticks:}
Anyone.?
Well
you would have to make up those values yourself I believe
O h n o
Mhm
trigger:
set {_item} to item in players hand
if {_item} is stick:
remove 1 stick from players inventory
add 1 to {playervalue::%uuid of player%}```
trigger:
if arg-1 is "diamond":
if {playervalue::%uuid of player&} >= 10:
remove 10 from {playervalue::%uuid of player%}
give player diamond```
thats how i would do it
because im also sort of new to skript
Well the problem is, theres like 1k items or some
hm
Then you can dynamicly Exchange them like this with a single algorithm..
I just need to have a good and clever way to asign each item a value without spending a week doing that XD
Alright, wish you luck man
thanks lol
Take the time you need