Skip to content

Instantly share code, notes, and snippets.

@madmaxoft
Created May 22, 2016 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madmaxoft/3e2cc19487480ce3814d5f060f54e6fa to your computer and use it in GitHub Desktop.
Save madmaxoft/3e2cc19487480ce3814d5f060f54e6fa to your computer and use it in GitHub Desktop.
2016-05-22 LuaAPI docs for cWorld, auto-extracted by ToLua++
return
{
cWorld =
{
Desc = "",
Inherits =
{
"cBroadcastInterface",
"cForEachChunkProvider",
"cWorldInterface",
},
Functions =
{
AreCommandBlocksEnabled =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
BroadcastBlockAction =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "Byte",
Name = "a_Byte1",
},
{
Type = "Byte",
Name = "a_Byte2",
},
{
Type = "BLOCKTYPE",
Name = "a_BlockType",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
}
Desc = "",
},
},
BroadcastChat =
{
{
Params =
{
{
Type = "AString",
Name = "a_Message",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
{
Type = "eMessageType",
Name = "a_ChatPrefix",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
{
Params =
{
{
Type = "cCompositeChat",
Name = "a_Message",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
}
Desc = "",
},
},
BroadcastChatDeath =
{
{
Params =
{
{
Type = "AString",
Name = "a_Message",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
BroadcastChatFailure =
{
{
Params =
{
{
Type = "AString",
Name = "a_Message",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
BroadcastChatFatal =
{
{
Params =
{
{
Type = "AString",
Name = "a_Message",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
BroadcastChatInfo =
{
{
Params =
{
{
Type = "AString",
Name = "a_Message",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
BroadcastChatSuccess =
{
{
Params =
{
{
Type = "AString",
Name = "a_Message",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
BroadcastChatWarning =
{
{
Params =
{
{
Type = "AString",
Name = "a_Message",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
BroadcastEntityAnimation =
{
{
Params =
{
{
Type = "cEntity",
Name = "a_Entity",
},
{
Type = "char",
Name = "a_Animation",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
}
Desc = "",
},
},
BroadcastSoundEffect =
{
{
Params =
{
{
Type = "AString",
Name = "a_SoundName",
},
{
Type = "double",
Name = "a_X",
},
{
Type = "double",
Name = "a_Y",
},
{
Type = "double",
Name = "a_Z",
},
{
Type = "float",
Name = "a_Volume",
},
{
Type = "float",
Name = "a_Pitch",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
BroadcastSoundParticleEffect =
{
{
Params =
{
{
Type = "EffectID",
Name = "a_EffectID",
},
{
Type = "int",
Name = "a_SrcX",
},
{
Type = "int",
Name = "a_SrcY",
},
{
Type = "int",
Name = "a_SrcZ",
},
{
Type = "int",
Name = "a_Data",
},
{
Type = "cClientHandle",
Name = "a_Exclude",
},
},
Returns =
{
}
Desc = "",
},
},
CastThunderbolt =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
}
Desc = "Casts a thunderbolt at the specified coords",
},
},
ChangeWeather =
{
{
Params =
{
},
Returns =
{
}
Desc = "Forces a weather change in the next game tick",
},
},
CreateProjectile =
{
{
Params =
{
{
Type = "double",
Name = "a_PosX",
},
{
Type = "double",
Name = "a_PosY",
},
{
Type = "double",
Name = "a_PosZ",
},
{
Type = "cProjectileEntity::eKind",
Name = "a_Kind",
},
{
Type = "cEntity",
Name = "a_Creator",
},
{
Type = "cItem",
Name = "a_Item",
},
{
Type = "Vector3<double>",
Name = "a_Speed",
},
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
DigBlock =
{
{
Params =
{
{
Type = "int",
Name = "a_X",
},
{
Type = "int",
Name = "a_Y",
},
{
Type = "int",
Name = "a_Z",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
FastSetBlock =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "BLOCKTYPE",
Name = "a_BlockType",
},
{
Type = "char",
Name = "a_BlockMeta",
},
},
Returns =
{
}
Desc = "Sets the block at the specified coords to the specified value.\
\9The replacement doesn't trigger block updates.\
\9The replaced blocks aren't checked for block entities (block entity is leaked if it exists at this block)",
},
{
Params =
{
{
Type = "Vector3<int>",
Name = "a_Pos",
},
{
Type = "BLOCKTYPE",
Name = "a_BlockType",
},
{
Type = "char",
Name = "a_BlockMeta",
},
},
Returns =
{
}
Desc = "",
},
},
GenerateChunk =
{
{
Params =
{
{
Type = "int",
Name = "a_ChunkX",
},
{
Type = "int",
Name = "a_ChunkZ",
},
},
Returns =
{
}
Desc = "",
},
},
GetBiomeAt =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "EMCSBiome",
},
}
Desc = "Returns the biome at the specified coords. Reads the biome from the chunk, if loaded, otherwise uses the world generator to provide the biome value",
},
},
GetBlock =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "BLOCKTYPE",
},
}
Desc = "",
},
{
Params =
{
{
Type = "Vector3<int>",
Name = "a_Pos",
},
},
Returns =
{
{
Type = "BLOCKTYPE",
},
}
Desc = "",
},
},
GetBlockBlockLight =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "char",
},
}
Desc = "",
},
{
Params =
{
{
Type = "Vector3<int>",
Name = "a_Pos",
},
},
Returns =
{
{
Type = "char",
},
}
Desc = "",
},
},
GetBlockMeta =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "char",
},
}
Desc = "",
},
{
Params =
{
{
Type = "Vector3<int>",
Name = "a_Pos",
},
},
Returns =
{
{
Type = "char",
},
}
Desc = "",
},
},
GetBlockSkyLight =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "char",
},
}
Desc = "",
},
},
GetDefaultWeatherInterval =
{
{
Params =
{
{
Type = "eWeather",
Name = "a_Weather",
},
},
Returns =
{
{
Type = "int",
},
}
Desc = "Returns the default weather interval for the specific weather type.\
\9Returns -1 for any unknown weather.",
},
},
GetDimension =
{
{
Params =
{
},
Returns =
{
{
Type = "eDimension",
},
}
Desc = "",
},
},
GetGameMode =
{
{
Params =
{
},
Returns =
{
{
Type = "eGameMode",
},
}
Desc = "Returns the current game mode. Partly OBSOLETE, you should use IsGameModeXXX() functions wherever applicable",
},
},
GetGeneratorQueueLength =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
GetHeight =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "int",
},
}
Desc = "Returns the world height at the specified coords; waits for the chunk to get loaded / generated",
},
},
GetIniFileName =
{
{
Params =
{
},
Returns =
{
{
Type = "const AString",
},
}
Desc = "Returns the name of the world.ini file used by this world",
},
},
GetLightingQueueLength =
{
{
Params =
{
},
Returns =
{
{
Type = "size_t",
},
}
Desc = "",
},
},
GetLinkedEndWorldName =
{
{
Params =
{
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
GetLinkedNetherWorldName =
{
{
Params =
{
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
GetLinkedOverworldName =
{
{
Params =
{
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
GetMapManager =
{
{
Params =
{
},
Returns =
{
{
Type = "cMapManager",
},
}
Desc = "Returns the associated map manager instance.",
},
},
GetMaxCactusHeight =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
GetMaxNetherPortalHeight =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
GetMaxNetherPortalWidth =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
GetMaxSugarcaneHeight =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
GetMaxViewDistance =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
GetMinNetherPortalHeight =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "Returns or sets the minumim or maximum netherportal height",
},
},
GetMinNetherPortalWidth =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "Returns or sets the minumim or maximum netherportal width",
},
},
GetName =
{
{
Params =
{
},
Returns =
{
{
Type = "const AString",
},
}
Desc = "Returns the name of the world",
},
},
GetNumChunks =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
GetScoreBoard =
{
{
Params =
{
},
Returns =
{
{
Type = "cScoreboard",
},
}
Desc = "Returns the associated scoreboard instance.",
},
},
GetSeed =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "Returns the seed of the world.",
},
},
GetSpawnX =
{
{
Params =
{
},
Returns =
{
{
Type = "double",
},
}
Desc = "",
},
},
GetSpawnY =
{
{
Params =
{
},
Returns =
{
{
Type = "double",
},
}
Desc = "",
},
},
GetSpawnZ =
{
{
Params =
{
},
Returns =
{
{
Type = "double",
},
}
Desc = "",
},
},
GetStorageLoadQueueLength =
{
{
Params =
{
},
Returns =
{
{
Type = "size_t",
},
}
Desc = "",
},
},
GetStorageSaveQueueLength =
{
{
Params =
{
},
Returns =
{
{
Type = "size_t",
},
}
Desc = "",
},
},
GetTNTShrapnelLevel =
{
{
Params =
{
},
Returns =
{
{
Type = "eShrapnelLevel",
},
}
Desc = "",
},
},
GetTicksUntilWeatherChange =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
GetTimeOfDay =
{
{
Params =
{
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
GetWeather =
{
{
Params =
{
},
Returns =
{
{
Type = "eWeather",
},
}
Desc = "Returns the current weather. Instead of comparing values directly to the weather constants, use IsWeatherXXX() functions, if possible",
},
},
GetWorldAge =
{
{
Params =
{
},
Returns =
{
{
Type = "long",
},
}
Desc = "",
},
},
GrowCactus =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "int",
Name = "a_NumBlocksToGrow",
},
},
Returns =
{
}
Desc = "Grows a cactus present at the block specified by the amount of blocks specified, up to the max height specified in the config",
},
},
GrowMelonPumpkin =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "BLOCKTYPE",
Name = "a_BlockType",
},
},
Returns =
{
}
Desc = "Grows a melon or a pumpkin next to the block specified (assumed to be the stem)",
},
},
GrowRipePlant =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "bool",
Name = "a_IsByBonemeal",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Grows the plant at the specified block to its ripe stage (bonemeal used); returns false if the block is not growable. If a_IsBonemeal is true, block is not grown if not allowed in world.ini",
},
},
GrowSugarcane =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "int",
Name = "a_NumBlocksToGrow",
},
},
Returns =
{
}
Desc = "Grows a sugarcane present at the block specified by the amount of blocks specified, up to the max height specified in the config",
},
},
GrowTree =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
}
Desc = "Grows a tree at the specified coords, either from a sapling there, or based on the biome",
},
},
GrowTreeByBiome =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
}
Desc = "Grows a tree at the specified coords, based on the biome in the place",
},
},
GrowTreeFromSapling =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "char",
Name = "a_SaplingMeta",
},
},
Returns =
{
}
Desc = "Grows a tree at the specified coords, based on the sapling meta provided",
},
},
IsBlockDirectlyWatered =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
IsDaylightCycleEnabled =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Is the daylight cycle enabled?",
},
},
IsDeepSnowEnabled =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
IsGameModeAdventure =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if the world is in Adventure mode",
},
},
IsGameModeCreative =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if the world is in Creative mode",
},
},
IsGameModeSpectator =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if the world is in Spectator mode",
},
},
IsGameModeSurvival =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if the world is in Survival mode",
},
},
IsPVPEnabled =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
IsTrapdoorOpen =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
IsWeatherRain =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if the current weather is rain",
},
},
IsWeatherRainAt =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if it is raining at the specified location. This takes into account biomes.",
},
},
IsWeatherStorm =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if the current weather is stormy",
},
},
IsWeatherStormAt =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if the weather is stormy at the specified location. This takes into account biomes.",
},
},
IsWeatherSunny =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if the current weather is sun",
},
},
IsWeatherSunnyAt =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if it is sunny at the specified location. This takes into account biomes.",
},
},
IsWeatherWet =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if the current weather has any precipitation - rain, storm or snow",
},
},
IsWeatherWetAt =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Returns true if it is raining, stormy or snowing at the specified location. This takes into account biomes.",
},
},
QueueBlockForTick =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "int",
Name = "a_TicksToWait",
},
},
Returns =
{
}
Desc = "",
},
},
QueueSaveAllChunks =
{
{
Params =
{
},
Returns =
{
}
Desc = "",
},
},
QueueUnloadUnusedChunks =
{
{
Params =
{
},
Returns =
{
}
Desc = "",
},
},
RegenerateChunk =
{
{
Params =
{
{
Type = "int",
Name = "a_ChunkX",
},
{
Type = "int",
Name = "a_ChunkZ",
},
},
Returns =
{
}
Desc = "",
},
},
SendBlockTo =
{
{
Params =
{
{
Type = "int",
Name = "a_X",
},
{
Type = "int",
Name = "a_Y",
},
{
Type = "int",
Name = "a_Z",
},
{
Type = "cPlayer",
Name = "a_Player",
},
},
Returns =
{
}
Desc = "",
},
},
SetAreaBiome =
{
{
Params =
{
{
Type = "int",
Name = "a_MinX",
},
{
Type = "int",
Name = "a_MaxX",
},
{
Type = "int",
Name = "a_MinZ",
},
{
Type = "int",
Name = "a_MaxZ",
},
{
Type = "EMCSBiome",
Name = "a_Biome",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Sets the biome at the area. Returns true if successful, false if any subarea failed (chunk not loaded).\
\9(Re)sends the chunks to their relevant clients if successful.",
},
{
Params =
{
{
Type = "cCuboid",
Name = "a_Area",
},
{
Type = "EMCSBiome",
Name = "a_Biome",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Sets the biome at the area. Returns true if successful, false if any subarea failed (chunk not loaded).\
\9(Re)sends the chunks to their relevant clients if successful.\
\9The cuboid needn't be sorted.",
},
},
SetBiomeAt =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "EMCSBiome",
Name = "a_Biome",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "Sets the biome at the specified coords. Returns true if successful, false if not (chunk not loaded).\
\9Doesn't resend the chunk to clients, use ForceSendChunkTo() for that.",
},
},
SetBlock =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "BLOCKTYPE",
Name = "a_BlockType",
},
{
Type = "char",
Name = "a_BlockMeta",
},
{
Type = "bool",
Name = "a_SendToClients",
},
},
Returns =
{
}
Desc = "Sets the block at the specified coords to the specified value.\
\9Full processing, incl. updating neighbors, is performed.",
},
},
SetBlockMeta =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "char",
Name = "a_MetaData",
},
{
Type = "bool",
Name = "a_ShouldMarkDirty",
},
{
Type = "bool",
Name = "a_ShouldInformClient",
},
},
Returns =
{
}
Desc = "",
},
{
Params =
{
{
Type = "Vector3<int>",
Name = "a_Pos",
},
{
Type = "char",
Name = "a_MetaData",
},
},
Returns =
{
}
Desc = "",
},
},
SetChunkAlwaysTicked =
{
{
Params =
{
{
Type = "int",
Name = "a_ChunkX",
},
{
Type = "int",
Name = "a_ChunkZ",
},
{
Type = "bool",
Name = "a_AlwaysTicked",
},
},
Returns =
{
}
Desc = "",
},
},
SetCommandBlockCommand =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "AString",
Name = "a_Command",
},
},
Returns =
{
{
Type = "bool",
},
{
Type = "AString",
},
}
Desc = "",
},
},
SetCommandBlocksEnabled =
{
{
Params =
{
{
Type = "bool",
Name = "a_Flag",
},
},
Returns =
{
}
Desc = "",
},
},
SetDaylightCycleEnabled =
{
{
Params =
{
{
Type = "bool",
Name = "a_IsDaylightCycleEnabled",
},
},
Returns =
{
}
Desc = "Sets the daylight cycle to true / false.",
},
},
SetLinkedEndWorldName =
{
{
Params =
{
{
Type = "AString",
Name = "a_Name",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
SetLinkedNetherWorldName =
{
{
Params =
{
{
Type = "AString",
Name = "a_Name",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
SetLinkedOverworldName =
{
{
Params =
{
{
Type = "AString",
Name = "a_Name",
},
},
Returns =
{
{
Type = "AString",
},
}
Desc = "",
},
},
SetMaxNetherPortalHeight =
{
{
Params =
{
{
Type = "int",
Name = "a_NewMaxHeight",
},
},
Returns =
{
}
Desc = "",
},
},
SetMaxNetherPortalWidth =
{
{
Params =
{
{
Type = "int",
Name = "a_NewMaxWidth",
},
},
Returns =
{
}
Desc = "",
},
},
SetMaxViewDistance =
{
{
Params =
{
{
Type = "int",
Name = "a_MaxViewDistance",
},
},
Returns =
{
}
Desc = "",
},
},
SetMinNetherPortalHeight =
{
{
Params =
{
{
Type = "int",
Name = "a_NewMinHeight",
},
},
Returns =
{
}
Desc = "",
},
},
SetMinNetherPortalWidth =
{
{
Params =
{
{
Type = "int",
Name = "a_NewMinWidth",
},
},
Returns =
{
}
Desc = "",
},
},
SetNextBlockTick =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
}
Desc = "",
},
},
SetShouldUseChatPrefixes =
{
{
Params =
{
{
Type = "bool",
Name = "a_Flag",
},
},
Returns =
{
}
Desc = "",
},
},
SetTNTShrapnelLevel =
{
{
Params =
{
{
Type = "eShrapnelLevel",
Name = "a_Flag",
},
},
Returns =
{
}
Desc = "",
},
},
SetTicksUntilWeatherChange =
{
{
Params =
{
{
Type = "int",
Name = "a_WeatherInterval",
},
},
Returns =
{
}
Desc = "",
},
},
SetTimeOfDay =
{
{
Params =
{
{
Type = "int",
Name = "a_TimeOfDay",
},
},
Returns =
{
}
Desc = "",
},
},
SetTrapdoorOpen =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
{
Type = "bool",
Name = "a_Open",
},
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
SetWeather =
{
{
Params =
{
{
Type = "eWeather",
Name = "a_NewWeather",
},
},
Returns =
{
}
Desc = "Sets the specified weather; resets weather interval; asks and notifies plugins of the change",
},
},
ShouldBroadcastAchievementMessages =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
ShouldBroadcastDeathMessages =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
ShouldLavaSpawnFire =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
ShouldUseChatPrefixes =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
SpawnExperienceOrb =
{
{
Params =
{
{
Type = "double",
Name = "a_X",
},
{
Type = "double",
Name = "a_Y",
},
{
Type = "double",
Name = "a_Z",
},
{
Type = "int",
Name = "a_Reward",
},
},
Returns =
{
{
Type = "int",
},
}
Desc = "Spawns an experience orb at the given location with the given reward.\
\9Returns the UniqueID of the spawned experience orb, or cEntity::INVALID_ID on failure.",
},
},
SpawnFallingBlock =
{
{
Params =
{
{
Type = "int",
Name = "a_X",
},
{
Type = "int",
Name = "a_Y",
},
{
Type = "int",
Name = "a_Z",
},
{
Type = "BLOCKTYPE",
Name = "BlockType",
},
{
Type = "char",
Name = "BlockMeta",
},
},
Returns =
{
{
Type = "int",
},
}
Desc = "Spawns an falling block entity at the given position.\
\9Returns the UniqueID of the spawned falling block, or cEntity::INVALID_ID on failure.",
},
},
SpawnItemPickups =
{
{
Params =
{
{
Type = "cItems",
Name = "a_Pickups",
},
{
Type = "double",
Name = "a_BlockX",
},
{
Type = "double",
Name = "a_BlockY",
},
{
Type = "double",
Name = "a_BlockZ",
},
{
Type = "double",
Name = "a_FlyAwaySpeed",
},
{
Type = "bool",
Name = "IsPlayerCreated",
},
},
Returns =
{
}
Desc = "Spawns item pickups for each item in the list. May compress pickups if too many entities:",
},
{
Params =
{
{
Type = "cItems",
Name = "a_Pickups",
},
{
Type = "double",
Name = "a_BlockX",
},
{
Type = "double",
Name = "a_BlockY",
},
{
Type = "double",
Name = "a_BlockZ",
},
{
Type = "double",
Name = "a_SpeedX",
},
{
Type = "double",
Name = "a_SpeedY",
},
{
Type = "double",
Name = "a_SpeedZ",
},
{
Type = "bool",
Name = "IsPlayerCreated",
},
},
Returns =
{
}
Desc = "Spawns item pickups for each item in the list. May compress pickups if too many entities. All pickups get the speed specified.",
},
},
SpawnMinecart =
{
{
Params =
{
{
Type = "double",
Name = "a_X",
},
{
Type = "double",
Name = "a_Y",
},
{
Type = "double",
Name = "a_Z",
},
{
Type = "int",
Name = "a_MinecartType",
},
},
Returns =
{
{
Type = "int",
},
}
Desc = "Spawns an minecart at the given coordinates.\
\9Returns the UniqueID of the spawned minecart, or cEntity::INVALID_ID on failure.",
},
{
Params =
{
{
Type = "double",
Name = "a_X",
},
{
Type = "double",
Name = "a_Y",
},
{
Type = "double",
Name = "a_Z",
},
{
Type = "int",
Name = "a_MinecartType",
},
{
Type = "cItem",
Name = "a_Content",
},
{
Type = "int",
Name = "a_BlockHeight",
},
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
SpawnMob =
{
{
Params =
{
{
Type = "double",
Name = "a_PosX",
},
{
Type = "double",
Name = "a_PosY",
},
{
Type = "double",
Name = "a_PosZ",
},
{
Type = "eMonsterType",
Name = "a_MonsterType",
},
{
Type = "bool",
Name = "a_Baby",
},
},
Returns =
{
{
Type = "int",
},
}
Desc = "",
},
},
SpawnPrimedTNT =
{
{
Params =
{
{
Type = "double",
Name = "a_X",
},
{
Type = "double",
Name = "a_Y",
},
{
Type = "double",
Name = "a_Z",
},
{
Type = "int",
Name = "a_FuseTimeInSec",
},
{
Type = "double",
Name = "a_InitialVelocityCoeff",
},
},
Returns =
{
{
Type = "int",
},
}
Desc = "Spawns a new primed TNT entity at the specified block coords and specified fuse duration.\
\9Initial velocity is given based on the relative coefficient provided.\
\9Returns the UniqueID of the created entity, or cEntity::INVALID_ID on failure.",
},
},
UseBlockEntity =
{
{
Params =
{
{
Type = "cPlayer",
Name = "a_Player",
},
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
}
Desc = "",
},
},
VillagersShouldHarvestCrops =
{
{
Params =
{
},
Returns =
{
{
Type = "bool",
},
}
Desc = "",
},
},
WakeUpSimulators =
{
{
Params =
{
{
Type = "int",
Name = "a_BlockX",
},
{
Type = "int",
Name = "a_BlockY",
},
{
Type = "int",
Name = "a_BlockZ",
},
},
Returns =
{
}
Desc = "Wakes up the simulators for the specified block",
},
},
WakeUpSimulatorsInArea =
{
{
Params =
{
{
Type = "int",
Name = "a_MinBlockX",
},
{
Type = "int",
Name = "a_MaxBlockX",
},
{
Type = "int",
Name = "a_MinBlockY",
},
{
Type = "int",
Name = "a_MaxBlockY",
},
{
Type = "int",
Name = "a_MinBlockZ",
},
{
Type = "int",
Name = "a_MaxBlockZ",
},
},
Returns =
{
}
Desc = "Wakes up the simulators for the specified area of blocks",
},
},
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment