Jump to content

Crates Skript


BluryLovesTacos

Recommended Posts

This is My First Crates Skript So Please Don't Hate

 

options:

# KEYS

    KeyType: carrot of efficiency 1
    KeyName: "&b&lTest &eKey"
    KeyLore: "&7Right-Click On Crate To Test"
    
on rightclick on chest:
    if block under event-block is gold block:
        cancel event
        if player is holding {@KeyType} named {@KeyName} with lore {@KeyLore}:
        
            set {_random} to a random integer from 1 to 100
            if {_random} is between 1 and 50:
                set {_item} to gravel named "&ctest"
            if {_random} is between 51 and 80:
                set {_item} to iron block named "&ctest"
            if {_random} is between 51 and 100:
                set {_item} to diamond block named "&ctest"
            wait 1 tick
            remove player's held item from player's inventory
            give player 1 of {_item}
            send "&d&lHope&5&lGN &8&l>> &7You Got %{_item}%"
        else:
            send "&d&lHope&5&lGN &8&l>> &7You Need A Key For This"


command key:
    trigger:
        if player is op:
            give player 1 of {@KeyType} named {@KeyName} with lore {@KeyLore}
Link to comment
Share on other sites

14 minutes ago, BluryLovesTacos said:

This is My First Crates Skript So Please Don't Hate

 

options:

# KEYS

    KeyType: carrot of efficiency 1
    KeyName: "&b&lTest &eKey"
    KeyLore: "&7Right-Click On Crate To Test"
    
on rightclick on chest:
    if block under event-block is gold block:
        cancel event
        if player is holding {@KeyType} named {@KeyName} with lore {@KeyLore}:
        
            set {_random} to a random integer from 1 to 100
            if {_random} is between 1 and 50:
                set {_item} to gravel named "&ctest"
            if {_random} is between 51 and 80:
                set {_item} to iron block named "&ctest"
            if {_random} is between 51 and 100:
                set {_item} to diamond block named "&ctest"
            wait 1 tick
            remove player's held item from player's inventory
            give player 1 of {_item}
            send "&d&lHope&5&lGN &8&l>> &7You Got %{_item}%"
        else:
            send "&d&lHope&5&lGN &8&l>> &7You Need A Key For This"


command key:
    trigger:
        if player is op:
            give player 1 of {@KeyType} named {@KeyName} with lore {@KeyLore}

better than mine lol

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

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