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:
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
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