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.

I need help with crafting

Discussion in 'Skript' started by Max1234321, May 17, 2020.

Thread Status:
Not open for further replies.
  1. Max1234321

    Max1234321 Member

    Joined:
    May 17, 2020
    Messages:
    1
    Likes Received:
    0
    Hello everyone!

    I need help with the crafting event (on craft).

    If the player creates an item, he must get a random item:

    on craft:
    cancel event
    give (random item out of all items) to player

    But when I cancel the event, the item will stay in the crafting table.
    And when I don't cancel the event, the player is getting the random item
    and the item he crafts.


    Sorry for my bead english, I'm from Germany :emoji_frowning:
     
  2. Flowy

    Flowy New Member

    Joined:
    May 29, 2020
    Messages:
    6
    Likes Received:
    0
    on craft:
    wait 1 tick
    remove all event-item from player
    give player 1 of random items out of all items

    I think you can use this..
    I tried and its worked. Thank you :emoji_slight_smile:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...