1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

drop party enchant fail

Discussion in 'Skript' started by lordgamadon, Apr 4, 2020.

Thread Status:
Not open for further replies.
  1. lordgamadon

    lordgamadon New Member

    Joined:
    Apr 4, 2020
    Messages:
    8
    Likes Received:
    0
    so in the bottom, you can see what I drop and this is a beacon drop/drop party script
    but I cant enchant the drops :emoji_frowning:

    command /dpsstart:
    permission: beacon.drop
    permission message: Unknown command. Type "/help" for help.
    trigger:
    set {dp::start} to true
    send "Beacon drop starts"
    wait 3 seconds
    broadcast "{@BD} &4&l%player% &estarted a beacon drop!"
    wait 1 second
    broadcast "{@BD} &c20 &eseconds until beacon drop starts!"
    wait 10 seconds
    broadcast "{@BD} &c10 &eseconds until beacon drop starts!"
    wait 5 seconds
    broadcast "{@BD} &c5 &eseconds until beacon drop starts!"
    wait 2 seconds
    broadcast "{@BD} &c2 &esekunder til beacon drop starter!"
    wait 1 seconds
    broadcast "{@BD} &c1 &esecond until beacon drop starts!"
    wait 1 seconds
    broadcast "{@BD} &6&lBEACON DROPPET STARTER NU!"
    drop 64 arrows named "&4&lDP" at {dp::sted}
    drop 1 diamond helmet named "&4&lDP" at {dp::sted}
    drop 1 bow at of infinite 1 named "&4&lDP" {dp::sted}
    drop 276:0 1 damage_all:3 at {dp::sted}
    drop 310:0 1 protection_environmental:3 at {dp::sted}
    drop 311:0 1 protection_environmental:3 at {dp::sted}
    drop 312:0 1 protection_environmental:3 at {dp::sted}
    drop 313:0 1 protection_environmental:3 at {dp::sted}
    send "dp slut"


    command /dpsett:
    permission: dp.set
    permission message: Unknown command. Type "/help" for help.
    trigger:
    set {dp::sted} to location at player
    send "&7 You set the location ."
     
  2. GuardDev

    GuardDev Member

    Joined:
    Apr 5, 2020
    Messages:
    19
    Likes Received:
    4
    Use
    Code (Text):
    1. code blocks
    , also let us know what the errors are/explain more!
     
  3. lordgamadon

    lordgamadon New Member

    Joined:
    Apr 4, 2020
    Messages:
    8
    Likes Received:
    0
    i have no idea what that is
     
  4. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    1.Numeric id's are not supported in newer version
    2.Permission, and permission message are causing 20+errors
    3.Do not use {} because skript reads this as variable and causes error to due not setted variable
    4. "/help" " inside " " will cause errors ( "Unknown command. Type "/help" for help." will cause errors)
    5.Set threat to solved if it helped you
    Code (Text):
    1. command /dpsstart:
    2.     trigger:
    3.         if player has permission "beacon.drop":
    4.             set {dp::start} to true
    5.             send "Beacon drop starts"
    6.             wait 3 seconds
    7.             broadcast "@BD &4&l%player% &estarted a beacon drop!"
    8.             wait 1 second
    9.             broadcast "@BD &c20 &eseconds until beacon drop starts!"
    10.             wait 10 seconds
    11.             broadcast "@BD &c10 &eseconds until beacon drop starts!"
    12.             wait 5 seconds
    13.             broadcast "@BD &c5 &eseconds until beacon drop starts!"
    14.             wait 2 seconds
    15.             broadcast "@BD &c2 &esekunder til beacon drop starter!"
    16.             wait 1 seconds
    17.             broadcast "@BD &c1 &esecond until beacon drop starts!"
    18.             wait 1 seconds
    19.             broadcast "@BD &6&lBEACON DROPPET STARTER NU!"
    20.             drop 64 arrows named "&4&lDP" at {dp::sted}
    21.             drop 1 diamond helmet named "&4&lDP" at {dp::sted}
    22.             drop 1 bow of infinity 1 named "&4&lDP" at {dp::sted}
    23.             drop 1 diamond sword of sharpness 3 at {dp::sted}
    24.             drop 1 diamond helmet of protection 3 at {dp::sted}
    25.             drop 1 diamond chestplate of protection 3 at {dp::sted}
    26.             drop 1 diamond leggings of protection 3 at {dp::sted}
    27.             drop 1 diamond boots of protection 3 at {dp::sted}
    28.             send "dp slut"
    29.         else:
    30.             send "Unknown command. Type /help for help."
    31.  
    32. command /dpsett:
    33.     trigger:
    34.         if player has permission "dp.set":
    35.             set {dp::sted} to location at player
    36.             send "&7 You set the location ."
    37.         else:
    38.             send "Unknown command. Type /help for help."
     
Thread Status:
Not open for further replies.

Share This Page

Loading...