Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Look aliases...Good evening,
How to use all types of wood in a recipe register? ^^
{wood type}:
{default} = :0-5
<any> = :0-5
(oak|regular|normal) = :0
(spruce|fir|redwood|pine) = :1
birch = :2
jungle = :3
acacia = :4
dark oak = :5
As he said above , it doesn't work.
all types of wood
Have you tried:
yes, I have tested "any type of wood planks", "wood planks", "planks" and "all planks"
I have tested no works for recipe :/
What about "any woods"? For me works fine.No xD
Too bad :/
I should be able to fix it with inventory click, but would be cool that a dev confirms it
[20:16:16 INFO]: [Skript] Reloading test.sk...
[20:16:16 INFO]: [Skript] Successfully reloaded test.sk.
register new shaped recipe for 1 of {_chest} using any planks, oak wood planks, oak wood planks, oak wood planks, leather, oak wood planks, oak wood planks, oak wood planks, oak wood planks
just register 4x or 5x? times...My code:
[doublepost=1494273399,1494094879][/doublepost]plz need help :/code_language.skript:register new shaped recipe for 1 of {_chest} using any planks, oak wood planks, oak wood planks, oak wood planks, leather, oak wood planks, oak wood planks, oak wood planks, oak wood planks
loop 5 times: #or 4?
register new shaped recipe for 1 of {_chest} using wood plank:%loop-number%, wood plank:%loop-number%, wood plank:%loop-number%, wood plank:%loop-number%, leather, wood plank:%loop-number%, wood plank:%loop-number%, wood plank:%loop-number%, wood plank:%loop-number%
You can't do that, item types data values only get numbers and not expressions, for do that you would have to do:just register 4x or 5x? times...
Code:loop 5 times: #or 4? register new shaped recipe for 1 of {_chest} using wood plank:%loop-number%, wood plank:%loop-number%, wood plank:%loop-number%, wood plank:%loop-number%, leather, wood plank:%loop-number%, wood plank:%loop-number%, wood plank:%loop-number%, wood plank:%loop-number%
"item:damage" parsed as item
loop 5*9 times:
if loop-number is between 1 and 6:
register ----- wood planks:%loop-number, wood planks:0, wood planks:0 ..........
else if loop-number is between 7 and 12:
reigster .... woodplanks:0, wood panks:%loop-number% wood planks:0 ....
#contiue it.
aliases:
all wood = 5:0, 5:1, 5:2, 5:3, 5:4, 5:5
command /giveWood:
trigger:
give sender all wood
# Not sure if this command actually works, didn't test it
Well, if you had read the post, you'll see that the issue is with the recipe register effect not supporting multiple items as ingredients.You can try this at the top of your skript
code_language.skript:aliases: all wood = 5:0, 5:1, 5:2, 5:3, 5:4, 5:5
This adds an alias for all the woods, so for example:
code_language.skript:command /giveWood: trigger: give sender all wood # Not sure if this command actually works, didn't test it
Well, if you had read the post, you'll see that the issue is with the recipe register effect not supporting multiple items as ingredients.