#(psychictho) help with scripting (not hard, im new)
1 messages · Page 1 of 1 (latest)
(psychictho) help with scripting (not hard, im new)
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.
!lang commmand script container
Did you mean to search for command script containers?
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.
...
Script Container System
!lang 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...
!t entity.location
Returns the location of the entity.
For living entities, this is at the center of their feet.
For eye location, use !tag EntityTag.eye_location
Works with offline players.
location
LocationTag
View the Denizen Beginner's Guide at https://guide.denizenscript.com/
read thru that ^
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
!t sever.match_player
Did you mean to search for server.match_player?
Returns the online player that best matches the input name.
EG, in a group of 'bo', 'bob', and 'bobby'... input 'bob' returns player object for 'bob',
input 'bobb' returns player object for 'bobby', and input 'b' returns player object for 'bo'.
PlayerTag
- define player <server.match_player[nickname]>
- spawn chicken <[player].location>```
For example ^
would i put that at the underneath the script section of the command script?
nvm il look at the guide