COMMAND WONT WORK!!! ! ! !

  • Welcome to skUnity!

    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 community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

DPPPPP

Member
Jul 22, 2023
27
0
1
Please help me this is my code


command /craft <integer> <integer>:
trigger:
arg-1 is 1:
set {_number1} to arg-2 * 5
set {_number2} to arg-2 * 1
player's inventory contains {_number1} leather with name "&5Magical &8Cloth":
remove {_number1} leather with name "&5Magical &8Cloth" from the player's inventory
set {_item} to {_number2} leather helmet of protection 4 with name "&5Magical &8Helmet"
dye {_item} pink
give {_item} to the player
player's inventory does not contain {_number1} leather with name "&5Magical &8Cloth":
send "&4Insufficient Materials"

specifiaclly " player's inventory contains {_number1} leather with name "&5Magical &8Cloth": " and " player's inventory does not contain {_number1} leather with name "&5Magical &8Cloth": "

these show errors and states that "&5Magical &8Cloth" is not a location
 
command /craft <integer> <integer>:
trigger:
arg-1 is 1:
set {_number1} to arg-2 * 5
set {_number2} to arg-2 * 1
if player's inventory contains {_number1} of leather with name "&5Magical &8Cloth":
remove {_number1} of leather with name "&5Magical &8Cloth" from the player's inventory
set {_item} to {_number2} of leather helmet of protection 4 with name "&5Magical &8Helmet"
dye {_item} pink
give {_item} to the player
else if player's inventory does not contain {_number1} of leather with name "&5Magical &8Cloth":
send "&4Insufficient Materials"
 
use
"remove {_number1} of leather with name "&5Magical &8Cloth" from the player's inventory", "set {_item} to {_number2} of leather helmet of protection 4 with name "&5Magical &8Helmet"", "player's inventory does not contain {_number1} of leather with name "&5Magical &8Cloth":"