AgentGamerPro Posted October 24, 2020 Share Posted October 24, 2020 (edited) i'm making a gamemode where the world border moves with the pig. Yeah, that's it. Here is the skript: function spawnmob(loc: location, entity: entity type): spawn {_entity} at {_loc} on death: if victim is pig: if victim's name is "World Border": cancel event command /pig: trigger: spawnmob(location of player, pig) set name of last spawned entity to "World Border" set {_entity} to last spawned entity every 0.1 seconds in world "world": set {_x} to x-position of {_entity} set {_z} to z-position of {_entity} make console execute command "worldborder center {_x} {_z}" I don't get any errors at all, but the border does not move at all. I know this because i set the border to 50 or smth Edited October 25, 2020 by Agentgamer100YT Lifestealed | Minecraft Servers OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - Present Link to comment Share on other sites More sharing options...
MagicMan49 Posted October 25, 2020 Share Posted October 25, 2020 I think I know why it is not working. You forgot to put percent signs around the variables in the command. Here is what it should look like: make console execute command "worldborder center %{x}% %{z}%" Link to comment Share on other sites More sharing options...
AgentGamerPro Posted October 25, 2020 Author Share Posted October 25, 2020 1 hour ago, MagicMan49 said: I think I know why it is not working. You forgot to put percent signs around the variables in the command. Here is what it should look like: make console execute command "worldborder center %{x}% %{z}%" I've tried this already, but it still dosen't work. Lifestealed | Minecraft Servers OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - Present Link to comment Share on other sites More sharing options...
RedstoneGamer54 Posted October 25, 2020 Share Posted October 25, 2020 skquery has border syntaxes if you are interested Link to comment Share on other sites More sharing options...
quick007 Posted October 25, 2020 Share Posted October 25, 2020 worldborder center {%_x}% %{_z}% You could also try and change {_entity} to {entity} and store all the vars Link to comment Share on other sites More sharing options...
AgentGamerPro Posted October 25, 2020 Author Share Posted October 25, 2020 @RedstoneGamer54 can you please explain? i do have skQuery. Also @quick007 i did what u said and it didn't work Lifestealed | Minecraft Servers OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - Present Link to comment Share on other sites More sharing options...
MagicMan49 Posted October 25, 2020 Share Posted October 25, 2020 It is not working because the variables have different names, you need to keep your names consistent. Try this: every 0.1 seconds in world "world": set {_x} to x-position of {_entity} set {_z} to z-position of {_entity} make console execute command "worldborder center {_x} {_z}" Link to comment Share on other sites More sharing options...
100_ Posted April 4, 2021 Share Posted April 4, 2021 your entity variable is a local variable meaning it cannot be used in different events, hence it not working Link to comment Share on other sites More sharing options...
Fiskmannen33 Posted November 19, 2021 Share Posted November 19, 2021 Lock this thread. Link to comment Share on other sites More sharing options...
AgentGamerPro Posted November 20, 2021 Author Share Posted November 20, 2021 On 11/19/2021 at 7:35 AM, Fiskmannen33 said: Lock this thread. ... you necroposted to say "lock this thread" 3 Lifestealed | Minecraft Servers OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - Present Link to comment Share on other sites More sharing options...
ram3n_nabi Posted November 21, 2021 Share Posted November 21, 2021 Hi Fiskmannen33! I will now be locking this post since there aren't much discussions going on in this thread anymore. Next time you find a post under the wrong category or someone purposely necroposting, you may report the post/reply instead.Post locked. Thanks! On 11/19/2021 at 11:35 PM, Fiskmannen33 said: Lock this thread. Link to comment Share on other sites More sharing options...
Recommended Posts