Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- %executer% = Player name, that executes script.
- %nearest% = Nearest player name.
- Types:
- location: encoded location.
- float: number
- integer: number
- float - number without decimal point.
- double: number with double precision.
- boolean: true/false value
- speed: walked blocks per tick, default 0.2, max. 1.0
- range: Range of NPC's pathfinder, default 30
- string: text
- Commands:
- Format:
- [command]/[arg1]/[arg2]/[arg3] etc...
- Spawn NPC:
- Command: spawnnpc
- Args: [name of the NPC], [spawn location of NPC]
- Example: spawnnpc/Notch/40.548,69.0,522.752,0.872,-2.445,world
- Enable/disable Invulnerability:
- Command: setInvulnerability
- Args: [boolean]
- Example: setInvulnerability/true
- Set Target of NPC:
- Command: setTarget
- Args: [name of the target player]
- Example: setTarget/ericek111
- Enable/disable collisions with entities:
- Command: setCollisions
- Args: [boolean]
- Example: setCollisions/true
- Enable/disable gravity for NPC:
- Command: setGravity
- Args: [boolean]
- Example: setGravity/true
- Set yaw (angle/azimuth) of NPC:
- Command: setYaw
- Args: [float]
- Example: setYaw/289.3567
- Run pathfinding (move NPC) to specified location:
- Command: pathfindTo
- Args: [location] OR [location]/[speed] OR [location]/[speed]/[range]
- Teleport NPC to location:
- Command: teleportToLoc
- Args: [location]
- Example: teleportToLoc/40.548,69.0,522.752,0.872,-2.445,world
- Teleport NPC to player:
- Command: teleportToPlayer
- Args: [name of the online player]
- Example: teleportToPlayer/ericek111
- Sleep:
- Command: sleep
- Args: [float] - number of ticks.
- Example: sleep/20 - sleep for 1 second (20 MC ticks is 1 real second).
- Send message as NPC:
- Command: chat
- Args: [string]
- Example/Hello! My name is John!
Advertisement
Add Comment
Please, Sign In to add comment