Jump to content

Script release *Lucky blocks!*


Recommended Posts

Change log:

 [EDITED] Changed some of the text

 

 

Reply if you have issues with the skript

 

 

##############
#Made by Duxk 
#############

#Change this btw
options:
    Title: &6&lLuckyDuck
    Item_name: &6&lLuckyDuck


on place:
    if block is sponge:
        if name of player's held item is "{@Item_name}":
            add event-block's location to {sponge::%player's uuid%::*}
            play sound "entity.item.pickup" with volume 3 to the player


command /luckyblock [<player>]:
    permission: luckyblock.skript.use
    permission message: &cInsufficient permissions!
    trigger:
        if arg-1 is not set:
            give player sponge named "{@Item_name}"
        if arg-1 is set:
            give arg-1 sponge named "{@Item_name}"

on break of sponge:
    if {sponge::%player's uuid%::*} contains event-block's location:
        cancel drops
        set {luckyblock.%player%} to a random integer between 1 and 30
        if {luckyblock.%player%} is 1:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            create an explosion of force 5 at the event-block
            send action bar "{@Title} &8>> &eYou won &4BOOM&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 2:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            create a fake explosion at the event-block
            send action bar "{@Title} &8>> &eYou won &4BOOM&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
            wait 1 second
            send title "&e&lPRANKED" to player
        if {luckyblock.%player%} is 3:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop diamond sword of sharpness 3 and unbreaking 3 named "&6&lSuper Lucky Sword!" with lore "&eDecent sword right here." at location of event-block
            send action bar "{@Title} &8>> &eYou won a &3 Super Lucky Sword&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 4:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop bow of power 3 and unbreaking 3 named "&6&lSuper Lucky Sword!" with lore "&eDecent bow right here." at location of event-block
            drop 10 arrows at location of event-block
            send action bar "{@Title} &8>> &eYou won a &3 Super Lucky Bow&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 5:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 1 zombie at location of event-block 
            set name of last spawned entity to "&6&lBOB"
            equip last spawned zombie with diamond helmet of protection 3
            equip last spawned zombie with diamond chestplate of protection 3
            equip last spawned zombie with diamond leggings of protection 3
            equip last spawned zombie with diamond boots of protection 3
            send action bar "{@Title} &8>> &eYou spawned &6BOB&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 6:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            wait 10 ticks
            send action bar "{@Title} &8>> &eYou won &7NOTHING&e!" to player 
            play sound "entity.villager.no" with volume 3 to the player
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 7:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 5 creepers at location of event-block 
            send action bar "{@Title} &8>> &eYou won some &4creepers&e!" to player 
            play sound "entity.villager.no" with volume 3 to the player
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 8:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 10 sticks named "&6&lSTICK" with lore "&7It be getting sticky up in here." at location of event-block
            send action bar "{@Title} &8>> &eYou won some &asticks&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 9:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            set event-block to cake
            send action bar "{@Title} &8>> &eYou won some &lCAKE&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 10:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 69 steak named "&6&lSTEAK" at location of event-block
            send action bar "{@Title} &8>> &eYou won some &lSTEAK&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 11:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 1 wolf at location of event-block
            set name of last spawned entity to "&lFOXY"
            drop 10 bones named "&7Tame him!" at location of event-block
            send action bar "{@Title} &8>> &eYou won some &lCAKE&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 12:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            set block above the player to anvil
            send action bar "{@Title} &8>> &eYou got anviled!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 13:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            poison the player for 30 seconds
            send action bar "{@Title} &8>> &eYou got &2poisened&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 14:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 5 squid
            send action bar "{@Title} &8>> &eYou got &1squided&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 15:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn giant at the event-block
            send action bar "{@Title} &8>> &eWoW you're a big fellow" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 16:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 5 carrots at the event-block
            send action bar "{@Title} &8>> &eYou got some &6carrots&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 17:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop stone sword of knockback 1 named "&7Meh sword" at the event-block
            send action bar "{@Title} &8>> &eMeh decent sword" to player 
            remove location of event-block from {sponge::%player's uuid%::*}        
        if {luckyblock.%player%} is 18:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 20 stone at the event-block
            send action bar "{@Title} &8>> &eYou got some stone?" to player 
            remove location of event-block from {sponge::%player's uuid%::*}    
        if {luckyblock.%player%} is 19:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            set block at block 3 north 1 west event-block to oak wood fence
            set block at block 3 north 2 west event-block to oak wood fence
            set block at block 3 north 3 west event-block to oak wood fence
            set block at block 2 north 3 west event-block to oak wood fence
            set block at block 1 north 3 west event-block to oak wood fence
            set block at block 3 west event-block to oak wood fence
            set block at block 3 south 1 west event-block to oak wood fence
            set block at block 3 south 2 west event-block to oak wood fence
            set block at block 3 south 3 west event-block to oak wood fence
            set block at block 2 south 3 west event-block to oak wood fence
            set block at block 1 south 3 west event-block to oak wood fence
            set block at block 3 south event-block to oak wood fence
            set block at block 3 north 1 east event-block to oak wood fence
            set block at block 3 north 2 east event-block to oak wood fence
            set block at block 3 north 3 east event-block to oak wood fence
            set block at block 2 north 3 east event-block to oak wood fence
            set block at block 1 north 3 east event-block to oak wood fence
            set block at block 3 east event-block to oak wood fence
            set block at block 3 south 1 east event-block to oak wood fence
            set block at block 3 south 2 east event-block to oak wood fence
            set block at block 3 south 3 east event-block to oak wood fence
            set block at block 2 south 3 east event-block to oak wood fence
            set block at block 1 south 3 east event-block to oak wood fence
            set block at block 3 north event-block to oak wood fence gate
            send action bar "{@Title} &8>> &eYou're the animal now" to player 
            remove location of event-block from {sponge::%player's uuid%::*}    
        if {luckyblock.%player%} is 20:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            set event-block to lava
            send action bar "{@Title} &8>> &eYou won some &cLAVA&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 21:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 10 dirt named "&5&lEPIC DIRT" at the event-block
            send action bar "{@Title} &8>> &eYou won some &6&lDIRT&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 22:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            strike lightning at the player
            send action bar "{@Title} &8>> &eYou got struck by lightning!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 23:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            push the player upwards at speed 5
            send action bar "{@Title} &8>> &eWEEEEEE!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 24:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 10 sheep at the event-block 
            send action bar "{@Title} &8>> &eYou won some sheep!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 25:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 1 leather helmet named "&6Starter helmet" at the event-block
            drop 1 leather chestplate named "&6Starter Chest Piece" at the event-block
            drop 1 leather pants named "&6Starter Pants" at the event-block
            drop 1 leather boots named "&6Starter Boots" at the event-block
            drop 1 wooden sword named "&6Starter Sword" at the event-block
            drop 1 wooden pickaxe named "&6Starter Pick" at the event-block
            drop 1 wooden axe named "&6Starter Axe" at the event-block
            send action bar "{@Title} &8>> &eYou won the &6starter kit&6!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 26:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 1 diamond chestplate at the event-block
            send action bar "{@Title} &8>> &eYou won a &3Diamond Chest Plate" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 27:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 1 carrot on a stick at the event-block
            drop 1 saddle at the event-block
            spawn 1 pig at location of event-block
            set name of last spawned entity to "&e&l&lRide Me"
            send action bar "{@Title} &8>> &eYou won a ridable pig!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 28:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 1 sponge named "{@Item_name}" at the event-block
            send action bar "{@Title} &8>> &eYou won another {@Item_name}&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 29:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 1 golden apple named "&e&lWAW" at the event-block
            send action bar "{@Title} &8>> &eYou won a Enchanted Golden Apple&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 30:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 1 chicken at location of event-block
            set name of last spawned entity to "&6&lIt's a duck &7(trust me)"
            send action bar "{@Title} &8>> &eYou won a &6&lDUCK&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}

 

 

 

Edited by Thedukc
Text issues
Link to comment
Share on other sites

On 5/15/2021 at 11:30 PM, Thedukc said:

Change log:

 [EDITED] Changed some of the text

 

 

Reply if you have issues with the skript

 

 

##############
#Made by Duxk 
#############

#Change this btw
options:
    Title: &6&lLuckyDuck
    Item_name: &6&lLuckyDuck


on place:
    if block is sponge:
        if name of player's held item is "{@Item_name}":
            add event-block's location to {sponge::%player's uuid%::*}
            play sound "entity.item.pickup" with volume 3 to the player


command /luckyblock [<player>]:
    permission: luckyblock.skript.use
    permission message: &cInsufficient permissions!
    trigger:
        if arg-1 is not set:
            give player sponge named "{@Item_name}"
        if arg-1 is set:
            give arg-1 sponge named "{@Item_name}"

on break of sponge:
    if {sponge::%player's uuid%::*} contains event-block's location:
        cancel drops
        set {luckyblock.%player%} to a random integer between 1 and 30
        if {luckyblock.%player%} is 1:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            create an explosion of force 5 at the event-block
            send action bar "{@Title} &8>> &eYou won &4BOOM&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 2:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            create a fake explosion at the event-block
            send action bar "{@Title} &8>> &eYou won &4BOOM&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
            wait 1 second
            send title "&e&lPRANKED" to player
        if {luckyblock.%player%} is 3:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop diamond sword of sharpness 3 and unbreaking 3 named "&6&lSuper Lucky Sword!" with lore "&eDecent sword right here." at location of event-block
            send action bar "{@Title} &8>> &eYou won a &3 Super Lucky Sword&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 4:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop bow of power 3 and unbreaking 3 named "&6&lSuper Lucky Sword!" with lore "&eDecent bow right here." at location of event-block
            drop 10 arrows at location of event-block
            send action bar "{@Title} &8>> &eYou won a &3 Super Lucky Bow&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 5:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 1 zombie at location of event-block 
            set name of last spawned entity to "&6&lBOB"
            equip last spawned zombie with diamond helmet of protection 3
            equip last spawned zombie with diamond chestplate of protection 3
            equip last spawned zombie with diamond leggings of protection 3
            equip last spawned zombie with diamond boots of protection 3
            send action bar "{@Title} &8>> &eYou spawned &6BOB&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 6:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            wait 10 ticks
            send action bar "{@Title} &8>> &eYou won &7NOTHING&e!" to player 
            play sound "entity.villager.no" with volume 3 to the player
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 7:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 5 creepers at location of event-block 
            send action bar "{@Title} &8>> &eYou won some &4creepers&e!" to player 
            play sound "entity.villager.no" with volume 3 to the player
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 8:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 10 sticks named "&6&lSTICK" with lore "&7It be getting sticky up in here." at location of event-block
            send action bar "{@Title} &8>> &eYou won some &asticks&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 9:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            set event-block to cake
            send action bar "{@Title} &8>> &eYou won some &lCAKE&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 10:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 69 steak named "&6&lSTEAK" at location of event-block
            send action bar "{@Title} &8>> &eYou won some &lSTEAK&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 11:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 1 wolf at location of event-block
            set name of last spawned entity to "&lFOXY"
            drop 10 bones named "&7Tame him!" at location of event-block
            send action bar "{@Title} &8>> &eYou won some &lCAKE&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 12:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            set block above the player to anvil
            send action bar "{@Title} &8>> &eYou got anviled!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 13:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            poison the player for 30 seconds
            send action bar "{@Title} &8>> &eYou got &2poisened&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 14:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 5 squid
            send action bar "{@Title} &8>> &eYou got &1squided&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 15:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn giant at the event-block
            send action bar "{@Title} &8>> &eWoW you're a big fellow" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 16:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 5 carrots at the event-block
            send action bar "{@Title} &8>> &eYou got some &6carrots&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 17:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop stone sword of knockback 1 named "&7Meh sword" at the event-block
            send action bar "{@Title} &8>> &eMeh decent sword" to player 
            remove location of event-block from {sponge::%player's uuid%::*}        
        if {luckyblock.%player%} is 18:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 20 stone at the event-block
            send action bar "{@Title} &8>> &eYou got some stone?" to player 
            remove location of event-block from {sponge::%player's uuid%::*}    
        if {luckyblock.%player%} is 19:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            set block at block 3 north 1 west event-block to oak wood fence
            set block at block 3 north 2 west event-block to oak wood fence
            set block at block 3 north 3 west event-block to oak wood fence
            set block at block 2 north 3 west event-block to oak wood fence
            set block at block 1 north 3 west event-block to oak wood fence
            set block at block 3 west event-block to oak wood fence
            set block at block 3 south 1 west event-block to oak wood fence
            set block at block 3 south 2 west event-block to oak wood fence
            set block at block 3 south 3 west event-block to oak wood fence
            set block at block 2 south 3 west event-block to oak wood fence
            set block at block 1 south 3 west event-block to oak wood fence
            set block at block 3 south event-block to oak wood fence
            set block at block 3 north 1 east event-block to oak wood fence
            set block at block 3 north 2 east event-block to oak wood fence
            set block at block 3 north 3 east event-block to oak wood fence
            set block at block 2 north 3 east event-block to oak wood fence
            set block at block 1 north 3 east event-block to oak wood fence
            set block at block 3 east event-block to oak wood fence
            set block at block 3 south 1 east event-block to oak wood fence
            set block at block 3 south 2 east event-block to oak wood fence
            set block at block 3 south 3 east event-block to oak wood fence
            set block at block 2 south 3 east event-block to oak wood fence
            set block at block 1 south 3 east event-block to oak wood fence
            set block at block 3 north event-block to oak wood fence gate
            send action bar "{@Title} &8>> &eYou're the animal now" to player 
            remove location of event-block from {sponge::%player's uuid%::*}    
        if {luckyblock.%player%} is 20:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            set event-block to lava
            send action bar "{@Title} &8>> &eYou won some &cLAVA&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 21:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 10 dirt named "&5&lEPIC DIRT" at the event-block
            send action bar "{@Title} &8>> &eYou won some &6&lDIRT&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 22:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            strike lightning at the player
            send action bar "{@Title} &8>> &eYou got struck by lightning!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 23:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            push the player upwards at speed 5
            send action bar "{@Title} &8>> &eWEEEEEE!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 24:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 10 sheep at the event-block 
            send action bar "{@Title} &8>> &eYou won some sheep!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 25:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 1 leather helmet named "&6Starter helmet" at the event-block
            drop 1 leather chestplate named "&6Starter Chest Piece" at the event-block
            drop 1 leather pants named "&6Starter Pants" at the event-block
            drop 1 leather boots named "&6Starter Boots" at the event-block
            drop 1 wooden sword named "&6Starter Sword" at the event-block
            drop 1 wooden pickaxe named "&6Starter Pick" at the event-block
            drop 1 wooden axe named "&6Starter Axe" at the event-block
            send action bar "{@Title} &8>> &eYou won the &6starter kit&6!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 26:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 1 diamond chestplate at the event-block
            send action bar "{@Title} &8>> &eYou won a &3Diamond Chest Plate" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 27:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 1 carrot on a stick at the event-block
            drop 1 saddle at the event-block
            spawn 1 pig at location of event-block
            set name of last spawned entity to "&e&l&lRide Me"
            send action bar "{@Title} &8>> &eYou won a ridable pig!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 28:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 1 sponge named "{@Item_name}" at the event-block
            send action bar "{@Title} &8>> &eYou won another {@Item_name}&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 29:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            drop 1 golden apple named "&e&lWAW" at the event-block
            send action bar "{@Title} &8>> &eYou won a Enchanted Golden Apple&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}
        if {luckyblock.%player%} is 30:
            play sound "entity.experience_orb.pickup" with volume 3 to the player
            spawn 1 chicken at location of event-block
            set name of last spawned entity to "&6&lIt's a duck &7(trust me)"
            send action bar "{@Title} &8>> &eYou won a &6&lDUCK&e!" to player 
            remove location of event-block from {sponge::%player's uuid%::*}

 

 

 

Not trying to insult you, but this is kind of an eyesore. Put the possible winnings into a loot list, and choose a random element out of that table when you break the block. I think this would crash anybody's server if they broke a couple.
Finally, use functions.

Edited by ItRO

Skripter

Joined Dec 05, 2016

My name is ItsRyleh, I have been scripting for about two or three years now, and I usually make simple and concise scripts for free. If you wish to contact me you can on Discord @ The Real Rick Astley#0001

VIP Rank

Worked for well over 60 servers on Minehut

Accounts

CowFisherman, ItsRyleh

Happy Hip Hop Sticker by Chillfolio

Link to comment
Share on other sites

yeah... I can't get it working either. The lucky blocks don't show up on the item list. I search for them and searching for the keyword lucky comes back empty. I have the CS Core Lib installed, plus Slimefun pluging, and Slimfun: Lucky Blocks plugin installed. I restarted the server... I'm op on my server... it's set to creative mode... is there anything else I can try? 

Link to comment
Share on other sites

This is a skript and not a slime fun thing. Either i don't understand your question or maybe you think this is some sort of slime fun addon? Bassicly you put the skript in your scripts folder then reload it. Then you would do /luckyblock and receive a luckyblock.

Link to comment
Share on other sites

On 5/19/2021 at 12:49 AM, ItRO said:

Not trying to insult you, but this is kind of an eyesore. Put the possible winnings into a loot list, and choose a random element out of that table when you break the block. I think this would crash anybody's server if they broke a couple.
Finally, use functions.

I'm not very good with functions atm. And the script shouldn't crash your server. Granted it those lag a bit on reload but that is it. Maybe I can use a function at the fence event.  Also wdym by the loot list? Do you mean a list that all the stuff you can get is in or a list that you can see what is the lucky block can drop. Because i don't think a simple list could work for this type of script to pick from.

Link to comment
Share on other sites

On 5/22/2021 at 9:45 PM, Thedukc said:

I'm not very good with functions atm. And the script shouldn't crash your server. Granted it those lag a bit on reload but that is it. Maybe I can use a function at the fence event.  Also wdym by the loot list? Do you mean a list that all the stuff you can get is in or a list that you can see what is the lucky block can drop. Because i don't think a simple list could work for this type of script to pick from.

I'm not sure what it is at the moment, but I'm confident there is a list in skript where you can call every item in the game and take a few random values from that. And some advice, learn functions. They save you time. 🙂

Skripter

Joined Dec 05, 2016

My name is ItsRyleh, I have been scripting for about two or three years now, and I usually make simple and concise scripts for free. If you wish to contact me you can on Discord @ The Real Rick Astley#0001

VIP Rank

Worked for well over 60 servers on Minehut

Accounts

CowFisherman, ItsRyleh

Happy Hip Hop Sticker by Chillfolio

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