a mógłbyś mi powiedzieć co miałem źle? i jak działa ta funkcja bo ja tylko w c++ podstawy pamiętam, i to pewnie działa na takiej zasadzie jak int np(),
podałbyś mi link do jakiegoś filmu gdzie autor mi to wytłumaczy w krótki i łatwy do zapamiętania sposób? byłbym bardzo wdzięczny
on mine of stone:
if player's gamemode is survival:
if player's held item is not enchanted with fortune:
chance of 15%:
add 1 diamond to player's inventory
send "&b&l[&e&lDROP&b&l] &7Wydropiłeś &b1 &7diament!"
if player's tool is any pickaxe of fortune 1:
chance of 100%:
add 2 diamond to player's inventory
send "&b&l[&e&lDROP&b&l] &7Wykopałeś &b2 &7diamenty!"
if player's tool is any pickaxe of fortune 2:
chance of 100%:
add 3 diamond to player's inventory
send "&b&l[&e&lDROP&b&l] &7Wykopałeś &b3 &7diamenty!"
if player's tool is any pickaxe of fortune 3:
chance of 100%:
add 4 diamond to player's inventory
send "&b&l[&e&lDROP&b&l] &7Wykopałeś &b4 &7diamenty!"
add 12 exp to player