Jump to content

there are no errors in my loot rain skript but it doesn't work


Recommended Posts

command /reloadlootdrop:
    trigger:
        delete {_LOOT::*}
        add "diamond sword" to {_LOOT::*}
        add "fishing rod" to {_LOOT::*}
        add "64 diamond blocks" to {_LOOT::*}
        add "spawner" to {_LOOT::*}
        add "blaze spawn egg" to {_LOOT::*}
        #set {_LOOT::*} to "diamond sword" and "fishing rod" and "64 diamond blocks" and "spawner" and "blaze spawn egg"
every 1 minute:
    set {_x} to random integer between -30 and 24
    set {_z} to random integer between 11 and -40
    broadcast "&2 &l There is a loot rain at %{_x}% , 68 %{_z}% which will begin in 30 seconds. get ready to catch the loot and not get killed!"
    wait 30 seconds
    broadcast "THE LOOT HAS DROPPED"
    loop 50 times:
        set {_drop} to random item out of {_LOOT::*}
        drop {_drop} at location({_x}, 70, {_z},world "lobby")
        wait 0.5 second

there are no errors but items will no rain from the sky

Link to comment
Share on other sites

command /reloadlootdrop:
    trigger:
        delete {_LOOT::*}
        add diamond sword to {_LOOT::*}
        add fishing rod to {_LOOT::*}
        add 64 diamond blocks to {_LOOT::*}
        add spawner to {_LOOT::*}
        add blaze spawn egg to {_LOOT::*}
        #set {_LOOT::*} to diamond sword and fishing rod and 64 diamond blocks and spawner and blaze spawn egg
every 1 minute:
    set {_x} to random integer between -30 and 24
    set {_z} to random integer between 11 and -40
    broadcast "&2 &l There is a loot rain at %{_x}% , 68 %{_z}% which will begin in 30 seconds. get ready to catch the loot and not get killed!"
    wait 30 seconds
    broadcast "THE LOOT HAS DROPPED"
    loop 50 times:
        set {_drop} to random item out of {_LOOT::*}
        drop {_drop} at location({_x}, 70, {_z},world "lobby")
        wait 0.5 second

Maybe try removing the # in line 9 / You don't need to have "" for items unless you want to send/broadcast them. I am not the best at skripting but I hope this helps. 

  • Like 1

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

42 minutes ago, NotKaizo31 said:

command /reloadlootdrop:
    trigger:
        delete {_LOOT::*}
        add diamond sword to {_LOOT::*}
        add fishing rod to {_LOOT::*}
        add 64 diamond blocks to {_LOOT::*}
        add spawner to {_LOOT::*}
        add blaze spawn egg to {_LOOT::*}
        #set {_LOOT::*} to diamond sword and fishing rod and 64 diamond blocks and spawner and blaze spawn egg
every 1 minute:
    set {_x} to random integer between -30 and 24
    set {_z} to random integer between 11 and -40
    broadcast "&2 &l There is a loot rain at %{_x}% , 68 %{_z}% which will begin in 30 seconds. get ready to catch the loot and not get killed!"
    wait 30 seconds
    broadcast "THE LOOT HAS DROPPED"
    loop 50 times:
        set {_drop} to random item out of {_LOOT::*}
        drop {_drop} at location({_x}, 70, {_z},world "lobby")
        wait 0.5 second

Maybe try removing the # in line 9 / You don't need to have "" for items unless you want to send/broadcast them. I am not the best at skripting but I hope this helps. 

hey kaizo. i have tried out your suggestion but unfortunately it does not work. thanks for trying to help me

Link to comment
Share on other sites

Oh ofc it doesn't work variables with _ are temporary meaning they don't exist outside their coding block. By just naming it {LOOT::*} Kaizos idea should work.

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

it still does not work. there are no error codes.

command /reloadlootdrop:
    trigger:
        delete {LOOT::*}
        add "diamond sword" to {LOOT::*}
        add "fishing rod" to {LOOT::*}
        add "64 diamond blocks" to {LOOT::*}
        add "spawner" to {LOOT::*}
        add "blaze spawn egg" to {LOOT::*}
        set {LOOT::*} to diamond sword and fishing rod and 64 diamond blocks and spawner and blaze spawn egg
every 1 minute:
    set {_x} to random integer between -30 and 24
    set {_z} to random integer between 11 and -40
    broadcast "&2 &l There is a loot rain at %{_x}% , 68 %{_z}% which will begin in 30 seconds. get ready to catch the loot and not get killed!"
    wait 30 seconds
    broadcast "THE LOOT HAS DROPPED"
    loop 50 times:
        set {_drop} to random item out of {LOOT::*}
        drop a random item out of {LOOT::*} at location({_x}, 70, {_z},world "lobby")
        wait 0.5 second

this is my new code

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