need help adding a fortune script to this skript

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

spdxm_

New Member
Oct 26, 2024
6
0
1
24
i have this script so far for giving a player an item when a block is mined but i need to add if the pickaxe has fortune so then it gives a random amount with whatever fortune enchant it has, could anyone help with this?

on break of diamond block:
if gamemode of player is survival:
if event-block is diamond block:
give player 5 diamond
clear drops
on break of diamond ore:
if gamemode of player is survival:
if event-block is diamond ore:
give player 1 diamond
clear drops