-
Notifications
You must be signed in to change notification settings - Fork 27
Nano Swarm
grandmind edited this page Apr 26, 2015
·
17 revisions
A Nano Swarm is a throwable entity that will infect the first mob it touches. After infecting the mob, a player can control what the infected mob does by communicating with the nano swarm through an antenna. Before a nano swarm can be thrown, it first must be linked to an antenna. To do this, simply right click on an antenna with the swarm in your hand.
Many attribues of the infected entity can be accessed through the nano swarm. ##Attributes Attributes accessable for both mobs and players.
Function | Returns | Description |
---|---|---|
isPlayer() | boolean isPlayer | Returns whether or not the entity is a player. |
getHealth() | number health | Returns the entity's current health. |
getMaxHealth() | number maxHealth | Returns the entity's maximum health. |
isDead() | boolean isDead | Returns whether or not the entity is dead. |
getRemainingBots() | number remainingBots | Returns the number of nanobots left in the entity. |
getDisplayName() | string name | Returns the entity's display name. |
##Player-Only Attributes Attribues that only accessable for players.
Function | Returns | Description |
---|---|---|
getPlayerName() | string name | Returns the player's name. |
getUUID() | string UUID | Returns the player's UUID. |
getHunger() | number foodLevel | Returns the player's current food level (hunger). |
click(number button) | nil | Simulates a left click for the player. |
clickRelease(number button) | nil | Simulates the releasing of the left mouse button for the player. |
keyPress(string key) | nil | Simulates a key press for the player. |
keyRelease(string key) | nil | Simulates the releasing of the passed key for the player. |
mouseMove(number x number y) | nil | Moves the player's mouse to the passed coordinates. |
whisper()string message string senderName | nil | Whispers the passed message to the player. It will appear to come from the passed sender name. |