Usage of Variables with items across multiple files

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

Le4ft

Member
Jun 26, 2023
20
0
1
Hi,

I'm facing this problem - I have file named items.sk which stores my custom items in variables like this
code_language.skript:
variables:
    {items::malachite} = scute named "&3Malachite" with lore "&7Can be used to craft special tools" and "" and "&9&lRARE INGREDIENT"

And I don't know how to use this variable in other file, I tried using this

code_language.skript:
        if {_item} is "malachite":
            give {items::malachite} to player
But this doesn't work.

Do you guys have any tips or anything how can I use that or how can I improve my code?