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!

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

Solved Is there a way to break stone with fortune and get the fortune blocks?

Discussion in 'Requests' started by catsorios, Aug 27, 2021.

  1. catsorios

    catsorios New Member

    Joined:
    Aug 26, 2021
    Messages:
    2
    Likes Received:
    0
    I got a box server on minehut and I would like to know if I can apply fortune to stone. I have absolutely no idea how someone would do this soo yeah. :emoji_slight_smile:
     
  2. Best Answer:
    Post #2 by Minecoll_YT, Sep 1, 2021
  3. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    597
    Likes Received:
    37
    Code (Text):
    1. on break of stone:
    2.     if tool of player is enchanted with fortune:
    3.         cancel drops
    4.         set {_amount} to 1
    5.         if level of fortune of player's tool is 1:
    6.             chance of 33%:
    7.                 set {_amount} to 2
    8.         if level of fortune of player's tool is 2:
    9.             chance of 25%:
    10.                 set {_amount} to 2
    11.             chance of 25%:
    12.                 set {_amount} to 3
    13.         if level of fortune of player's tool is 3:
    14.             chance of 20%:
    15.                 set {_amount} to 2
    16.             chance of 20%:
    17.                 set {_amount} to 3
    18.             chance of 20%:
    19.                 set {_amount} to 4
    20.         drop {_amount} of stone at event-block
     
  4. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    That's a bit excessive and I would say there is a better way, but 0 spoonfeeding today from my side.
     
  5. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    597
    Likes Received:
    37
    This is the simplest way I could think of while still using the normal minecraft drop values:
    [​IMG]
     
  6. ShyDoge

    ShyDoge Member

    Joined:
    Jul 31, 2021
    Messages:
    41
    Likes Received:
    1
    Please set this thread as solved if you're all good :emoji_slight_smile:
     

Share This Page

Loading...