r/MinecraftCommands • Command Experienced • Aug 21 '21

Tutorial | Java A Zipline in Java Edition.

878 Upvotes

16 comments sorted by

21

u/OnixST Command Experienced Aug 21 '21 edited Aug 22 '21

As you can probably tell, this was inspired by u/Electrical-Sun-9353's creation, I made it because there where a lot of people asking if it could be done in Java

Here are the commands for you to copy, starting from the repeating command block and going to the end of the chain:

execute as @a[tag=!zipline] at @s if block ~ ~1.8 ~ minecraft:nether_brick_fence run tag @s add zipline

(Don't forget this one is conditional \/ )

execute at @a[tag=zipline] align xyz run summon minecraft:armor_stand ~0.5 ~ ~ {Marker:1b,Tags:["zipline1"],Invisible:1b}

(Don't forget this one is conditional /\ )

effect give @a[tag=zipline] minecraft:levitation 1 255 true

execute at @e[tag=zipline1] run tp @p ~ ~ ~

execute as @e[tag=zipline1] at @s if block ~ ~2 ~1 minecraft:nether_brick_fence run tp @s ~ ~ ~0.3

execute as @e[tag=zipline1] at @s unless block ~ ~2 ~1 minecraft:nether_brick_fence run effect clear @p

execute as @e[tag=zipline1] at @s unless block ~ ~2 ~1 minecraft:nether_brick_fence run tag @p remove zipline

execute as @e[tag=zipline1] at @s unless block ~ ~2 ~1 minecraft:nether_brick_fence run kill @s

2

u/Electrical-Sun-9353 Addon Creator + Commanderer Aug 22 '21

I found this really cool, and hopefully you don't mind me linking this in my zipline when someone asks how to do it for Java.

1

u/OnixST Command Experienced Aug 22 '21

Thanks!

And yes, you can link to this post :)

1

u/RedditIsKindaNice Command Rookie Aug 23 '21

This is amazing!

Maybe you could do it multi directional by the direction the player is facing?

But otherwise so cool...

2

u/OnixST Command Experienced Aug 23 '21

Great idea! I completely forgot I could do that, and wouldn't even be that much more complicated. I wonder if I should do another post

0

u/[deleted] Aug 22 '21

[deleted] — view deleted comment

10

u/OnixST Command Experienced Aug 22 '21

Yes, I made it in 1.17.1, but I think it works in any version from 1.13 and above

5

u/DandomRude1 Aug 22 '21

This is pretty awesome! I have a perfect use for something like this.

4

u/2Oku Aug 22 '21

You guys are all so good

1

u/Mr-sabertheslime Absolute noob at commands and will never change :/ Aug 22 '21

I may give you the best award I can bestow. GOOGLE BOOKMARK

2

u/OnixST Command Experienced Aug 22 '21

Thanks!

The most precious award

1

u/Mr-sabertheslime Absolute noob at commands and will never change :/ Aug 22 '21

You're welcome.

1

u/H20mellonMaster Aug 22 '21

When I go on the zipline i just get stuck i think there is somthing wrong with the teleportation can you help me lol

1

u/OnixST Command Experienced Aug 23 '21

Hi!

In which direction did you put the zipline? I forgot to mention that those can only go in one direction and you have to specifically code the direction you want it to go. The commands are coded for the positive z direction but I can change it if you want

1

u/H20mellonMaster Aug 23 '21

I have it on the default but I think im going the right way

1

u/OnixST Command Experienced Aug 23 '21

I just checked everything and it seems to be working fine, try copying the commands again from my comment, or checking if every command block is always active

1

u/H20mellonMaster Aug 23 '21

dont know what was wrong but thank you this is awesome