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 Need help with adding eye to end portal frame

Discussion in 'Skript' started by ViperX, Jul 26, 2022.

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

    ViperX Member

    Joined:
    Jul 26, 2022
    Messages:
    26
    Likes Received:
    0
    Hey, I trying to make a skript that when you right click with a item on a end portal frame its putting the eye inside of it... here is my code:
    Code (Text):
    1. if event-block is ender portal frame:
    2.         if name of event-player's tool is "&5Summoning Eye":
    3.             set block at location of event-block to end portal frame [eye=true]
    The error: upload_2022-7-26_13-42-58.png

    if I need an addon for this tell me too please :emoji_slight_smile:
     
  2. Bit

    Bit Member

    Joined:
    Jan 26, 2021
    Messages:
    27
    Likes Received:
    0
    What about this?
    Code (Text):
    1. on click:
    2.     if event-block is end portal frame:
    3.         if name of event-player's tool is "&5Summoning Eye":
    4.             set block at location of event-block to end portal frame [eye=true]
    If this is not working, please send the output of /skript info here.
     
  3. ViperX

    ViperX Member

    Joined:
    Jul 26, 2022
    Messages:
    26
    Likes Received:
    0
    Not working its the same as my code....

    wdym by /skript info?
    there is no command...

    The Problem is in line 23
    all code:
    Code (Text):
    1. on rightclick:
    2.     if event-block is ender portal frame:
    3.         set {_times} to 1
    4.         set {_contains} to 0
    5.         loop 8 times:
    6.             if {frame::loc::%{_times}%} is location of event-block:
    7.                 set {_contains} to 1
    8.             set {_times} to {_times} + 1
    9.         if {_contains} is 1:
    10.             if name of event-player's tool is "&5Summoning Eye":
    11.                 if {placed::amount} is not set:
    12.                     set {placed::amount} to 0
    13.                 if {placed::amount} < 8:
    14.                     set {_times} to 1
    15.                     set {_contains} to 0
    16.                     loop 8 times:
    17.                         if {placed::loc::%{_times}%} is location of event-block:
    18.                             set {_contains} to 1
    19.                         set {_times} to {_times} + 1
    20.                     if {_contains} is 1:
    21.                         send "&cThere is already eye placed here" to event-player
    22.                     else:
    23.                         #set block at location of event-block to end portal frame [eye=true]
    24.                         set {placed::amount} to {placed::amount} + 1
    25.                         set {placed::loc::%{placed::amount}%} to location of event-block
    26.                         set {placed::%event-player%::%{placed::amount}%} to location of event-block
    27.                         set {placed::%event-player%::amount} to {placed::%event-player%::amount} + 1
    28.                         send "%event-player% &5Placed Summoning Eye &8(&e%{placed::amount}%&b/&e8&8)" to all players in world "EndermanPlace"
    29.                         remove head named "&5Summoning Eye" from event-player's inventory
    30.                 else:
    31.                     send "&cAready spawned dragon!" to event-player
    32.             else:
    33.                 cancel event
    34.         else:
    35.             if {frame::setting} > 0:
    36.                 set {frame::loc::%{frame::setting}%} to location of event-block
    37.                 send "&aFrame location [%{frame::setting}%] set to %{frame::loc::%{frame::setting}%}% (%event-block%)!" to event-player
    38.                 set {frame::setting} to 0
     
  4. Bit

    Bit Member

    Joined:
    Jan 26, 2021
    Messages:
    27
    Likes Received:
    0
    Skript Info should output the Server, Skript and Addon versions, if this is not available to you, please provide them by hand.
     
  5. ViperX

    ViperX Member

    Joined:
    Jul 26, 2022
    Messages:
    26
    Likes Received:
    0
    ok so I have skript, mundoSK, SharpSK, SKaction, skbee, skdragon, skellet, skquery, skrayfall, skript gui, skunity, tuske, wildskript
     
  6. Bit

    Bit Member

    Joined:
    Jan 26, 2021
    Messages:
    27
    Likes Received:
    0
    What's the Skript Version? Is this Paper, Spigot? What's the Server Version?
     
  7. ViperX

    ViperX Member

    Joined:
    Jul 26, 2022
    Messages:
    26
    Likes Received:
    0
    Spigot 1.8.8
    --- Double Post Merged, Jul 28, 2022, Original Post Date: Jul 26, 2022 ---
    Solved:
    Code (Text):
    1. set event-block's data to 4
     
Thread Status:
Not open for further replies.

Share This Page

Loading...