#(j3t59) Inappropriate usage of the 'execute' command
61 messages · Page 1 of 1 (latest)
(j3t59) Inappropriate usage of the 'execute' command
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.
!c spawn
entity
spawn [<entity>|...] (<location>) (target:<entity>) (persistent) (reason:<reason>)
Spawns a list of entities at a certain location.
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...
Citizens
npc
create [<entity>] [<name>] (<location>) (traits:<trait>|...) (registry:<name>)
Creates a new NPC, and optionally spawns it at a location.
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.
This is because there are usually denizen commands or mechanisms for slash commands.
do i have to live with the ugly squiggle? or is there a way i can refactor?
Squiggle?
the IDE is underlining the execute lines im making and its distracting me
Use the create command, what is the problem? Can you show it?
when i try - create Turtle --type TURTLE --trait controllable --at <player.location.add[3,0,0].formatted.citizens> it says too many arguments
Please read the meta for create
You're putting in -- arguments which are not apart of the arguments for create.
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
Space between traits: is unnecessary.
denizen also doesn't want locations in citizens format lol
still dosent work
it wants it in denizen format
i dont think i understand the difference, where in docs?
<player.location.add[3,0,0].formatted.citizens>
What is this tag doing?
its the player location tag for spawning then adding 3 so its not spawning on top of the player
i honestly dont know and i feel like i committed a sin for playing around with other peoples scripts and thought it was important
@astral frigate <player.location>
my friend shared their ridable Bull Mount that flung entities when you run into them
Tag parse results for <player.location>: https://paste.denizenscript.com/View/126423
l@142.41711568554612,70,239.77639493281197,26.400015,173.992081,world
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>
Tag parse results for <player.location.formatted>: https://paste.denizenscript.com/View/126424
X '142.41711568554612', Y '70.0', Z '239.77639493281197', in world 'world'
Now we have this
that's just text
it means nothing to the code, just slightly more readable
@astral frigate <player.location.formatted.citizens>
Tag parse results for <player.location.formatted.citizens>: https://paste.denizenscript.com/View/126425
142.41711568554612:70.0:239.77639493281197:world
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
omg i get it now
as soon as you use .formatted, you make it completely unreadable to the code
ill refactor and try again
it works now
now i just gotta figure out how to give the mount creative mode flight while riding
Isn't there a flyable command for citizens?
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
Unfortunately I am unfamiliar with the flyable command to understand it myself.
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
Feel free to ask if you need any more help, otherwise -
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