Jump to content

skript Box server


MAxiMo5667

Recommended Posts

I want a skript for normal blocks to work with fortune someone said :

Screenshot2024-09-01113659.png.b04a0ba36e1bd6fca3be619ab44ba7b5.png

would work but it dosnt, Maybe because of this plugin: image.png.26f1beb6e335593bf7a9308706768cec.png

it dosnt work, Please Help!

 

 

 

 

 

 

 

 

I seem to cant figure out how to combine the Fortune and Autopickup Maybe someone can find a skirpt or plugin that enables AutoPickup and works with Fortune Thanks!

Link to comment
Share on other sites

Hey, i made skript similiar to this a while ago, hope it helps a bit alteast:

on join:
    if {autopickup::%player%} is not set:
        set {autopickup::%player%} to true

on load:
    loop all players:
        if {autopickup::%loop-player%} is not set:
            set {autopickup::%loop-player%} to true

command /autopickup <text>:
    usage: &c/autopickup <true/false>
    permission: autopickup.skript
    permission message: &4You do not have permission to use this command.
    aliases: /telepathy, /itelepathy, /itp
    trigger:
        if arg-1 is "true":
            if {autopickup::%player%} = true:
                send "&8[&6Autopickup&8] &7Autopickup is already turned on." to player
                play sound "BLOCK.NOTE_BLOCK.BASS" to player
            else:
                set {autopickup::%player%} to true
                send "&8[&6Autopickup&8] &7Autopickup has been turned on." to player
                play sound "BLOCK.NOTE_BLOCK.HARP" to player
        if arg-1 is "false":
            if {autopickup::%player%} = false:
                send "&8[&6Autopickup&8] &7Autopickup is already turned off." to player
                play sound "BLOCK.NOTE_BLOCK.BASS" to player
            else:
                set {autopickup::%player%} to false
                send "&8[&6Autopickup&8] &7Autopickup has been turned off." to player
                play sound "BLOCK.NOTE_BLOCK.HARP" to player

on mine:
    if player's gamemode is survival:
        if player's inventory can hold 1 of targeted block:
            if {autopickup::%player%} = true:
                cancel the drops
                set {_f} to level of fortune of player's tool
                set {_l} to {_f} + 1
                set {_drops} to random integer between 1 and {_l}
                give {_drops} of event-block to player
            else:
                cancel the drops
                set {_f} to level of fortune of player's tool
                set {_l} to {_f} + 1
                set {_drops} to random integer between 1 and {_l}
                drop {_drops} of event-block
        else:
            cancel drops
            drop drops of event-block using player's tool

 

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