Denizen/Commands: Difference between revisions
From Citizens Wiki
< Denizen
Davidcernat (talk | contribs) No edit summary |
Davidcernat (talk | contribs) No edit summary |
||
Line 103: | Line 103: | ||
{{Denizen Command | {{Denizen Command | ||
|shoot|( | |shoot|[entity:name] (ride) (burn) (explode) (location:x,y,z,world) ("script:name") | ||
|Makes | |Makes the NPC shoot out an entity. All valid entity names can be found [http://jd.bukkit.org/rb/apidocs/org/bukkit/entity/EntityType.html here]. | ||
'''Examples''' | '''Examples''' | ||
Line 116: | Line 115: | ||
{{Denizen Command | {{Denizen Command | ||
|strike| | |strike|(no_damage) [location:x,y,z,world] | ||
|Makes lightning strike a location, optionally without causing any damage. | |Makes lightning strike a location, optionally without causing any damage. | ||
Revision as of 18:03, 9 February 2013
announce | ["announcement text"] |
---|---|
Displays a message that every player on the server can read.
- announce "The skeleton invasion has ended." - announce "<player.name> has joined the blue team!" |
assignment | [{set}|remove] ("script:name") |
---|---|
Set or remove an assignment for an NPC.
- assignment set "script:Evil Wizard" - assignment remove |
attack | (stop) |
---|---|
Make the NPC attack or stop attacking the player.
- attack - attack stop |
chair | (sit|stand) (location:x,y,z,world) |
---|---|
Make the NPC sit or stand at a location.
- sit "location:300,65,300,world" - sit "<anchor:Chair>" - stand |
follow | (stop) |
---|---|
Make the NPC follow or stop following the player.
- follow - follow stop |
random | [#] |
---|---|
Run a single one out of a number of commands, chosen at random.
- random 3 - chat "One." - chat "Two." - chat "Three." In the above example, only one of the three chat commands will be run. - random 2 - chat "One." - chat "Two." - chat "Three." In this example, either "One" or "Two" will be displayed, but "Three" will always be displayed. - random 3 - attack - chat "Get out of here!" - runtask "script:Call Reinforcements" Here, the NPC will either attack the player, tell the player to leave, or run a script in which it calls for reinforcements. |
shoot | [entity:name] (ride) (burn) (explode) (location:x,y,z,world) ("script:name") |
---|---|
Makes the NPC shoot out an entity. All valid entity names can be found here.
Examples - strike "location:200,73,200,world" - strike no_damage "<anchor:Mountaintop>" |
strike | (no_damage) [location:x,y,z,world] |
---|---|
Makes lightning strike a location, optionally without causing any damage.
- strike "location:200,73,200,world" - strike no_damage "<anchor:Mountaintop>" |