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

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

catsorios

New Member
Aug 26, 2021
2
0
1
23
Yo mums house
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:
 
Code:
on break of stone:
    if tool of player is enchanted with fortune:
        cancel drops
        set {_amount} to 1
        if level of fortune of player's tool is 1:
            chance of 33%:
                set {_amount} to 2
        if level of fortune of player's tool is 2:
            chance of 25%:
                set {_amount} to 2
            chance of 25%:
                set {_amount} to 3
        if level of fortune of player's tool is 3:
            chance of 20%:
                set {_amount} to 2
            chance of 20%:
                set {_amount} to 3
            chance of 20%:
                set {_amount} to 4
        drop {_amount} of stone at event-block
 
Code:
on break of stone:
    if tool of player is enchanted with fortune:
        cancel drops
        set {_amount} to 1
        if level of fortune of player's tool is 1:
            chance of 33%:
                set {_amount} to 2
        if level of fortune of player's tool is 2:
            chance of 25%:
                set {_amount} to 2
            chance of 25%:
                set {_amount} to 3
        if level of fortune of player's tool is 3:
            chance of 20%:
                set {_amount} to 2
            chance of 20%:
                set {_amount} to 3
            chance of 20%:
                set {_amount} to 4
        drop {_amount} of stone at event-block

That's a bit excessive and I would say there is a better way, but 0 spoonfeeding today from my side.
 
This is the simplest way I could think of while still using the normal minecraft drop values:
brave_qtgpRzySJi.png