Sunday, April 17, 2011

Current scripting commands in r563

Script Commands

chat
 print(String msg, Object ...args)

player (actually all commands available for all entities when I add methods to get them)
 ScriptVec3 getPosition()
 setPosition(double x, double y, double z)
 ScriptVecRot getRotation()
 setRotation(float yaw, float pitch)
 ScriptVec3 getVelocity()
 setVelocity(double x, double y, double z)
 addVelocity(double x, double y, double z)
 setDead()
 mountEntity(ScriptEntity e)
 isBurning()
 isAlive()
 isRiding()
 isSneaking()

time
 get()
 set(long time)
 getRate()
 setRate()
 getTickCount()

world
 getBlockId(x, y, z)
 setBlockId(x, y, z, id)
 getMetadata(x, y, z)
 setMetadata(x, y, z, metadata)
 setBlockIdAndMetadata(x, y, z, id, metadata)

No comments:

Post a Comment