set world of location does nothing
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
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"
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
I can reproduce.
- Skript 2.5
- Paper 1.16.2 (git-Paper-182)
very annoying bug, still on 2.5.1
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] worldyou 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
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] worldyou 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?
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?