Skript icon indicating copy to clipboard operation
Skript copied to clipboard

set world of location does nothing

Open ghost opened this issue 6 years ago • 7 comments

Description

using: set {w} to location of player set world of {w} to "spawn" parsed as a world send "%world of {w}%"

sends the same world as {w} originally had, not new "spawn" one, but "spawn" world definitely exists

Server Information

  • Server version/platform: 1.12.2 Paper & 1.16.3 Paper
  • Skript version: 2.5.1

ghost avatar Dec 19 '19 14:12 ghost

The same issue occurs to me tested by set {w} to location of player send "%world of {w}%" # sends "world" set world of {w} to ("world_nether" parsed as world) send "%world of {w}%" # sends "world"

nopeless avatar Dec 22 '19 04:12 nopeless

got skript-mirror workaround fixed:

expression:
	patterns:
		[the] [custom] world [of %locations/entities%]
		%locations/entities%'[s] [custom] world
	return type: world
	get:
		return (expression 1).getWorld()
	set:
		expression 1.setWorld(change value)

may require to unregister Skript's world syntax to work, which is:

[the] world [of %locations/entities%], %locations/entities%'[s] world

you can unregister it using my skript-mirror code snippet that can be found here: https://pastebin.com/raw/xyhCSr2d

ghost avatar Jun 12 '20 12:06 ghost

I can reproduce.

  • Skript 2.5
  • Paper 1.16.2 (git-Paper-182)

Romitou avatar Oct 04 '20 20:10 Romitou

very annoying bug, still on 2.5.1

igorekudashev avatar Nov 11 '20 14:11 igorekudashev

got skript-mirror workaround fixed:

expression:
	patterns:
		[the] [custom] world [of %locations/entities%]
		%locations/entities%'[s] [custom] world
	return type: world
	get:
		return (expression 1).getWorld()
	set:
		expression 1.setWorld(change value)

may require to unregister Skript's world syntax to work, which is:

[the] world [of %locations/entities%], %locations/entities%'[s] world

you can unregister it using my skript-mirror code snippet that can be found here: https://pastebin.com/raw/xyhCSr2d

that's doesn't work, can you help please? Can't understand this loop: 'loop ...Skript.effects' Can't understand this expression: {_r}.patterns Can't understand this expression: amount of ...Skript.effects

igorekudashev avatar Nov 11 '20 14:11 igorekudashev

got skript-mirror workaround fixed:

expression:
	patterns:
		[the] [custom] world [of %locations/entities%]
		%locations/entities%'[s] [custom] world
	return type: world
	get:
		return (expression 1).getWorld()
	set:
		expression 1.setWorld(change value)

may require to unregister Skript's world syntax to work, which is:

[the] world [of %locations/entities%], %locations/entities%'[s] world

you can unregister it using my skript-mirror code snippet that can be found here: https://pastebin.com/raw/xyhCSr2d

that's doesn't work, can you help please? Can't understand this loop: 'loop ...Skript.effects' Can't understand this expression: {_r}.patterns Can't understand this expression: amount of ...Skript.effects

you need skript-reflect

okay, but if i disable the on load expression: "/ disable-expression [the] world [of% locations / entities%],% locations / entities% '[s] world" then it gives me "Can't understand this condition / effect: set world of% location%...", as can I use the new expression from the script mirror?

igorekudashev avatar Nov 12 '20 19:11 igorekudashev

this still seems to be an issue in 2.5.3.

Shouldn't this deserve more attention as its been broken for over a year, and it's pretty important?

BeepSterr avatar Dec 28 '20 22:12 BeepSterr