Jump to content

"execute as %player%"


WaysVFX

Recommended Posts

Hi all, i wants to make aspect of the end with skript and minecraft commands, i trying do:

on rightclick with diamond sword:
  execute command "/execute as %player% at %player% run tp %player% ^ ^1 ^4"

But it script isn't works, diamond sword switches me between worlds
  

Link to comment
Share on other sites

7 minutes ago, WaysVFX said:

Hi all, i wants to make aspect of the end with skript and minecraft commands, i trying do:

on rightclick with diamond sword:
  execute command "/execute as %player% at %player% run tp %player% ^ ^1 ^4"

But it script isn't works, diamond sword switches me between worlds
  

on rightclick with diamond sword:

    push player forward at speed 5

 

 

image.png

image.png

 

 

Link to comment
Share on other sites

On 1/9/2021 at 11:38 AM, quick007 said:

on rightclick with diamond sword:

    push player forward at speed 5

Aspect of the End teleports you, this just kinda shoves you in one direction.

Better just to use:

on right click holding diamond sword:
	teleport player to block 4 meters in player's direction

 

  • Like 1

VIP since January 7th, 2020

Support since September 19th, 2020

Helper since November 3rd, 2020

Moderator since March 8th, 2021

unknown.png

5.png.e14b1bf83edf0ac2edc1bfb822177184.png

image.png.fe30b7b2c0be5a541ba4ed2187b23030.png

Link to comment
Share on other sites

  • 1 month later...

This should work

on right click holding diamond sword:
	set {_loc} to location 4 meters infront of player
	loop blocks from the block at the player to block at {_loc}:
		if loop-block is solid:
			stop
	teleport player to {_loc}

 

Discord: Juffix#4773

Minecraft UsernameJuffix

Link to comment
Share on other sites

Locked - Necroposting

Please avoid posting on threads that have been inactive for over a month. Instead, create a new thread if you have a question.

Support  July 29, 2020 → November 3, 2020

► Helper November 3, 2020 → February 22, 2021

► Moderator February 22, 2021 → May 17, 2021

 I might not always respond to forum dms, however I am always contactable on discord (mig#0069)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to comment
Share on other sites

  • Migins locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...