#The Skript commands don't work

38 messages · Page 1 of 1 (latest)

pastel patio
#

Yo, so i'm trying to use the skript effect to spawn a vehicle, and my code looks like this:

command /test: trigger: spawn mtv vehicle Sportief White at location 399, 154, 318

according to the wiki, this is the format i should use to make the white Sportief spawn at the given location when executing the command /test. I tried the same thing with "", but that didnt help. When executing the command ingame, it says 'An internal error occurred while attempting to perform this command.'. In the console, it gives me a really long error (the .txt i sent with this) how would i be able to fix this?

mystic remnant
pastel patio
#

So just
spawn mtv vehicle at location 399. 154, 318?

mystic remnant
#

I mean the car name

#

@void sundial can you help with this

void sundial
#
spawn mtv vehicle {_car} at location %your location%```
#

currently, you have to create a vehicle first (manually) before it can be used by skript

#

also, the "unparsedLiterals" exception has already been fixed but I dont think its been released yet

pastel patio
#

and my problem is that it doesnt work like shown on the wiki and just outputs an error

void sundial
#

can you compile the code from github?

#

or i may compile it for you and send you the fixed JAR

pastel patio
#

idk how that works sorry

#

ima try

void sundial
pastel patio
#

okay thanks

void sundial
#

Please note that it is a dev-compiled version - auto-updater is disabled, so you will have to update manually for the next update

pastel patio
#

thank you so much man

void sundial
#

also, you have to restart the server, if im not mistaken, skript addons cant just be reloaded

#

not sure tho

pastel patio
#

alright i restarted

#

it still sends the same error, i mightve made an error skripting it

#

im kind of unsure what the {car_} means

#

right now i just got the vehicle name in there, but it doesnt seem to work

void sundial
#

no, you cant use the vehicle name

#

let me explain how to do it

#

as I've said, it's currently not available to create a vehicle via Skript, so:

  1. you need to create a vehicle manually using /vehicle givecar <itsUUID> or choosing one from /vehicle menu (UUIDs can be found in the vehicles.yml file)
  2. get the vehicle's license plate - you can find it in the lore or via /vehicle info
  3. skript:
set {_vehicle} to a new mtv vehicle with license place "YOUR-LICENSE-PLATE"
set {_loc} to location at x, y, z in world "world"
spawn mtv vehicle {_vehicle} at location {_loc}```
> note that {_vehicle} and {_loc} are temporary variables
pastel patio
#

it can't understand the expression

#

sorry, im really bad at skript, just started

void sundial
#

place -> plate, sorry

pastel patio
#

haha okay

#

YOO IT WORKS

#

thanks so much bro