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.

Enderpearl fence gates

Discussion in 'Skript' started by Naza, Apr 22, 2019.

Tags:
Thread Status:
Not open for further replies.
  1. Naza

    Naza Member

    Joined:
    Apr 22, 2019
    Messages:
    23
    Likes Received:
    0
    I just want it so that i can pearl through fence gates on my hcf server... but idk how to use skrips, can someone help me?
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Can you specify what you need?
     
  3. Naza

    Naza Member

    Joined:
    Apr 22, 2019
    Messages:
    23
    Likes Received:
    0
    I need that when the doors are open, the pearls can go through the doors closely
     
  4. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Doors of hell or normal doors?
     
  5. Naza

    Naza Member

    Joined:
    Apr 22, 2019
    Messages:
    23
    Likes Received:
    0
    normals doors, bro
    i mean fence doors
     
  6. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Code (Skript):
    1.  
    2.  if target block of player is door:
    3.         set {_door} to "%target block of player%"
    4.         if {_door} contains "open":
    5.                 #the code#
    6.     else:
    7.         #the code#
    8.  
     
  7. Naza

    Naza Member

    Joined:
    Apr 22, 2019
    Messages:
    23
    Likes Received:
    0
    Will that work with the fence doors?
     
  8. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    It seems to me that when placing "door" it takes all the doors of the minecraft id.
     
  9. Naza

    Naza Member

    Joined:
    Apr 22, 2019
    Messages:
    23
    Likes Received:
    0
    the player can go through the fence doors with the pearl, right?
     
  10. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    I don't tested that.
     
  11. Naza

    Naza Member

    Joined:
    Apr 22, 2019
    Messages:
    23
    Likes Received:
    0
    It works, but, I'm stuck in the fence door
     
  12. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Can you show me the code of your script?
     
  13. Naza

    Naza Member

    Joined:
    Apr 22, 2019
    Messages:
    23
    Likes Received:
    0
    on projectile hit:
    projectile is an ender pearl
    if event-block is a fence gate:
    shoot event-projectile 1 meter in front event-block
    set velocity of last shot projectile to velocity of event-projectile # Needs RandomSK or the latest version of Skript (bensku's fork)
    delete event-projectile

    if target block of player is door:
    set {_door} to "%target block of player%"
    if {_door} contains "open":
    #the code#
    else:
    #the code#
     
  14. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Bro... this:
    Code (Skript):
    1.  
    2. if target block of player is door:
    3.  
    isn't a event.
    --- Double Post Merged, Apr 22, 2019, Original Post Date: Apr 22, 2019 ---
    You have to put it inside an event.
     
  15. Naza

    Naza Member

    Joined:
    Apr 22, 2019
    Messages:
    23
    Likes Received:
    0
    Could you tell me how the code should go? im noob xd
     
  16. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Ah ... I just understood what I wanted (I'm sorry for that, I speak Spanish). One thing is that skript allows that, and another is that minecraft allows to throw pearls through the doors of the doors.
    I conclude, I do not know if it's possible, I've been searching the forum and I have not found anything useful.
     
  17. Naza

    Naza Member

    Joined:
    Apr 22, 2019
    Messages:
    23
    Likes Received:
    0
  18. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    The thing is that here is almost an obligation to speak in English, but given the case ...

    Bien... creo que lo que dice Snow-Pyon es correcto, intentaste hacer eso?

    Pero ten en cuenta que ese jugador pidió para la versión 1.7.10, y yo programo skript para la versión Spigot 1.8.8, así que no sé si será de utilidad esa publicación.
     
  19. Naza

    Naza Member

    Joined:
    Apr 22, 2019
    Messages:
    23
    Likes Received:
    0
    Lo hice, pero no parece funcionar.
    Tan solo necesito que las perlas entren por las puertas de valla y que telestransporten al jugador a donde calló la perla.

    me han recomendado que cuando la perla toque la valla abierta se cree una nueva, sabes como podria realizarlo?
     
  20. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Que addons tienes en tu servidor?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...