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.

Solved Crash minecraft on execute command.

Discussion in 'Skript' started by couger44, May 23, 2019.

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

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    I'm doing a script on applications for the Helper and Builder ranges, when I was testing the command I was crashed by the minecraft and I do not know why.
    Code (Skript):
    1.  
    2. options:
    3.     #true = postulacion abierta | false = postulacion cerrada
    4.     helper: true
    5.     builder: false
    6.     admin: false
    7.  
    8. on command "postulacion":
    9.     cancel event
    10.     sender = player
    11.     open chest with 3 rows named "&aPostulaciones." to player
    12.     set {_n} to 0
    13.     loop 27 times:
    14.         format a gui slot {_n} of player with air to do nothing
    15.         add 1 to {_n}
    16.     set {_helper.value} to "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjdlMTFkYjhmMzkyNzI3YTFjNDU5ZWI1OTFkZDhhMGFhMzg2MWMyNzQ4N2UxMzg0YmIyMmY5MTU3M2JlNyJ9fX0="
    17.     set {_helper} to skull from skin with value {_helper.value} signature "" named "&9[HELPER]"
    18.     if {@helper} = true:
    19.         set line 2 of lore of {_helper} to "&7Estado: &aPostulaciones abiertas."
    20.     else if {@helper} = false:
    21.         set line 2 of lore of {_helper} to "&7Estado: &cPostulaciones cerradas."
    22.     set line 4 of lore of {_helper} to "&7¿Quieres ser parte del equipo del staff?"
    23.     set line 5 of lore of {_helper} to "&7Dale click para mirar los requisitos."
    24.     format a gui slot 11 of player with {_helper} to close:
    25.         if {@helper} = true:
    26.             send " "
    27.             send "&eLos requisitos para ser HELPER son:"
    28.             send " "
    29.             send "&e[1] Tener 15 o más años de edad."
    30.             send "&6Pedimos esto por el motivo de que a esa edad, las personas ya empiezan a cambiar su mentalidad en lo que madurez se refiere. Ya empiezas a aceptar tus errores y a tomarte las cosas mas en serio."
    31.            
    32.             send "&e[2] Tener conocimiento sobre comandos."
    33.             send "&6No hay que darle muchas vueltas a esto. Solo te pedimos los principales conocimientos sobre los comandos de staff."
    34.            
    35.             send "&e[3] No haber tenido ninguna sanción."
    36.             send "&6De referencia al primer punto[1], no tener ninguna sanción ni haber hecho un mal rato a un jugador es signo de que ya te tomas las cosas mas en serio y respetas las reglas del servidor."
    37.            
    38.             send "&e[4] Rankeado."
    39.             send "&6Debes haber hecho prestigio por lo menos una vez. Lo que equivale al prestigio &8&l[CARBON-I]&6."
    40.             stop
    41.         else if {@helper} = false:
    42.             send "&c¡Las postulaciones no están abiertas!"
    43.             stop
    44.     set {_builder.value} to "c7a2c18ffa4d3f4216b2414179ecd88ae79e6b1e0e89c7bf25dd35994f7b96"
    45.     set {_builder} to skull from skin with value {_builder} signature "" named "&3[BUILDER]"
    46.     if {@builder} = true:
    47.         set line 2 of lore of {_builder} to "&7Estado: &aPostulaciones abiertas."
    48.     else if {@builder} = false:
    49.         set line 2 of lore of {_builder} to "&7Estado: &cPostulaciones cerradas."
    50.     set line 4 of lore of {_builder} to "&7¿Quieres ser parte del equipo de construcción?"
    51.     set line 5 of lore of {_builder} to "&7Dale click para mirar los requisitos."
    52.     format a gui slot 13 of player with {_builder} to close:
    53.         if {@builder} = true:
    54.             send " "
    55.             send "&eLos requisitos para pertencer al equipo de construcción son:"
    56.             send " "
    57.             send "&e[1] Comandos."
    58.             send "&6Saberse la función de la gran mayoria de los comandos del WorldEdit."
    59.             send " "
    60.             send "&e[2] Tener 15 o más años de edad."
    61.             send "&6Pedimos esto por el motivo de que a esa edad, las personas ya empiezan a cambiar su mentalidad en lo que madurez se refiere. Ya empiezas a aceptar tus errores y a tomarte las cosas mas en serio."
    62.             send " "
    63.             send "&e[3] Experiencia."
    64.             send "&6Debiste de haber trabajado en otro servidor como constructor."
    65.             send " "
    66.             send "&e[4] Rankeado."
    67.             send "&6Debes haber hecho prestigio por lo menos una vez. Lo que equivale al prestigio &8&l[CARBON-I]&6."
    68.             stop
    69.         else if {@builder} = false:
    70.             send "&c¡Las postulaciones no están abiertas!"
    71.             stop



     
  2. Best Answer:
    Post #3 by AsuDev, May 24, 2019
  3. jonawoning

    jonawoning Member

    Joined:
    May 24, 2019
    Messages:
    29
    Likes Received:
    2
    Hey,

    Your problem is that minecraft or your client can't handle that many actions.
    Just slower the progress.

    Maybe this will help you:


    Code (Text):
    1. command /test:
    2.     trigger:
    3.         wait 3 ticks
    Just enter ''Wait 3 ticks'' or ''Wait 1 second''.
    This wil slower the actions.
     
  4. AsuDev

    VIP

    Joined:
    Jan 27, 2017
    Messages:
    243
    Likes Received:
    21
    I think this has to do with formatting the gui with the second skull. The error said renderitem so I am assuming it is that. Notice how the first skull is in the gui but the second one is not and immediately crashes.
    Code (Skript):
    1. set {_builder.value} to "c7a2c18ffa4d3f4216b2414179ecd88ae79e6b1e0e89c7bf25dd35994f7b96"
    2. set {_builder} to skull from skin with value {_builder} signature "" named "&3[BUILDER]"
    You probably meant to put "value {_builder.value}" not "value {_builder}"

    Result should be this:
    Code (Skript):
    1. set {_builder} to skull from skin with value {_builder.value} signature "" named "&3[BUILDER]"
     
    #3 AsuDev, May 24, 2019
    Last edited: May 24, 2019
    • Like Like x 1
  5. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    HAHAHAHAHA Im stupid.
    Thanks bro.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...