Jump to content

Fortune Skript for Box servers! (also includes auto pickup and renaming the item)


Shortrange_y8

Recommended Posts

here is the skript copy and paste:

on break of gold ore:
  if player's tool has enchantment of fortune:
    event-cancelled
    set {_fortune} to player's tool's level of fortune
    set {_baseDrops} to 1
    repeat {_fortune} times:
      set {_baseDrops} to {_baseDrops} * 2
    set {_drops} to new list
    repeat {_baseDrops} times:
      add (smelted gold ore) to {_drops}
    loop {_baseDrops} times:
      loop-values {_drops}:
        set loop-value's display name to "&eGold Ingot"
        add loop-value to player's inventory
#gold can be switched around as well as its name

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...