#(psychictho) help with scripting (not hard, im new)

1 messages · Page 1 of 1 (latest)

thorn canyon
#

if you wanted to use a custom command to spawn a chicken at a specific players location, how would you do that. ps. yes i know that this is possible with in game commands, im just messing around, and this could help me figure out some other problems :p

spark basaltBOT
#

(psychictho) help with scripting (not hard, im new)

spark basaltBOT
#

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.

foggy plinth
#

!lang commmand script container

sly bearBOT
#
Possible Confusion

Did you mean to search for command script containers?

sly bearBOT
# foggy plinth !lang commmand script container

Command script containers allow you to register your own custom commands to the server.
This also allows the command to show up in the '/help' command, with some info on the command.

Note that existing names or aliases from other plugins will be overridden.
If you want to run a script at the same time as an existing command, see !event on command.

The following is the format for the container.

The required keys are 'name:', 'description:', 'usage:', and 'script:'
All other keys can be excluded if unneeded.
If you are not intentionally setting a specific value for the other keys, it is
strongly recommended that you simply not include them at all.

Please note that 'name:' is the true name of the command (written by users),
and 'usage:' is for documentation in the '/help' command.
...

Group

Script Container System

foggy plinth
#

!lang spawn

sly bearBOT
#
Possible Confusion

Did you mean to search for tick?

foggy plinth
#

oop

#

!c spawn

sly bearBOT
# foggy plinth !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...

foggy plinth
#

!t entity.location

sly bearBOT
foggy plinth
#

also if you haven't already

#

!guide

sly bearBOT
foggy plinth
#

read thru that ^

thorn canyon
#

yeah i figured out how to use the spawn thing, i just dont know how to make it spawn on certain players depending on what you type in the command

#

so if i were to type /spawnchicken steve2947
then i would want that to spawn a chicken on that player

foggy plinth
#

!t sever.match_player

sly bearBOT
#
Possible Confusion

Did you mean to search for server.match_player?

sly bearBOT
foggy plinth
#
- define player <server.match_player[nickname]>
- spawn chicken <[player].location>```
For example ^
thorn canyon
#

would i put that at the underneath the script section of the command script?

thorn canyon
#

nvm il look at the guide