1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Custom item drop

Discussion in 'Skript' started by seaseasea, Dec 3, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. seaseasea

    seaseasea Member

    Joined:
    Nov 26, 2021
    Messages:
    3
    Likes Received:
    0
    Code (Text):
    1.        
    2. options:
    3.         fthe_blocks: stone, diorite
    4.  
    5.         ...
    6.         set {_fthe_blocks_random::*} to split "{@fthe_blocks}" at ", "
    7.         set {_fthe_blocks} to random element out of {_fthe_blocks_random::*}
    8.         send "%{_fthe_blocks}%"
    9.         drop {_fthe_blocks} at location 64, 2, -348 in world "world" without velocity
    10.  
    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 (Text):
    1. 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?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...