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.

Custom drop for fortune enchantment.

Discussion in 'Skript' started by Jerooski, Apr 28, 2020.

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

    Jerooski Member

    Joined:
    Apr 19, 2020
    Messages:
    16
    Likes Received:
    0
    I'm trying to make it so the higher the fortune, the higher the the number, I have this setup but only works with fortune 1, no errors.
    Code (Text):
    1. on break of coal block:
    2.     if player's tool is enchanted with fortune 1:
    3.         cancel event
    4.         set block to air
    5.         give player 64 coal
    6.     else if player's tool is enchanted with fortune 2:
    7.         cancel event
    8.         set block to air
    9.         give player 96 coal
     
  2. why not use a plugin like autosell for this?
     
  3. Jerooski

    Jerooski Member

    Joined:
    Apr 19, 2020
    Messages:
    16
    Likes Received:
    0
    I'm on a minehut server and couldn't find a plugin that would do it. I also just want the players to mine the block and make the item go to their inventories directly without dropping.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...