build a ladder

  • 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!

loadka95

Active Member
Feb 24, 2017
78
6
8
26
Suggested name: Ladder

What I want:
I want to create a ladder with 1 command then delete it with an other command.
A pillar on the middle and ladder on every side.

Something like this
Ideas for commands:
/ladder create - create the ladder
/ladder delete - delete the ladder
Ideas for permissions:
no permssion
When I'd like it by: 2 day
 
Suggested name: Ladder

What I want:
I want to create a ladder with 1 command then delete it with an other command.
A pillar on the middle and ladder on every side.

Something like this
Ideas for commands:
/ladder create - create the ladder
/ladder delete - delete the ladder
Ideas for permissions:
no permssion
When I'd like it by: 2 day
Have a starting point:
code_language.skript:
function createLadder(l: location, s: number, t: itemtype = stained clay):
  set block at location 1 behind {_l} to {_t}
  set block at {_l} to ladder
  if {_s} - 1 is not 0:
    createLadder(location 1 above {_l}, {_s}-1)
function deleteLadder(l: location):
  if block at {_l} is ladder:
    set block at {_l} to air
  if block at location 1 above {_l} is ladder:
    deleteLadder(location 1 above {_l})