Solved Custom item drop

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

    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!

Status
Not open for further replies.

seaseasea

Member
Nov 26, 2021
3
0
1
21
Code:
options:
        fthe_blocks: stone, diorite

        ...
        set {_fthe_blocks_random::*} to split "{@fthe_blocks}" at ", "
        set {_fthe_blocks} to random element out of {_fthe_blocks_random::*}
        send "%{_fthe_blocks}%"
        drop {_fthe_blocks} at location 64, 2, -348 in world "world" without velocity
Hi all. I need to drop a random item from "fthe_blocks" in the "options" parameter. Random works great, the block material is displayed in the chat, but there is one problem. In this part of the code:
Code:
drop {_fthe_blocks} at location 64, 2, -348 in world "world" without velocity
The item is not dropped, although if you specify a stone instead of the {_fthe_blocks} variable for example, it will drop. The config is reloaded without errors. What's the problem?
 
Status
Not open for further replies.