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

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Bedstar

Member
May 23, 2025
4
0
1
Ok so im trying to make a magic find system which doubles your chances for every 100 magic find you have.
here is the code:


Code:
options:
    coal_precentage: 5
    iron_precentage: 2.5
    gold_precentage: 1
    diamond_precentage: 0.5
    emerald_precentage: 0.1
    netherite_precentage: 0.01
    
variables:
    {player.magicfind.%player%} = 1
    
on break of stone:
    set {_multiplier} to {player.magicfind.%player%} * 0.01 + 1
    set {coal.perc.%player%} to {coal.perc.%player%} * {_multiplier}
    
command /magicfind <int>:
    trigger:
        if arg-1 is set:
            add arg-1 to {coal.perc.%player%}
            
command /testfind:
    trigger:
        send "you have %{coal.perc.%player%}% percentage","you have %{player.magicfind.%player%}% magic find" to player

however my event of multiplying the percentage isnt good, because if i break stone it will continue to multiply it,

what event would be good for magic find, and if you can improve my code in anyway ill appreciate it.

last time i tested this i got a lil bit of luck: 3m percentage to drop coal and 1000 magic find