Modding:Modding/Lua
From Starbounder - Starbound Wiki
Raw dump of some of Starbound Lua APIs (v. Indignant Koala):
entity:
anchorPoint animationState animationStateProperty baseHealth burstParticleEmitter closestItemDrop closestValidTarget configParameter currentRotationAngle currentScale distanceToEntity dt entityInSight facingDirection familyIndex fly flySpeed flyTo heal health holdJump id isFiring isValidTarget jump level moveDown moveLeft moveRight onGround playImmediateSound playSound position projectileConfigParameter randomizeParameter randomizeParameterRange randomizeSkillParameter randomizeSkillParameterRange readyToFire rotateGroup scaleGroup seed setActiveSkillName setAggressive setAnimationState setDamageOnTouch setDeathParticleBurst setDeathSound setEffectActive setFacingDirection setFireDirection setFlipped setGlobalTag setGravityEnabled setParticleEmitterActive setPartTag setRunning setVelocity skillConfigParameter startFiring stateNudge staticRandomizeParameter staticRandomizeSkillParameter stopFiring stunned toAbsolutePosition type uniqueParameters velocity
monster (subset of entity)
anchorPoint animationState animationStateProperty baseHealth burstParticleEmitter closestItemDrop closestValidTarget configParameter currentRotationAngle currentScale damageTeam distanceToEntity dt entityInSight facingDirection familyIndex fly flySpeed flyTo heal health holdJump id isFiring isValidTarget jump level moveDown moveLeft moveRight onGround playImmediateSound playSound position projectileConfigParameter randomizeParameter randomizeParameterRange randomizeSkillParameter randomizeSkillParameterRange readyToFire rotateGroup scaleGroup seed setActiveSkillName setAggressive setAnimationState setDamageOnTouch setDeathParticleBurst setDeathSound setEffectActive setFacingDirection setFireDirection setFlipped setGlobalTag setGravityEnabled setParticleEmitterActive setPartTag setRunning setVelocity skillConfigParameter startFiring stateNudge staticRandomizeParameter staticRandomizeSkillParameter stopFiring stunned toAbsolutePosition type uniqueParameters velocity
object:
anchorPoint: function, animationState: function, animationStateProperty: function, boundBox: function, break: function, burstParticleEmitter: function, closestItemDrop: function, closestValidTarget: function, configParameter: function, currentRotationAngle: function, currentScale: function, direction: function, distanceToEntity: function, dt: function: returns delta time since last frame entityInSight: function, getInboundNodeLevel: function, id: function, inboundNodeCount: function, isInboundNodeConnected: function, isValidTarget: function, level: function, outboundNodeCount: function, playImmediateSound: function, playSound: function, position: function, randomizeParameter: function, randomizeParameterRange: function, rotateGroup: function, scaleGroup: function, setAllOutboundNodes: function, setAnimationState: function, setColliding: function, setEffectActive: function, setFlipped: function, setGlobalTag: function, setInteractive: function, setOutboundNodeLevel: function, setPartTag: function, setParticleEmitterActive: function, smash: function, stateNudge: function, toAbsolutePosition: function
tech (56 entries):
anchorPoint animationState animationStateProperty applyMovementModifiers applyMovementParameters burstParticleEmitter canJump collisionBounds control crouching currentRotationAngle currentScale direction falling flying inLiquid jump jumping measuredVelocity moveDown moveLeft moveRight onGround parameter parentEntityId playImmediateSound position positionDelta rotateGroup running scaleGroup setAnimationState setCrouching setEffectActive setFlipped setGlobalTag setParentAppearance setParentFacingDirection setParentOffset setPartTag setParticleEmitterActive setPosition setRunning setSkidding setStunned setToolUsageSuppressed setVelocity setVisible setXVelocity setYVelocity stateNudge translate velocity walking xControl yControl
world:
breathable callScriptedEntity collisionBlocksAlongLine day debugLine debugPoint debugText distance entityExists entityHandItem entityHealth entityLineQuery entityName entityPosition entityQuery entitySpecies entityType entityUuid isMonster isNpc isVisibleToPlayer itemType lightLevel lineCollision liquidAt logInfo loungableOccupied loungableQuery magnitude material mod monsterQuery npcLineQuery npcQuery objectLineQuery objectQuery placeObject playerQuery pointCollision rectCollision spawnItem spawnMonster spawnNpc spawnProjectile temperature time timeOfDay underground windLevel
Other, misc, unknown, contextual:
_ENV: { _VERSION: "Lua 5.2", assert: function, error: function, getmetatable: function, initializeObject: function, ipairs: function, main: function, next: function, onInteraction: function, pairs: function, pcall: function, print: function, rawequal: function, rawget: function, rawlen: function, rawset: function, select: function, setmetatable: function, storage: {}, tonumber: function, tostring: function, type: function, xpcall: function, table: { concat: function, insert: function, key_to_str: function, pack: function, remove: function, sort: function tostring: function, unpack: function, val_to_str: function, }, string: { byte: function, char: function, dump: function find: function, format: function, gmatch: function, gsub: function, len: function, lower: function, match: function, rep: function, reverse: function, sub: function, upper: function, }, coroutine: { create: function, resume: function, running: function, status: function, wrap: function, yield: function }, bit32: { arshift: function, band: function, bnot: function bor: function, btest: function, bxor: function, extract: function, lrotate: function, lshift: function, replace: function, rrotate: function, rshift: function, }, math: { abs: function, acos: function, asin: function, atan2: function, atan: function ceil: function, cos: function, cosh: function, deg: function, exp: function, floor: function, fmod: function, frexp: function, huge: 1.#INF, ldexp: function, log: function, max: function, min: function, modf: function, pi: 3.1415926535898, pow: function, rad: function, random: function, randomseed: function, sin: function, sinh: function, sqrt: function, tan: function, tanh: function, }, self: { initialized: true }, os: { time: function, clock: function, difftime: function } }