After a lot of time trying out several things from the docs, which half seem to be broken, I am proud to present the finished product, which only prevents the player from taking the crafting table's result slot item, in these examples below, I had to work around the fact that I couldn't compare a clicked slot type to RESULT, but at the same time not preventing the player from moving an iron axe in his/her inventory while in a workbench.
Here is an example for any viewers looking to use this system
), thank you too everyone for your input <3.
code_language.skript:
# -
# In this example each player will only be able to craft 3 iron axes unless their variable is reset to 0.
# -
# Craft Limit Check
on inventory click:
if inventory type of player's current inventory is "WORKBENCH":
if clicked item is iron axe:
if clicked inventory is not player's inventory:
if clicked slot is 0:
if {craft.axe.%player%} = 3:
cancel event
send "You cannot craft any more axes!"
stop
add 1 to {craft.axe.%player%}
send "successfully crafted axe"
It took me a while but I'm happy that I could solve this issue with a simple work around, now I just can't wait for an addon developer to revive json!
[doublepost=1513819185,1513819034][/doublepost]
Just sliding onto this post once more, this is also useful if anyone would like to make special crafts that are permission specific, allowing donors/certain ranks to craft special things, the possibilities are endless! Happy Holidays! ♥
~Selvati