#(j3t59) Inappropriate usage of the 'execute' command

61 messages · Page 1 of 1 (latest)

proven reef
#

my IDE is saying this is an inappropriate use of the execute command and idk why
the syntax is right according to the Meta Docs
- execute as_op "npc create Turtle --type TURTLE --trait controllable"

wise bladeBOT
#

(j3t59) Inappropriate usage of the 'execute' command

wise bladeBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

near zinc
#

!c spawn

fervent hillBOT
# near zinc !c spawn
Group

entity

Syntax

spawn [<entity>|...] (<location>) (target:<entity>) (persistent) (reason:<reason>)

Short Description

Spawns a list of entities at a certain location.

Description

Spawn an entity or list of entities at the specified location.

Accepts the 'target:<entity>' argument which will cause all spawned entities to follow and attack the targeted entity.

If the persistent argument is present, the entity will not despawn when no players are within range, causing the entity to remain until killed.

Optionally specify 'reason:<reason>' (Paper only) to specify the reason an entity is spawning for the 'entity spawns' event,
using any reason from <@link url https://hub.s...

near zinc
#

Er

#

!c create

fervent hillBOT
# near zinc !c create
Required Plugins or Platforms

Citizens

Group

npc

Syntax

create [<entity>] [<name>] (<location>) (traits:<trait>|...) (registry:<name>)

Short Description

Creates a new NPC, and optionally spawns it at a location.

Description

Creates an npc which the entity type specified, or specify an existing npc to create a copy.
If no location is specified the npc is created despawned.
Use the 'save:<savename>' argument to return the npc for later use in a script.

Optionally specify a list of traits to immediately apply when creating the NPC.

Optionally specify a custom registry to create the NPC into. (Most users, leave this option off).
Will generate a new registry if needed.

near zinc
proven reef
#

do i have to live with the ugly squiggle? or is there a way i can refactor?

near zinc
#

Squiggle?

proven reef
#

the IDE is underlining the execute lines im making and its distracting me

near zinc
#

Use the create command, what is the problem? Can you show it?

proven reef
#

when i try - create Turtle --type TURTLE --trait controllable --at <player.location.add[3,0,0].formatted.citizens> it says too many arguments

near zinc
#

Please read the meta for create

#

You're putting in -- arguments which are not apart of the arguments for create.

proven reef
#

based on what i understand from the meta ```- create turtle Shelldon <player.location.add[3,0,0].formatted.citizens> traits: controllable

#

so im still doing somthing wrong

near zinc
#

Space between traits: is unnecessary.

rocky cobalt
#

denizen also doesn't want locations in citizens format lol

proven reef
#

still dosent work

rocky cobalt
#

it wants it in denizen format

proven reef
#

i dont think i understand the difference, where in docs?

rocky cobalt
#

<player.location.add[3,0,0].formatted.citizens>
What is this tag doing?

proven reef
#

its the player location tag for spawning then adding 3 so its not spawning on top of the player

rocky cobalt
#

okay, cool

#

that'll return the location

#

.formatted.citizens> what about this part

proven reef
#

i honestly dont know and i feel like i committed a sin for playing around with other peoples scripts and thought it was important

rocky cobalt
#

@astral frigate <player.location>

proven reef
#

my friend shared their ridable Bull Mount that flung entities when you run into them

astral frigateBOT
rocky cobalt
#

let's try it

#

^ that's a denizen location

#

it's where the player is on the server right now

#

@astral frigate <player.location.formatted>

astral frigateBOT
rocky cobalt
#

Now we have this

#

that's just text

#

it means nothing to the code, just slightly more readable

#

@astral frigate <player.location.formatted.citizens>

astral frigateBOT
rocky cobalt
#

Similar to the denizen location, but it's not the same

#

this is the format citizens commands use for coordinates

#

it, again, means nothing to denizen

proven reef
#

omg i get it now

rocky cobalt
#

as soon as you use .formatted, you make it completely unreadable to the code

proven reef
#

ill refactor and try again

#

it works now

#

now i just gotta figure out how to give the mount creative mode flight while riding

near zinc
#

Isn't there a flyable command for citizens?

proven reef
#

i tried flyable but it didnt hover fly in place it just went full speed in direction of cursor

#

idk if i was using it wrong

near zinc
#

Unfortunately I am unfamiliar with the flyable command to understand it myself.

proven reef
#

its np, i can open a different ticket if i cant figure somthing out in a few hours, the original problem was solved

#

also would be a citizens ticket and not denizen

main mulch
#

Feel free to ask if you need any more help, otherwise -

midnight oxideBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@proven reef