Globals


Index:
Articles
Classes
Hooks

Quick navigation:
BannerPattern
BossBarColor
BossBarDivisionType
cArrowEntity
cBeaconEntity
cBedEntity
cBlockArea
cBlockEntity
cBlockEntityWithItems
cBlockInfo
cBoat
cBoundingBox
cBrewingstandEntity
cChatColor
cChestEntity
cChunkDesc
cClientHandle
cColor
cCommandBlockEntity
cCompositeChat
cCraftingGrid
cCraftingRecipe
cCryptoHash
cCuboid
cDispenserEntity
cDropperEntity
cDropSpenserEntity
cEnchantments
cEnderCrystal
cEntity
cEntityEffect
cExpBottleEntity
cExpOrb
cFallingBlock
cFile
cFireChargeEntity
cFireworkEntity
cFloater
cFlowerPotEntity
cFurnaceEntity
cGhastFireballEntity
cHangingEntity
cHopperEntity
cIniFile
cInventory
cItem
cItemFrame
cItemGrid
cItems
cJson
cJukeboxEntity
cLeashKnot
cLineBlockTracer
cLuaWindow
cMap
cMapManager
cMobHeadEntity
cMobSpawnerEntity
cMojangAPI
cMonster
cNetwork
cNoteEntity
cObjective
cPainting
cPawn
cPickup
cPlayer
cPlugin
cPluginLua
cPluginManager
cProjectileEntity
cRankManager
cRoot
cScoreboard
cServer
cServerHandle
cSignEntity
cSplashPotionEntity
cStringCompression
cTCPLink
cTeam
cThrownEggEntity
cThrownEnderPearlEntity
cThrownSnowballEntity
cTNTEntity
cUDPEndpoint
cUrlClient
cUrlParser
CustomStatistic
cUUID
cWebAdmin
cWindow
cWitherSkullEntity
cWorld
EffectID
HTTPFormData
HTTPRequest
HTTPTemplateRequest
ItemCategory
lxp
SmokeDirection
sqlite3
StatisticsManager
TakeDamageInfo
tolua
Vector3d
Vector3f
Vector3i
Globals

Contents


Globals class

These functions are available directly, without a class instance. Any plugin can call them at any time.


Constants

NameValueNotes
MAX_EXPERIENCE_ORB_SIZE 2000
_VERSION Lua 5.1
ctAboveActionBar 2
ctChatBox 0
ctSystem 1
mtCat 2
mtCod 5
mtDolphin 8
mtDonkey 9
mtDrowned 10
mtElderGuardian 11
mtEndermite 14
mtEvoker 15
mtFox 16
mtHoglin 21
mtHusk 22
mtIllusioner 23
mtLlama 25
mtMule 28
mtPanda 30
mtParrot 31
mtPhantom 32
mtPillager 36
mtPolarBear 37
mtPufferfish 38
mtRavager 40
mtSalmon 41
mtShulker 43
mtStray 51
mtStrider 52
mtTraderLlama 53
mtTropicalFish 54
mtTurtle 55
mtVex 56
mtVindicator 58
mtWanderingTrader 59
mtZoglin 64
mtZombifiedPiglin 67

These constants are used to differentiate the various sources of explosions. They are used in the HOOK_EXPLODED hook, HOOK_EXPLODING hook and in the cWorld:DoExplosionAt() function. These constants also dictate the type of the additional data provided with the explosions, such as the exploding creeper entity or the coords of the exploding bed.

NameValueNotes
esBed 0 A bed explosion. The SourceData param is the position of the bed.
esEnderCrystal 1 An ender crystal entity explosion. The SourceData param is the ender crystal entity object.
esGhastFireball 2 A ghast fireball explosion. The SourceData param is the ghast fireball entity object.
esMax 9
esMonster 3 A monster explosion (creeper). The SourceData param is the monster entity object.
esOther 4 Any other explosion. The SourceData param is unused.
esPlugin 5 An explosion started by a plugin, without any further information. The SourceData param is unused.
esPrimedTNT 6 A TNT explosion. The SourceData param is the TNT entity object.
esWitherBirth 7 An explosion at a wither's birth. The SourceData param is the wither entity object.
esWitherSkull 8 A wither skull explosion. The SourceData param is the wither skull entity object.


These constants represent the weather in the world. Note that unlike vanilla, Cuberite allows different weathers even in non-overworld dimensions.

NameValueNotes
eWeather_Rain 1
eWeather_Sunny 0
eWeather_ThunderStorm 2
wRain 1
wStorm 2
wSunny 0
wThunderstorm 2


These constants represent various skin part flags.

NameValueNotes
spCape 1 The cape skin part
spHat 64 The hat/head skin part
spJacket 2 The jacket skin part
spLeftPants 16 The left pants leg skin part
spLeftSleeve 4 The left sleeve skin part
spMask 127 A mask of all valid skin parts combined
spRightPants 32 The right pants leg skin part
spRightSleeve 8 The right sleeve skin part


NameValueNotes
E_META_BANNER_BLACK 0
E_META_BANNER_BLUE 4
E_META_BANNER_BROWN 3
E_META_BANNER_CYAN 6
E_META_BANNER_GRAY 8
E_META_BANNER_GREEN 2
E_META_BANNER_LIGHTBLUE 12
E_META_BANNER_LIGHTGRAY 7
E_META_BANNER_LIGHTGREEN 10
E_META_BANNER_MAGENTA 13
E_META_BANNER_ORANGE 14
E_META_BANNER_PINK 9
E_META_BANNER_PURPLE 5
E_META_BANNER_RED 1
E_META_BANNER_WHITE 15
E_META_BANNER_YELLOW 11
E_META_BIG_FLOWER_DOUBLE_TALL_GRASS 2
E_META_BIG_FLOWER_LARGE_FERN 3
E_META_BIG_FLOWER_LILAC 1
E_META_BIG_FLOWER_PEONY 5
E_META_BIG_FLOWER_ROSE_BUSH 4
E_META_BIG_FLOWER_SUNFLOWER 0
E_META_BIG_FLOWER_TOP 10 The metadata of a big flower block that indicates it is the top block.
E_META_BREWING_STAND_FILLED_SLOT_XM_ZM 4
E_META_BREWING_STAND_FILLED_SLOT_XM_ZP 2
E_META_BREWING_STAND_FILLED_SLOT_XP 1
E_META_CARPET_BLACK 15
E_META_CARPET_BLUE 11
E_META_CARPET_BROWN 12
E_META_CARPET_CYAN 9
E_META_CARPET_GRAY 7
E_META_CARPET_GREEN 13
E_META_CARPET_LIGHTBLUE 3
E_META_CARPET_LIGHTGRAY 8
E_META_CARPET_LIGHTGREEN 5
E_META_CARPET_MAGENTA 2
E_META_CARPET_ORANGE 1
E_META_CARPET_PINK 6
E_META_CARPET_PURPLE 10
E_META_CARPET_RED 14
E_META_CARPET_WHITE 0
E_META_CARPET_YELLOW 4
E_META_CHEST_FACING_XM 4
E_META_CHEST_FACING_XP 5
E_META_CHEST_FACING_ZM 2
E_META_CHEST_FACING_ZP 3
E_META_COAL_CHARCOAL 1
E_META_COAL_NORMAL 0
E_META_CONCRETE_BLACK 15 A flag in the metadata of concete that indicates that the concrete is black.
E_META_CONCRETE_BLUE 11 A flag in the metadata of concete that indicates that the concrete is blue.
E_META_CONCRETE_BROWN 12 A flag in the metadata of concete that indicates that the concrete is brown.
E_META_CONCRETE_CYAN 9 A flag in the metadata of concete that indicates that the concrete is cyan.
E_META_CONCRETE_GRAY 7 A flag in the metadata of concete that indicates that the concrete is gray.
E_META_CONCRETE_GREEN 13 A flag in the metadata of concete that indicates that the concrete is green.
E_META_CONCRETE_LIGHTBLUE 3 A flag in the metadata of concete that indicates that the concrete is light blue.
E_META_CONCRETE_LIGHTGRAY 8 A flag in the metadata of concete that indicates that the concrete is light gray.
E_META_CONCRETE_LIGHTGREEN 5 A flag in the metadata of concete that indicates that the concrete is light green.
E_META_CONCRETE_MAGENTA 2 A flag in the metadata of concete that indicates that the concrete is magenta.
E_META_CONCRETE_ORANGE 1 A flag in the metadata of concete that indicates that the concrete is orange.
E_META_CONCRETE_PINK 6 A flag in the metadata of concete that indicates that the concrete is pink.
E_META_CONCRETE_POWDER_BLACK 15 A flag in the metadata of concete powder that indicates that the concrete powder is black.
E_META_CONCRETE_POWDER_BLUE 11 A flag in the metadata of concete powder that indicates that the concrete powder is blue.
E_META_CONCRETE_POWDER_BROWN 12 A flag in the metadata of concete powder that indicates that the concrete powder is brown.
E_META_CONCRETE_POWDER_CYAN 9 A flag in the metadata of concete powder that indicates that the concrete powder is cyan.
E_META_CONCRETE_POWDER_GRAY 7 A flag in the metadata of concete powder that indicates that the concrete powder is gray.
E_META_CONCRETE_POWDER_GREEN 13 A flag in the metadata of concete powder that indicates that the concrete powder is green.
E_META_CONCRETE_POWDER_LIGHTBLUE 3 A flag in the metadata of concete powder that indicates that the concrete powder is light blue.
E_META_CONCRETE_POWDER_LIGHTGRAY 8 A flag in the metadata of concete powder that indicates that the concrete powder is light gray.
E_META_CONCRETE_POWDER_LIGHTGREEN 5 A flag in the metadata of concete powder that indicates that the concrete powder is light green.
E_META_CONCRETE_POWDER_MAGENTA 2 A flag in the metadata of concete powder that indicates that the concrete powder is magenta.
E_META_CONCRETE_POWDER_ORANGE 1 A flag in the metadata of concete powder that indicates that the concrete powder is orange.
E_META_CONCRETE_POWDER_PINK 6 A flag in the metadata of concete powder that indicates that the concrete powder is pink.
E_META_CONCRETE_POWDER_PURPLE 10 A flag in the metadata of concete powder that indicates that the concrete powder is purple.
E_META_CONCRETE_POWDER_RED 14 A flag in the metadata of concete powder that indicates that the concrete powder is red.
E_META_CONCRETE_POWDER_WHITE 0 A flag in the metadata of concete powder that indicates that the concrete powder is white.
E_META_CONCRETE_POWDER_YELLOW 4 A flag in the metadata of concete powder that indicates that the concrete powder is yellow.
E_META_CONCRETE_PURPLE 10 A flag in the metadata of concete that indicates that the concrete is purple.
E_META_CONCRETE_RED 14 A flag in the metadata of concete that indicates that the concrete is red.
E_META_CONCRETE_WHITE 0 A flag in the metadata of concete that indicates that the concrete is white.
E_META_CONCRETE_YELLOW 4 A flag in the metadata of concete that indicates that the concrete is yellow.
E_META_COOKED_FISH_FISH 0
E_META_COOKED_FISH_SALMON 1
E_META_DIRT_COARSE 1
E_META_DIRT_GRASSLESS 1
E_META_DIRT_NORMAL 0
E_META_DIRT_PODZOL 2
E_META_DOUBLE_STONE_SLAB_BRICK 4
E_META_DOUBLE_STONE_SLAB_COBBLESTONE 3
E_META_DOUBLE_STONE_SLAB_NETHER_BRICK 6
E_META_DOUBLE_STONE_SLAB_QUARTZ 7
E_META_DOUBLE_STONE_SLAB_SANDSTON 1
E_META_DOUBLE_STONE_SLAB_SMOOTH_SANDSTONE 9
E_META_DOUBLE_STONE_SLAB_SMOOTH_STONE 8
E_META_DOUBLE_STONE_SLAB_STONE 0
E_META_DOUBLE_STONE_SLAB_STONE_BRICK 5
E_META_DOUBLE_STONE_SLAB_TILE_QUARTZ 10
E_META_DOUBLE_STONE_SLAB_WOODEN 2
E_META_DROPSPENSER_ACTIVATED 8 A flag in the metadata of droppers and dispensers that indicates that the dropper or dispenser is currently activated. If this flag is set, the block must be unpowered first and powered again to shoot the next item.
E_META_DROPSPENSER_FACING_MASK 7 A mask that indicates the bits of the metadata that specify the facing of droppers and dispensers.
E_META_DROPSPENSER_FACING_XM 4 A flag in the metadata of droppers and dispensers that indicates that the dropper or dispenser is looking in the negative X direction.
E_META_DROPSPENSER_FACING_XP 5 A flag in the metadata of droppers and dispensers that indicates that the dropper or dispenser is looking in the positive X direction.
E_META_DROPSPENSER_FACING_YM 0 A flag in the metadata of droppers and dispensers that indicates that the dropper or dispenser is looking in the negative Y direction.
E_META_DROPSPENSER_FACING_YP 1 A flag in the metadata of droppers and dispensers that indicates that the dropper or dispenser is looking in the positive Y direction.
E_META_DROPSPENSER_FACING_ZM 2 A flag in the metadata of droppers and dispensers that indicates that the dropper or dispenser is looking in the negative Z direction.
E_META_DROPSPENSER_FACING_ZP 3 A flag in the metadata of droppers and dispensers that indicates that the dropper or dispenser is looking in the positive Z direction.
E_META_DYE_BLACK 0
E_META_DYE_BLUE 4
E_META_DYE_BROWN 3
E_META_DYE_CYAN 6
E_META_DYE_GRAY 8
E_META_DYE_GREEN 2
E_META_DYE_LIGHTBLUE 12
E_META_DYE_LIGHTGRAY 7
E_META_DYE_LIGHTGREEN 10
E_META_DYE_MAGENTA 13
E_META_DYE_ORANGE 14
E_META_DYE_PINK 9
E_META_DYE_PURPLE 5
E_META_DYE_RED 1
E_META_DYE_WHITE 15
E_META_DYE_YELLOW 11
E_META_END_PORTAL_FRAME_EYE 4 A flag in the metadata of end portal frames that indicates that the portal frame has an eye in it.
E_META_END_PORTAL_FRAME_NO_EYE 0 The lack of the flag in the metadata of end portal frames indicating that the portal frame has an eye in it.
E_META_END_PORTAL_FRAME_XM 1 A flag in the metadata of end portal frames that indicates that the portal frame is facing the negative X direction.
E_META_END_PORTAL_FRAME_XM_EYE 5 A flag in the metadata of end portal frames that indicates that the portal frame is facing the negative X direction and has an ender eye in it.
E_META_END_PORTAL_FRAME_XP 3 A flag in the metadata of end portal frames that indicates that the portal frame is facing the positive X direction.
E_META_END_PORTAL_FRAME_XP_EYE 7 A flag in the metadata of end portal frames that indicates that the portal frame is facing the positive X direction and has an ender eye in it.
E_META_END_PORTAL_FRAME_ZM 2 A flag in the metadata of end portal frames that indicates that the portal frame is facing the negative Z direction.
E_META_END_PORTAL_FRAME_ZM_EYE 6 A flag in the metadata of end portal frames that indicates that the portal frame is facing the negative Z direction and has an ender eye in it.
E_META_END_PORTAL_FRAME_ZP 0 A flag in the metadata of end portal frames that indicates that the portal frame is facing the positive Z direction.
E_META_END_PORTAL_FRAME_ZP_EYE 4 A flag in the metadata of end portal frames that indicates that the portal frame is facing the positive Z direction and has an ender eye in it.
E_META_FLOWER_ALLIUM 2
E_META_FLOWER_BLUE_ORCHID 1
E_META_FLOWER_ORANGE_TULIP 5
E_META_FLOWER_OXEYE_DAISY 8
E_META_FLOWER_PINK_TULIP 7
E_META_FLOWER_POPPY 0
E_META_FLOWER_RED_TULIP 4
E_META_FLOWER_WHITE_TULIP 6
E_META_GOLDEN_APPLE_ENCHANTED 1
E_META_GOLDEN_APPLE_NORMAL 0
E_META_HEAD_CREEPER 4 A flag in the metadata of heads that indicates that the head is a creeper head.
E_META_HEAD_DRAGON 5 A flag in the metadata of heads that indicates that the head is a dragon head.
E_META_HEAD_PLAYER 3 A flag in the metadata of heads that indicates that the head is a player head.
E_META_HEAD_SKELETON 0 A flag in the metadata of heads that indicates that the head is a skeleton head.
E_META_HEAD_WITHER 1 A flag in the metadata of heads that indicates that the head is a wither head.
E_META_HEAD_ZOMBIE 2 A flag in the metadata of heads that indicates that the head is a zombie head.
E_META_HOPPER_FACING_XM 4
E_META_HOPPER_FACING_XP 5
E_META_HOPPER_FACING_YM 0
E_META_HOPPER_FACING_ZM 2
E_META_HOPPER_FACING_ZP 3
E_META_HOPPER_UNATTACHED 1
E_META_JUKEBOX_OFF 0
E_META_JUKEBOX_ON 1
E_META_LEAVES_APPLE 0
E_META_LEAVES_APPLE_CHECK_DECAY 8
E_META_LEAVES_APPLE_NO_DECAY 4
E_META_LEAVES_BIRCH 2
E_META_LEAVES_BIRCH_CHECK_DECAY 10
E_META_LEAVES_BIRCH_NO_DECAY 6
E_META_LEAVES_CONIFER 1
E_META_LEAVES_CONIFER_CHECK_DECAY 9
E_META_LEAVES_CONIFER_NO_DECAY 5
E_META_LEAVES_JUNGLE 3
E_META_LEAVES_JUNGLE_CHECK_DECAY 11
E_META_LEAVES_JUNGLE_NO_DECAY 7
E_META_LOG_APPLE 0
E_META_LOG_BIRCH 2
E_META_LOG_BIRCH_BARK_ONLY 14
E_META_LOG_BIRCH_UP_DOWN 2
E_META_LOG_BIRCH_X 6
E_META_LOG_BIRCH_Z 10
E_META_LOG_CONIFER 1
E_META_LOG_JUNGLE 3
E_META_LOG_JUNGLE_BARK_ONLY 15
E_META_LOG_JUNGLE_UP_DOWN 3
E_META_LOG_JUNGLE_X 7
E_META_LOG_JUNGLE_Z 11
E_META_LOG_OAK_BARK_ONLY 12
E_META_LOG_OAK_UP_DOWN 0
E_META_LOG_OAK_X 4
E_META_LOG_OAK_Z 8
E_META_LOG_SPRUCE_BARK_ONLY 13
E_META_LOG_SPRUCE_UP_DOWN 1
E_META_LOG_SPRUCE_X 5
E_META_LOG_SPRUCE_Z 9
E_META_MUSHROOM_ALL_SIDES 0 A flag in the metadata of mushroom blocks to display the outside texture on all sides.
E_META_MUSHROOM_CAP 14 A flag in the metadata of mushroom blocks to display the outside texture on all sides.
E_META_MUSHROOM_CENTER 5 A flag in the metadata of mushroom blocks to display the outside texture on top.
E_META_MUSHROOM_EAST 6 A flag in the metadata of mushroom blocks to display the outside texture on east side.
E_META_MUSHROOM_FULL_STEM 15 A flag in the metadata of mushroom blocks to display the stem texture on all sides.
E_META_MUSHROOM_NORTH 2 A flag in the metadata of mushroom blocks to display the outside texture on north side.
E_META_MUSHROOM_NORTH_EAST 3 A flag in the metadata of mushroom blocks to display the outside texture on north and east side.
E_META_MUSHROOM_NORTH_WEST 1 A flag in the metadata of mushroom blocks to display the pore texture on north and west side.
E_META_MUSHROOM_SOUTH 8 A flag in the metadata of mushroom blocks to display the outside texture on south side.
E_META_MUSHROOM_SOUTH_EAST 9 A flag in the metadata of mushroom blocks to display the outside texture on south and east side.
E_META_MUSHROOM_SOUTH_WEST 7 A flag in the metadata of mushroom blocks to display the outside texture on south and west side.
E_META_MUSHROOM_STEM 10 A flag in the metadata of mushroom blocks to display the stem texture on all sides but not on top and bottom.
E_META_MUSHROOM_WEST 4 A flag in the metadata of mushroom blocks to display the outside texture on west side.
E_META_NEWLEAVES_ACACIA 0
E_META_NEWLEAVES_ACACIA_CHECK_DECAY 8
E_META_NEWLEAVES_ACACIA_NO_DECAY 4
E_META_NEWLEAVES_DARK_OAK 1
E_META_NEWLEAVES_DARK_OAK_CHECK_DECAY 9
E_META_NEWLEAVES_DARK_OAK_NO_DECAY 5
E_META_NEWLOG_ACACIA_BARK_ONLY 12
E_META_NEWLOG_ACACIA_UP_DOWN 0
E_META_NEWLOG_ACACIA_X 4
E_META_NEWLOG_ACACIA_Z 8
E_META_NEWLOG_DARK_OAK_BARK_ONLY 13
E_META_NEWLOG_DARK_OAK_UP_DOWN 1
E_META_NEWLOG_DARK_OAK_X 5
E_META_NEWLOG_DARK_OAK_Z 9
E_META_NEW_LOG_ACACIA_WOOD 0
E_META_NEW_LOG_DARK_OAK_WOOD 1
E_META_PISTON_DOWN 0
E_META_PISTON_EXTENDED 8
E_META_PISTON_HEAD_STICKY 8
E_META_PISTON_U 1
E_META_PISTON_XM 4
E_META_PISTON_XP 5
E_META_PISTON_ZM 2
E_META_PISTON_ZP 3
E_META_PLANKS_ACACIA 4
E_META_PLANKS_BIRCH 2
E_META_PLANKS_DARK_OAK 5
E_META_PLANKS_JUNGLE 3
E_META_PLANKS_OAK 0
E_META_PLANKS_SPRUCE 1
E_META_PRESSURE_PLATE_DEPRESSED 1
E_META_PRESSURE_PLATE_RAISED 0
E_META_PRISMARINE_BLOCK_BRICKS 1
E_META_PRISMARINE_BLOCK_DARK 2
E_META_PRISMARINE_BLOCK_ROUGH 0
E_META_QUARTZ_CHISELLED 1
E_META_QUARTZ_NORMAL 0
E_META_QUARTZ_PILLAR 2
E_META_RAIL_ASCEND_XM 3
E_META_RAIL_ASCEND_XP 2
E_META_RAIL_ASCEND_ZM 4
E_META_RAIL_ASCEND_ZP 5
E_META_RAIL_CURVED_ZM_XM 8
E_META_RAIL_CURVED_ZM_XP 9
E_META_RAIL_CURVED_ZP_XM 7
E_META_RAIL_CURVED_ZP_XP 6
E_META_RAIL_XM_XP 1
E_META_RAIL_ZM_ZP 0
E_META_RAW_FISH_CLOWNFISH 2
E_META_RAW_FISH_FISH 0
E_META_RAW_FISH_PUFFERFISH 3
E_META_RAW_FISH_SALMON 1
E_META_REDSTONE_REPEATER_FACING_MASK 3 A mask that indicates the bits of the metadata that specify the facing of redstone repeaters.
E_META_REDSTONE_REPEATER_FACING_XM 3 A flag in the metadata of redstone repeaters that indicates that the repeater is looking in the negative X direction.
E_META_REDSTONE_REPEATER_FACING_XP 1 A flag in the metadata of redstone repeaters that indicates that the repeater is looking in the positive X direction.
E_META_REDSTONE_REPEATER_FACING_ZM 0 A flag in the metadata of redstone repeaters that indicates that the repeater is looking in the negative Z direction.
E_META_REDSTONE_REPEATER_FACING_ZP 2 A flag in the metadata of redstone repeaters that indicates that the repeater is looking in the positive Z direction.
E_META_RED_SANDSTONE_NORMAL 0
E_META_RED_SANDSTONE_ORNAMENT 1
E_META_RED_SANDSTONE_SMOOTH 2
E_META_SANDSTONE_NORMAL 0
E_META_SANDSTONE_ORNAMENT 1
E_META_SANDSTONE_SMOOTH 2
E_META_SAND_NORMAL 0
E_META_SAND_RED 1
E_META_SAPLING_ACACIA 4
E_META_SAPLING_APPLE 0
E_META_SAPLING_BIRCH 2
E_META_SAPLING_CONIFER 1
E_META_SAPLING_DARK_OAK 5
E_META_SAPLING_JUNGLE 3
E_META_SILVERFISH_EGG_CHISELED_STONE_BRICK 5 A flag in the metadata of the silverfish egg that the block is made from chiseled stone bricks
E_META_SILVERFISH_EGG_COBBLESTONE 1
E_META_SILVERFISH_EGG_CRACKED_STONE_BRICK 4 A flag in the metadata of the silverfish egg that the block is made from cracked stone bricks
E_META_SILVERFISH_EGG_MOSSY_STONE_BRICK 3 A flag in the metadata of the silverfish egg that the block is made from mossy stone bricks
E_META_SILVERFISH_EGG_STONE 0
E_META_SILVERFISH_EGG_STONE_BRICK 2
E_META_SNOW_LAYER_EIGHT 7
E_META_SNOW_LAYER_FIVE 4
E_META_SNOW_LAYER_FOUR 3
E_META_SNOW_LAYER_ONE 0
E_META_SNOW_LAYER_SEVEN 6
E_META_SNOW_LAYER_SIX 5
E_META_SNOW_LAYER_THREE 2
E_META_SNOW_LAYER_TWO 1
E_META_SPAWN_EGG_ARROW 10
E_META_SPAWN_EGG_BAT 65
E_META_SPAWN_EGG_BLAZE 61
E_META_SPAWN_EGG_BOAT 41
E_META_SPAWN_EGG_CAVE_SPIDER 59
E_META_SPAWN_EGG_CHICKEN 93
E_META_SPAWN_EGG_COW 92
E_META_SPAWN_EGG_CREEPER 50
E_META_SPAWN_EGG_ENDERMAN 58
E_META_SPAWN_EGG_ENDER_CRYSTAL 200
E_META_SPAWN_EGG_ENDER_DRAGON 63
E_META_SPAWN_EGG_ENDER_PEARL 14
E_META_SPAWN_EGG_EXPERIENCE_ORB 2
E_META_SPAWN_EGG_EXP_BOTTLE 17
E_META_SPAWN_EGG_EYE_OF_ENDER 15
E_META_SPAWN_EGG_FALLING_BLOCK 21
E_META_SPAWN_EGG_FIREBALL 12
E_META_SPAWN_EGG_FIREWORK 22
E_META_SPAWN_EGG_GHAST 56
E_META_SPAWN_EGG_GIANT 53
E_META_SPAWN_EGG_GUARDIAN 68
E_META_SPAWN_EGG_HORSE 100
E_META_SPAWN_EGG_IRON_GOLEM 99
E_META_SPAWN_EGG_ITEM_FRAME 18
E_META_SPAWN_EGG_LEASH_KNOT 8
E_META_SPAWN_EGG_MAGMA_CUBE 62
E_META_SPAWN_EGG_MINECART 42
E_META_SPAWN_EGG_MINECART_CHEST 43
E_META_SPAWN_EGG_MINECART_FURNACE 44
E_META_SPAWN_EGG_MINECART_HOPPER 46
E_META_SPAWN_EGG_MINECART_SPAWNER 47
E_META_SPAWN_EGG_MINECART_TNT 45
E_META_SPAWN_EGG_MOOSHROOM 96
E_META_SPAWN_EGG_OCELOT 98
E_META_SPAWN_EGG_PAINTING 9
E_META_SPAWN_EGG_PICKUP 1
E_META_SPAWN_EGG_PIG 90
E_META_SPAWN_EGG_PRIMED_TNT 20
E_META_SPAWN_EGG_RABBIT 101
E_META_SPAWN_EGG_SHEEP 91
E_META_SPAWN_EGG_SILVERFISH 60
E_META_SPAWN_EGG_SKELETON 51
E_META_SPAWN_EGG_SLIME 55
E_META_SPAWN_EGG_SMALL_FIREBALL 13
E_META_SPAWN_EGG_SNOWBALL 11
E_META_SPAWN_EGG_SNOW_GOLEM 97
E_META_SPAWN_EGG_SPIDER 52
E_META_SPAWN_EGG_SPLASH_POTION 16
E_META_SPAWN_EGG_SQUID 94
E_META_SPAWN_EGG_VILLAGER 120
E_META_SPAWN_EGG_WITCH 66
E_META_SPAWN_EGG_WITHER 64
E_META_SPAWN_EGG_WITHER_SKELETON 5
E_META_SPAWN_EGG_WITHER_SKULL 19
E_META_SPAWN_EGG_WOLF 95
E_META_SPAWN_EGG_ZOMBIE 54
E_META_SPAWN_EGG_ZOMBIE_PIGMAN 57
E_META_SPAWN_EGG_ZOMBIE_VILLAGER 27
E_META_SPONGE_DRY 0 A flag in the metadata of sponges that indicates that the sponge is dry.
E_META_SPONGE_WET 1 A flag in the metadata of sponges that indicates that the sponge is wet.
E_META_STAINED_CLAY_BLACK 15
E_META_STAINED_CLAY_BLUE 11
E_META_STAINED_CLAY_BROWN 12
E_META_STAINED_CLAY_CYAN 9
E_META_STAINED_CLAY_GRAY 7
E_META_STAINED_CLAY_GREEN 13
E_META_STAINED_CLAY_LIGHTBLUE 3
E_META_STAINED_CLAY_LIGHTGRAY 8
E_META_STAINED_CLAY_LIGHTGREEN 5
E_META_STAINED_CLAY_MAGENTA 2
E_META_STAINED_CLAY_ORANGE 1
E_META_STAINED_CLAY_PINK 6
E_META_STAINED_CLAY_PURPLE 10
E_META_STAINED_CLAY_RED 14
E_META_STAINED_CLAY_WHITE 0
E_META_STAINED_CLAY_YELLOW 4
E_META_STAINED_GLASS_BLACK 15
E_META_STAINED_GLASS_BLUE 11
E_META_STAINED_GLASS_BROWN 12
E_META_STAINED_GLASS_CYAN 9
E_META_STAINED_GLASS_GRAY 7
E_META_STAINED_GLASS_GREEN 13
E_META_STAINED_GLASS_LIGHTBLUE 3
E_META_STAINED_GLASS_LIGHTGRAY 8
E_META_STAINED_GLASS_LIGHTGREEN 5
E_META_STAINED_GLASS_MAGENTA 2
E_META_STAINED_GLASS_ORANGE 1
E_META_STAINED_GLASS_PANE_BLACK 15
E_META_STAINED_GLASS_PANE_BLUE 11
E_META_STAINED_GLASS_PANE_BROWN 12
E_META_STAINED_GLASS_PANE_CYAN 9
E_META_STAINED_GLASS_PANE_GRAY 7
E_META_STAINED_GLASS_PANE_GREEN 13
E_META_STAINED_GLASS_PANE_LIGHTBLUE 3
E_META_STAINED_GLASS_PANE_LIGHTGRAY 8
E_META_STAINED_GLASS_PANE_LIGHTGREEN 5
E_META_STAINED_GLASS_PANE_MAGENTA 2
E_META_STAINED_GLASS_PANE_ORANGE 1
E_META_STAINED_GLASS_PANE_PINK 6
E_META_STAINED_GLASS_PANE_PURPLE 10
E_META_STAINED_GLASS_PANE_RED 14
E_META_STAINED_GLASS_PANE_WHITE 0
E_META_STAINED_GLASS_PANE_YELLOW 4
E_META_STAINED_GLASS_PINK 6
E_META_STAINED_GLASS_PURPLE 10
E_META_STAINED_GLASS_RED 14
E_META_STAINED_GLASS_WHITE 0
E_META_STAINED_GLASS_YELLOW 4
E_META_STONE_ANDESITE 5
E_META_STONE_BRICK_CRACKED 2
E_META_STONE_BRICK_MOSSY 1
E_META_STONE_BRICK_NORMAL 0
E_META_STONE_BRICK_ORNAMENT 3
E_META_STONE_DIORITE 3
E_META_STONE_GRANITE 1
E_META_STONE_POLISHED_ANDESITE 6
E_META_STONE_POLISHED_DIORITE 4
E_META_STONE_POLISHED_GRANITE 2
E_META_STONE_SLAB_BRICK 4
E_META_STONE_SLAB_COBBLESTONE 3
E_META_STONE_SLAB_NETHER_BRICK 6
E_META_STONE_SLAB_PLANKS 2
E_META_STONE_SLAB_QUARTZ 7
E_META_STONE_SLAB_SANDSTONE 1
E_META_STONE_SLAB_STONE 0
E_META_STONE_SLAB_STONE_BRICK 5
E_META_STONE_STONE 0
E_META_TALL_GRASS_BIOME 3
E_META_TALL_GRASS_DEAD_SHRUB 0
E_META_TALL_GRASS_FERN 2
E_META_TALL_GRASS_GRASS 1
E_META_TORCH_EAST 1
E_META_TORCH_FLOOR 5
E_META_TORCH_NORTH 4
E_META_TORCH_SOUTH 3
E_META_TORCH_WEST 2
E_META_TORCH_XM 1
E_META_TORCH_XP 2
E_META_TORCH_ZM 3
E_META_TORCH_ZP 4
E_META_TRACKS_X 1
E_META_TRACKS_Z 0
E_META_WOODEN_DOUBLE_SLAB_ACACIA 4
E_META_WOODEN_DOUBLE_SLAB_BIRCH 2
E_META_WOODEN_DOUBLE_SLAB_DARK_OAK 5
E_META_WOODEN_DOUBLE_SLAB_JUNGLE 3
E_META_WOODEN_DOUBLE_SLAB_OAK 0
E_META_WOODEN_DOUBLE_SLAB_SPRUCE 1
E_META_WOODEN_SLAB_ACACIA 4
E_META_WOODEN_SLAB_BIRCH 2
E_META_WOODEN_SLAB_DARK_OAK 5
E_META_WOODEN_SLAB_JUNGLE 3
E_META_WOODEN_SLAB_OAK 0
E_META_WOODEN_SLAB_SPRUCE 1
E_META_WOODEN_SLAB_UPSIDE_DOWN 8
E_META_WOOL_BLACK 15
E_META_WOOL_BLUE 11
E_META_WOOL_BROWN 12
E_META_WOOL_CYAN 9
E_META_WOOL_GRAY 7
E_META_WOOL_GREEN 13
E_META_WOOL_LIGHTBLUE 3
E_META_WOOL_LIGHTGRAY 8
E_META_WOOL_LIGHTGREEN 5
E_META_WOOL_MAGENTA 2
E_META_WOOL_ORANGE 1
E_META_WOOL_PINK 6
E_META_WOOL_PURPLE 10
E_META_WOOL_RED 14
E_META_WOOL_WHITE 0
E_META_WOOL_YELLOW 4


These constants are used to signalize various interactions that the user can do with the UI windows. The server translates the protocol events into these constants. Note that there is a global ClickActionToString() function that can translate these constants into their textual representation.

NameValueNotes
caCtrlDropKey 15 Drop a full stack
caDblClick 29 Double click action
caDropKey 14 Drop a single item
caLeftClick 0 Left click on a slot
caLeftClickOutside 16 Left click outside of inventory
caLeftClickOutsideHoldNothing 18 Left click outside inventory holding nothing
caLeftPaintBegin 20 Begining of left click paint drag action
caLeftPaintEnd 26 End of left click paint drag action
caLeftPaintProgress 23 Add slot for left click paint drag action
caMiddleClick 13 Middle click, only valid for creative players
caMiddlePaintBegin 22 Begining of middle click paint drag action, only valid for creative players
caMiddlePaintEnd 28 End of middle click paint drag action, only valid for creative players
caMiddlePaintProgress 25 Add slot for middle click paint drag action, only valid for creative players
caNumber1 4 Number key 1
caNumber2 5 Number key 2
caNumber3 6 Number key 3
caNumber4 7 Number key 4
caNumber5 8 Number key 5
caNumber6 9 Number key 6
caNumber7 10 Number key 7
caNumber8 11 Number key 8
caNumber9 12 Number key 9
caRightClick 1 Right click on a slot
caRightClickOutside 17 Right click outside of inventory
caRightClickOutsideHoldNothing 19 Right click outside inventory holding nothing
caRightPaintBegin 21 Begining of right click paint drag action
caRightPaintEnd 27 End of right click paint drag action
caRightPaintProgress 24 Add slot for right click paint drag action
caShiftLeftClick 2 Shift + left click on a slot
caShiftRightClick 3 Shift + right click on a slot
caUnknown 255 Unknown click action


NameValueNotes
SKULL_TYPE_CREEPER 4 A creeper skull
SKULL_TYPE_DRAGON 5 A dragon skull
SKULL_TYPE_PLAYER 3 A player skull
SKULL_TYPE_SKELETON 0 A skeleton skull
SKULL_TYPE_WITHER 1 A wither skull
SKULL_TYPE_ZOMBIE 2 A zombie skull


These constants represent dimension of a world. In Cuberite, the dimension is only reflected in the world's overall tint - overworld gets sky-like colors and dark shades, the nether gets reddish haze and the end gets dark haze. World generator is not directly affected by the dimension, same as fluid simulators; those only default to the expected values if not set specifically otherwise in the world.ini file.

NameValueNotes
dimEnd 1
dimNether -1
dimNotSet 255
dimOverworld 0


These constants are used for specifying the cause of damage to entities. They are used in the TakeDamageInfo structure, as well as in cEntity's damage-related API functions.

NameValueNotes
dtAdmin 17 Damage applied by an admin command
dtArrow 1 Damage received by being attacked by a projectile, possibly from a mob
dtArrowAttack 1 Damage received by being attacked by a projectile, possibly from a mob
dtAttack 0 Damage recieved by being attacked by a mob
dtBurning 12 Damage from being on fire
dtCacti 7 Damage from contact with a cactus block
dtCactus 7 Damage from contact with a cactus block
dtCactusContact 7 Damage from contact with a cactus block
dtCactuses 7 Damage from contact with a cactus block
dtDrown 4 Damage received by drowning in water / lava
dtDrowning 4 Damage received by drowning in water / lava
dtEnderPearl 16 Damage received by throwing an ender pearl and being teleported by it
dtEntityAttack 0 Damage recieved by being attacked by a mob
dtEnvironment 19 Damage dealt to mobs from environment: enderman in rain, snow golem in desert
dtExplosion 18 Damage applied by an explosion
dtFall 3 Damage from falling down. Dealt when hitting the ground
dtFalling 3 Damage from falling down. Dealt when hitting the ground
dtFireContact 13 Damage received by standing inside a fire block
dtHunger 6 Damage received from hunger
dtInFire 13 Damage received by standing inside a fire block
dtInVoid 14 Damage received by falling into the Void (Y < 0)
dtLava 9 Damage received by a contact with a lava block
dtLavaContact 9 Damage received by a contact with a lava block
dtLightning 2 Damage from being hit by a lightning strike
dtMagma 8 Damage from contact with a magma block
dtMagmaContact 8 Damage from contact with a magma block
dtMob 0 Damage received by being attacked by a mob
dtMobAttack 0 Damage received by being attacked by a mob
dtOnFire 12 Damage from being on fire
dtPawnAttack 0 Damage received by being attacked by a mob
dtPlugin 17 Damage applied by an admin command
dtPoison 10 Damage applied by the poison effect
dtPoisoning 10 Damage applied by the poison effect
dtPotionOfHarming 15 Damage applied by the potion of harming
dtProjectile 1 Damage received by being attacked by a projectile, possibly from a mob
dtRangedAttack 1 Damage received by being attacked by a projectile, possibly from a mob
dtStarvation 6 Damage received from hunger
dtStarving 6 Damage received from hunger
dtSuffocating 5 Damage from suffocating inside a block
dtSuffocation 5 Damage from suffocating inside a block
dtWither 11 Damage from the wither effect
dtWithering 11 Damage from the wither effect


The following constants are used for the gamemode - survival, creative or adventure. Use the gmXXX constants, the eGameMode_ constants are deprecated and will be removed from the API.

NameValueNotes
eGameMode_Adventure 2
eGameMode_Creative 1
eGameMode_NotSet -1
eGameMode_Spectator 3
eGameMode_Survival 0
gmAdventure 2
gmCreative 1
gmMax 4
gmMin 0
gmNotSet -1
gmSpectator 3
gmSurvival 0


These constants represent the biomes that the server understands. Note that there is a global StringToBiome() function that can convert a string into one of these constants.

NameValueNotes
biBeach 16
biBirchForest 27
biBirchForestHills 28
biBirchForestHillsM 156
biBirchForestM 155
biColdBeach 26
biColdTaiga 30
biColdTaigaHills 31
biColdTaigaM 158
biDeepOcean 24
biDesert 2
biDesertHills 17
biDesertM 130
biEnd 9
biExtremeHills 3
biExtremeHillsEdge 20
biExtremeHillsM 131
biExtremeHillsPlus 34
biExtremeHillsPlusM 162
biFirstBiome 0
biFirstVariantBiome 129
biFlowerForest 132
biForest 4
biForestHills 18
biFrozenOcean 10
biFrozenRiver 11
biHell 8
biIceMountains 13
biIcePlains 12
biIcePlainsSpikes 140
biInvalidBiome -1
biJungle 21
biJungleEdge 23
biJungleEdgeM 151
biJungleHills 22
biJungleM 149
biMaxBiome 39
biMaxVariantBiome 167
biMegaSpruceTaiga 160
biMegaSpruceTaigaHills 161
biMegaTaiga 32
biMegaTaigaHills 33
biMesa 37
biMesaBryce 165
biMesaPlateau 39
biMesaPlateauF 38
biMesaPlateauFM 166
biMesaPlateauM 167
biMushroomIsland 14
biMushroomShore 15
biNether 8
biNumBiomes 40
biNumVariantBiomes 168
biOcean 0
biPlains 1
biRiver 7
biRoofedForest 29
biRoofedForestM 157
biSavanna 35
biSavannaM 163
biSavannaPlateau 36
biSavannaPlateauM 164
biSky 9
biStoneBeach 25
biSunflowerPlains 129
biSwampland 6
biSwamplandM 134
biTaiga 5
biTaigaHills 19
biTaigaM 133
biTundra 12
biVariant 128


These constants are used for block types. They correspond directly with MineCraft's data values for blocks.

NameValueNotes
E_BLOCK_ACACIA_DOOR 196 The blocktype for acacia door
E_BLOCK_ACACIA_FENCE 192 The blocktype for acacia fence
E_BLOCK_ACACIA_FENCE_GATE 187 The blocktype for acacia fence gate
E_BLOCK_ACACIA_WOOD_STAIRS 163 The blocktype for acacia wood stairs
E_BLOCK_ACTIVATOR_RAIL 157 The blocktype for activator rail
E_BLOCK_ACTIVE_COMPARATOR 150 The blocktype for active comparator
E_BLOCK_AIR 0 The blocktype for air
E_BLOCK_ANVIL 145 The blocktype for anvil
E_BLOCK_ANVIL_HIGH_DAMAGE 8 The blocktype for anvil high damage
E_BLOCK_ANVIL_LOW_DAMAGE 4 The blocktype for anvil low damage
E_BLOCK_ANVIL_NO_DAMAGE 0 The blocktype for anvil no damage
E_BLOCK_ANVIL_X 1 The blocktype for anvil x
E_BLOCK_ANVIL_Z 0 The blocktype for anvil z
E_BLOCK_BARRIER 166 The blocktype for barrier
E_BLOCK_BEACON 138 The blocktype for beacon
E_BLOCK_BED 26 The blocktype for bed
E_BLOCK_BEDROCK 7 The blocktype for bedrock
E_BLOCK_BED_BED_HEAD 8 The blocktype for bed bed head
E_BLOCK_BED_OCCUPIED 4 The blocktype for bed occupied
E_BLOCK_BED_XM 1 The blocktype for bed xm
E_BLOCK_BED_XP 3 The blocktype for bed xp
E_BLOCK_BED_ZM 2 The blocktype for bed zm
E_BLOCK_BED_ZP 0 The blocktype for bed zp
E_BLOCK_BEETROOTS 207 The blocktype for beetroots
E_BLOCK_BIG_FLOWER 175 The blocktype for big flower
E_BLOCK_BIRCH_DOOR 194 The blocktype for birch door
E_BLOCK_BIRCH_FENCE 189 The blocktype for birch fence
E_BLOCK_BIRCH_FENCE_GATE 184 The blocktype for birch fence gate
E_BLOCK_BIRCH_WOOD_STAIRS 135 The blocktype for birch wood stairs
E_BLOCK_BLACK_GLAZED_TERRACOTTA 250 The blocktype for black terracotta
E_BLOCK_BLACK_SHULKER_BOX 234 The blocktype for black shulker box
E_BLOCK_BLOCK_OF_COAL 173 The blocktype for block of coal
E_BLOCK_BLOCK_OF_REDSTONE 152 The blocktype for block of redstone
E_BLOCK_BLUE_GLAZED_TERRACOTTA 246 The blocktype for blue glazed terracotta
E_BLOCK_BLUE_SHULKER_BOX 230 The blocktype for blue shulker box
E_BLOCK_BONE_BLOCK 216 The blocktype for bone block
E_BLOCK_BOOKCASE 47 The blocktype for bookcase
E_BLOCK_BREWING_STAND 117 The blocktype for brewing stand
E_BLOCK_BRICK 45 The blocktype for brick
E_BLOCK_BRICK_STAIRS 108 The blocktype for brick stairs
E_BLOCK_BROWN_GLAZED_TERRACOTTA 247 The blocktype for brown glazed terracotta
E_BLOCK_BROWN_MUSHROOM 39 The blocktype for brown mushroom
E_BLOCK_BROWN_SHULKER_BOX 231 The blocktype for brown shulker box
E_BLOCK_BURNING_FURNACE 62 The blocktype for burning furnace
E_BLOCK_BUTTON_PRESSED 8 The blocktype for button pressed
E_BLOCK_BUTTON_XM 2 The blocktype for button xm
E_BLOCK_BUTTON_XP 1 The blocktype for button xp
E_BLOCK_BUTTON_YM 0 The blocktype for button ym
E_BLOCK_BUTTON_YP 5 The blocktype for button yp
E_BLOCK_BUTTON_ZM 4 The blocktype for button zm
E_BLOCK_BUTTON_ZP 3 The blocktype for button zp
E_BLOCK_CACTUS 81 The blocktype for cactus
E_BLOCK_CAKE 92 The blocktype for cake
E_BLOCK_CARPET 171 The blocktype for carpet
E_BLOCK_CARROTS 141 The blocktype for carrots
E_BLOCK_CAULDRON 118 The blocktype for cauldron
E_BLOCK_CHAIN_COMMAND_BLOCK 211 The blocktype for chain command block
E_BLOCK_CHEST 54 The blocktype for chest
E_BLOCK_CHORUS_FLOWER 200 The blocktype for chorus flower
E_BLOCK_CHORUS_PLANT 199 The blocktype for chorus plant
E_BLOCK_CLAY 82 The blocktype for clay
E_BLOCK_COAL_ORE 16 The blocktype for coal ore
E_BLOCK_COBBLESTONE 4 The blocktype for cobblestone
E_BLOCK_COBBLESTONE_STAIRS 67 The blocktype for cobblestone stairs
E_BLOCK_COBBLESTONE_WALL 139 The blocktype for cobblestone wall
E_BLOCK_COBWEB 30 The blocktype for cobweb
E_BLOCK_COCOA_POD 127 The blocktype for cocoa pod
E_BLOCK_COMMAND_BLOCK 137 The blocktype for command block
E_BLOCK_CONCRETE 251 The blocktype for concrete
E_BLOCK_CONCRETE_POWDER 252 The blocktype for concrete powder
E_BLOCK_CRAFTING_TABLE 58 The blocktype for crafting table
E_BLOCK_CROPS 59 The blocktype for crops
E_BLOCK_CYAN_GLAZED_TERRACOTTA 244 The blocktype for cyan glazed terracotta
E_BLOCK_CYAN_SHULKER_BOX 228 The blocktype for cyan shulker box
E_BLOCK_DANDELION 37 The blocktype for dandelion
E_BLOCK_DARK_OAK_DOOR 197 The blocktype for dark oak door
E_BLOCK_DARK_OAK_FENCE 191 The blocktype for dark oak fence
E_BLOCK_DARK_OAK_FENCE_GATE 186 The blocktype for dark oak fence gate
E_BLOCK_DARK_OAK_WOOD_STAIRS 164 The blocktype for dark oak wood stairs
E_BLOCK_DAYLIGHT_SENSOR 151 The blocktype for daylight sensor
E_BLOCK_DEAD_BUSH 32 The blocktype for dead bush
E_BLOCK_DETECTOR_RAIL 28 The blocktype for detector rail
E_BLOCK_DIAMOND_BLOCK 57 The blocktype for diamond block
E_BLOCK_DIAMOND_ORE 56 The blocktype for diamond ore
E_BLOCK_DIRT 3 The blocktype for dirt
E_BLOCK_DISPENSER 23 The blocktype for dispenser
E_BLOCK_DOUBLE_RED_SANDSTONE_SLAB 181 The blocktype for double red sandstone slab
E_BLOCK_DOUBLE_STONE_SLAB 43 The blocktype for double stone slab
E_BLOCK_DOUBLE_WOODEN_SLAB 125 The blocktype for double wooden slab
E_BLOCK_DRAGON_EGG 122 The blocktype for dragon egg
E_BLOCK_DROPPER 158 The blocktype for dropper
E_BLOCK_EMERALD_BLOCK 133 The blocktype for emerald block
E_BLOCK_EMERALD_ORE 129 The blocktype for emerald ore
E_BLOCK_ENCHANTMENT_TABLE 116 The blocktype for enchantment table
E_BLOCK_ENDER_CHEST 130 The blocktype for ender chest
E_BLOCK_END_BRICKS 206 The blocktype for end bricks
E_BLOCK_END_GATEWAY 209 The blocktype for end gateway
E_BLOCK_END_PORTAL 119 The blocktype for end portal
E_BLOCK_END_PORTAL_FRAME 120 The blocktype for end portal frame
E_BLOCK_END_ROD 198 The blocktype for end rod
E_BLOCK_END_STONE 121 The blocktype for end stone
E_BLOCK_FARMLAND 60 The blocktype for farmland
E_BLOCK_FENCE 85 The blocktype for fence
E_BLOCK_FENCE_GATE 107 The blocktype for fence gate
E_BLOCK_FIRE 51 The blocktype for fire
E_BLOCK_FLOWER 38 The blocktype for flower
E_BLOCK_FLOWER_POT 140 The blocktype for flower pot
E_BLOCK_FROSTED_ICE 212 The blocktype for frosted ice
E_BLOCK_FURNACE 61 The blocktype for furnace
E_BLOCK_GLASS 20 The blocktype for glass
E_BLOCK_GLASS_PANE 102 The blocktype for glass pane
E_BLOCK_GLOWSTONE 89 The blocktype for glowstone
E_BLOCK_GOLD_BLOCK 41 The blocktype for gold block
E_BLOCK_GOLD_ORE 14 The blocktype for gold ore
E_BLOCK_GRASS 2 The blocktype for grass
E_BLOCK_GRASS_PATH 208 The blocktype for grass path
E_BLOCK_GRAVEL 13 The blocktype for gravel
E_BLOCK_GRAY_GLAZED_TERRACOTTA 242 The blocktype for gray glazed terracotta
E_BLOCK_GRAY_SHULKER_BOX 226 The blocktype for gray shulker box
E_BLOCK_GREEN_GLAZED_TERRACOTTA 248 The blocktype for green glazed terracotta
E_BLOCK_GREEN_SHULKER_BOX 232 The blocktype for green shulker box
E_BLOCK_HARDENED_CLAY 172 The blocktype for hardened clay
E_BLOCK_HAY_BALE 170 The blocktype for hay bale
E_BLOCK_HEAD 144 The blocktype for head
E_BLOCK_HEAVY_WEIGHTED_PRESSURE_PLATE 148 The blocktype for heavy weighted pressure plate
E_BLOCK_HOPPER 154 The blocktype for hopper
E_BLOCK_HUGE_BROWN_MUSHROOM 99 The blocktype for huge brown mushroom
E_BLOCK_HUGE_RED_MUSHROOM 100 The blocktype for huge red mushroom
E_BLOCK_ICE 79 The blocktype for ice
E_BLOCK_INACTIVE_COMPARATOR 149 The blocktype for inactive comparator
E_BLOCK_INVERTED_DAYLIGHT_SENSOR 178 The blocktype for inverted daylight sensor
E_BLOCK_IRON_BARS 101 The blocktype for iron bars
E_BLOCK_IRON_BLOCK 42 The blocktype for iron block
E_BLOCK_IRON_DOOR 71 The blocktype for iron door
E_BLOCK_IRON_ORE 15 The blocktype for iron ore
E_BLOCK_IRON_TRAPDOOR 167 The blocktype for iron trapdoor
E_BLOCK_JACK_O_LANTERN 91 The blocktype for jack o lantern
E_BLOCK_JUKEBOX 84 The blocktype for jukebox
E_BLOCK_JUNGLE_DOOR 195 The blocktype for jungle door
E_BLOCK_JUNGLE_FENCE 190 The blocktype for jungle fence
E_BLOCK_JUNGLE_FENCE_GATE 185 The blocktype for jungle fence gate
E_BLOCK_JUNGLE_WOOD_STAIRS 136 The blocktype for jungle wood stairs
E_BLOCK_LADDER 65 The blocktype for ladder
E_BLOCK_LAPIS_BLOCK 22 The blocktype for lapis block
E_BLOCK_LAPIS_ORE 21 The blocktype for lapis ore
E_BLOCK_LAVA 10 The blocktype for lava
E_BLOCK_LEAVES 18 The blocktype for leaves
E_BLOCK_LEVER 69 The blocktype for lever
E_BLOCK_LIGHT_BLUE_GLAZED_TERRACOTTA 238 The blocktype for light blue glazed terracotta
E_BLOCK_LIGHT_BLUE_SHULKER_BOX 222 The blocktype for light blue shulker box
E_BLOCK_LIGHT_GRAY_GLAZED_TERRACOTTA 243 The blocktype for light gray glazed terracotta
E_BLOCK_LIGHT_GRAY_SHULKER_BOX 227 The blocktype for light gray shulker box
E_BLOCK_LIGHT_WEIGHTED_PRESSURE_PLATE 147 The blocktype for light weighted pressure plate
E_BLOCK_LILY_PAD 111 The blocktype for lily pad
E_BLOCK_LIME_GLAZED_TERRACOTTA 240 The blocktype for lime glazed terracotta
E_BLOCK_LIME_SHULKER_BOX 224 The blocktype for lime shulker box
E_BLOCK_LIT_FURNACE 62 The blocktype for lit furnace
E_BLOCK_LOG 17 The blocktype for log
E_BLOCK_MAGENTA_GLAZED_TERRACOTTA 237 The blocktype for magenta glazed terracotta
E_BLOCK_MAGENTA_SHULKER_BOX 221 The blocktype for magenta shulker box
E_BLOCK_MAGMA 213 The blocktype for magma
E_BLOCK_MAX_TYPE_ID 252 The blocktype for max type id
E_BLOCK_MELON 103 The blocktype for melon
E_BLOCK_MELON_STEM 105 The blocktype for melon stem
E_BLOCK_MINECART_TRACKS 66 The blocktype for minecart tracks
E_BLOCK_MOB_SPAWNER 52 The blocktype for mob spawner
E_BLOCK_MOSSY_COBBLESTONE 48 The blocktype for mossy cobblestone
E_BLOCK_MYCELIUM 110 The blocktype for mycelium
E_BLOCK_NETHERRACK 87 The blocktype for netherrack
E_BLOCK_NETHER_BRICK 112 The blocktype for nether brick
E_BLOCK_NETHER_BRICK_FENCE 113 The blocktype for nether brick fence
E_BLOCK_NETHER_BRICK_STAIRS 114 The blocktype for nether brick stairs
E_BLOCK_NETHER_PORTAL 90 The blocktype for nether portal
E_BLOCK_NETHER_QUARTZ_ORE 153 The blocktype for nether quartz ore
E_BLOCK_NETHER_WART 115 The blocktype for nether wart
E_BLOCK_NETHER_WART_BLOCK 214 The blocktype for nether wart block
E_BLOCK_NEW_LEAVES 161 The blocktype for new leaves
E_BLOCK_NEW_LOG 162 The blocktype for new log
E_BLOCK_NOTE_BLOCK 25 The blocktype for note block
E_BLOCK_NUMBER_OF_TYPES 253 The blocktype for number of types
E_BLOCK_OAK_DOOR 64 The blocktype for oak door
E_BLOCK_OAK_FENCE_GATE 107 The blocktype for oak fence gate
E_BLOCK_OAK_WOOD_STAIRS 53 The blocktype for oak wood stairs
E_BLOCK_OBSERVER 218 The blocktype for observer
E_BLOCK_OBSIDIAN 49 The blocktype for obsidian
E_BLOCK_ORANGE_GLAZED_TERRACOTTA 236 The blocktype for orange glazed terracota
E_BLOCK_ORANGE_SHULKER_BOX 220 The blocktype for orange shulker box
E_BLOCK_PACKED_ICE 174 The blocktype for packed ice
E_BLOCK_PINK_GLAZED_TERRACOTTA 241 The blocktype for pink glazed terracotta
E_BLOCK_PINK_SHULKER_BOX 225 The blocktype for pink shulker box
E_BLOCK_PISTON 33 The blocktype for piston
E_BLOCK_PISTON_EXTENSION 34 The blocktype for piston extension
E_BLOCK_PISTON_MOVED_BLOCK 36 The blocktype for piston moved block
E_BLOCK_PLANKS 5 The blocktype for planks
E_BLOCK_POTATOES 142 The blocktype for potatoes
E_BLOCK_POWERED_RAIL 27 The blocktype for powered rail
E_BLOCK_PRISMARINE_BLOCK 168 The blocktype for prismarine block
E_BLOCK_PUMPKIN 86 The blocktype for pumpkin
E_BLOCK_PUMPKIN_STEM 104 The blocktype for pumpkin stem
E_BLOCK_PURPLE_GLAZED_TERRACOTTA 245 The blocktype for purple glazed terracotta
E_BLOCK_PURPLE_SHULKER_BOX 229 The blocktype for purple shulker box
E_BLOCK_PURPUR_BLOCK 201 The blocktype for purpur block
E_BLOCK_PURPUR_DOUBLE_SLAB 204 The blocktype for purpur double slab
E_BLOCK_PURPUR_PILLAR 202 The blocktype for purpur pillar
E_BLOCK_PURPUR_SLAB 205 The blocktype for purpur slab
E_BLOCK_PURPUR_STAIRS 203 The blocktype for purpur stairs
E_BLOCK_QUARTZ_BLOCK 155 The blocktype for quartz block
E_BLOCK_QUARTZ_STAIRS 156 The blocktype for quartz stairs
E_BLOCK_RAIL 66 The blocktype for rail
E_BLOCK_REDSTONE_LAMP_OFF 123 The blocktype for redstone lamp off
E_BLOCK_REDSTONE_LAMP_ON 124 The blocktype for redstone lamp on
E_BLOCK_REDSTONE_ORE 73 The blocktype for redstone ore
E_BLOCK_REDSTONE_ORE_GLOWING 74 The blocktype for redstone ore glowing
E_BLOCK_REDSTONE_REPEATER_OFF 93 The blocktype for redstone repeater off
E_BLOCK_REDSTONE_REPEATER_ON 94 The blocktype for redstone repeater on
E_BLOCK_REDSTONE_TORCH_OFF 75 The blocktype for redstone torch off
E_BLOCK_REDSTONE_TORCH_ON 76 The blocktype for redstone torch on
E_BLOCK_REDSTONE_WIRE 55 The blocktype for redstone wire
E_BLOCK_RED_GLAZED_TERRACOTTA 249 The blocktype for red glazed terracotta
E_BLOCK_RED_MUSHROOM 40 The blocktype for red mushroom
E_BLOCK_RED_NETHER_BRICK 215 The blocktype for red nether brick
E_BLOCK_RED_ROSE 38 The blocktype for red rose
E_BLOCK_RED_SANDSTONE 179 The blocktype for red sandstone
E_BLOCK_RED_SANDSTONE_SLAB 182 The blocktype for red sandstone slab
E_BLOCK_RED_SANDSTONE_STAIRS 180 The blocktype for red sandstone stairs
E_BLOCK_RED_SHULKER_BOX 233 The blocktype for red shulker box
E_BLOCK_REEDS 83 The blocktype for reeds
E_BLOCK_REPEATING_COMMAND_BLOCK 210 The blocktype for repeating command block
E_BLOCK_SAND 12 The blocktype for sand
E_BLOCK_SANDSTONE 24 The blocktype for sandstone
E_BLOCK_SANDSTONE_STAIRS 128 The blocktype for sandstone stairs
E_BLOCK_SAPLING 6 The blocktype for sapling
E_BLOCK_SEA_LANTERN 169 The blocktype for sea lantern
E_BLOCK_SIGN_POST 63 The blocktype for sign post
E_BLOCK_SILVERFISH_EGG 97 The blocktype for silverfish egg
E_BLOCK_SLIME_BLOCK 165 The blocktype for slime block
E_BLOCK_SNOW 78 The blocktype for snow
E_BLOCK_SNOW_BLOCK 80 The blocktype for snow block
E_BLOCK_SOULSAND 88 The blocktype for soulsand
E_BLOCK_SPONGE 19 The blocktype for sponge
E_BLOCK_SPRUCE_DOOR 193 The blocktype for spruce door
E_BLOCK_SPRUCE_FENCE 188 The blocktype for spruce fence
E_BLOCK_SPRUCE_FENCE_GATE 183 The blocktype for spruce fence gate
E_BLOCK_SPRUCE_WOOD_STAIRS 134 The blocktype for spruce wood stairs
E_BLOCK_STAINED_CLAY 159 The blocktype for stained clay
E_BLOCK_STAINED_GLASS 95 The blocktype for stained glass
E_BLOCK_STAINED_GLASS_PANE 160 The blocktype for stained glass pane
E_BLOCK_STAIRS_UPSIDE_DOWN 4 The blocktype for stairs upside down
E_BLOCK_STAIRS_XM 1 The blocktype for stairs xm
E_BLOCK_STAIRS_XP 0 The blocktype for stairs xp
E_BLOCK_STAIRS_ZM 3 The blocktype for stairs zm
E_BLOCK_STAIRS_ZP 2 The blocktype for stairs zp
E_BLOCK_STANDING_BANNER 176 The blocktype for standing banner
E_BLOCK_STATIONARY_LAVA 11 The blocktype for stationary lava
E_BLOCK_STATIONARY_WATER 9 The blocktype for stationary water
E_BLOCK_STICKY_PISTON 29 The blocktype for sticky piston
E_BLOCK_STONE 1 The blocktype for stone
E_BLOCK_STONE_BRICKS 98 The blocktype for stone bricks
E_BLOCK_STONE_BRICK_STAIRS 109 The blocktype for stone brick stairs
E_BLOCK_STONE_BUTTON 77 The blocktype for stone button
E_BLOCK_STONE_PRESSURE_PLATE 70 The blocktype for stone pressure plate
E_BLOCK_STONE_SLAB 44 The blocktype for stone slab
E_BLOCK_STRUCTURE_BLOCK 255 The blocktype for structure block
E_BLOCK_STRUCTURE_VOID 217 The blocktype for structure void
E_BLOCK_SUGARCANE 83 The blocktype for sugarcane
E_BLOCK_TALL_GRASS 31 The blocktype for tall grass
E_BLOCK_TERRACOTTA 159 The blocktype for terracotta (synonym for E_BLOCK_STAINED_CLAY)
E_BLOCK_TNT 46 The blocktype for tnt
E_BLOCK_TORCH 50 The blocktype for torch
E_BLOCK_TRAPDOOR 96 The blocktype for trapdoor
E_BLOCK_TRAPPED_CHEST 146 The blocktype for trapped chest
E_BLOCK_TRIPWIRE 132 The blocktype for tripwire
E_BLOCK_TRIPWIRE_HOOK 131 The blocktype for tripwire hook
E_BLOCK_UNFINISHED 254 Internal blocktype for unfinished block handlers
E_BLOCK_VINES 106 The blocktype for vines
E_BLOCK_WALLSIGN 68 The blocktype for wallsign
E_BLOCK_WALL_BANNER 177 The blocktype for wall banner
E_BLOCK_WATER 8 The blocktype for water
E_BLOCK_WHEAT 59
E_BLOCK_WHITE_GLAZED_TERRACOTTA 235 The blocktype for white glazed terracotta
E_BLOCK_WHITE_SHULKER_BOX 219 The blocktype for white shulker box
E_BLOCK_WOODEN_BUTTON 143 The blocktype for wooden button
E_BLOCK_WOODEN_DOOR 64 The blocktype for wooden door
E_BLOCK_WOODEN_PRESSURE_PLATE 72 The blocktype for wooden pressure plate
E_BLOCK_WOODEN_SLAB 126 The blocktype for wooden slab
E_BLOCK_WOODEN_STAIRS 53 The blocktype for wooden stairs
E_BLOCK_WOOL 35 The blocktype for wool
E_BLOCK_WORKBENCH 58 The blocktype for workbench
E_BLOCK_YELLOW_FLOWER 37 The blocktype for yellow flower
E_BLOCK_YELLOW_GLAZED_TERRACOTTA 239 The blocktype for yellow glazed terracotta
E_BLOCK_YELLOW_SHULKER_BOX 223 The blocktype for yellow shulker box


These constants are used for item types. They correspond directly with MineCraft's data values for items.

NameValueNotes
E_ITEM_11_DISC 2266 The itemtype for 11 disc
E_ITEM_13_DISC 2256 The itemtype for 13 disc
E_ITEM_ACACIA_BOAT 447 The itemtype for acacia boat
E_ITEM_ACACIA_DOOR 430 The itemtype for acacia door
E_ITEM_ARMOR_STAND 416 The itemtype for armor stand
E_ITEM_ARROW 262 The itemtype for arrow
E_ITEM_BAKED_POTATO 393 The itemtype for baked potato
E_ITEM_BANNER 425 The itemtype for banner
E_ITEM_BED 355 The itemtype for bed
E_ITEM_BEETROOT 434 The itemtype for beetroot
E_ITEM_BEETROOT_SEEDS 435 The itemtype for beetroot seeds
E_ITEM_BEETROOT_SOUP 436 The itemtype for betroot soup
E_ITEM_BIRCH_BOAT 445 The itemtype for birch boat
E_ITEM_BIRCH_DOOR 428 The itemtype for birch door
E_ITEM_BLAZE_POWDER 377 The itemtype for blaze powder
E_ITEM_BLAZE_ROD 369 The itemtype for blaze rod
E_ITEM_BLOCKS_DISC 2258 The itemtype for blocks disc
E_ITEM_BOAT 333 The itemtype for boat
E_ITEM_BONE 352 The itemtype for bone
E_ITEM_BOOK 340 The itemtype for book
E_ITEM_BOOK_AND_QUILL 386 The itemtype for book and quill
E_ITEM_BOTTLE_O_ENCHANTING 384 The itemtype for bottle o enchanting
E_ITEM_BOW 261 The itemtype for bow
E_ITEM_BOWL 281 The itemtype for bowl
E_ITEM_BREAD 297 The itemtype for bread
E_ITEM_BREWING_STAND 379 The itemtype for brewing stand
E_ITEM_BUCKET 325 The itemtype for bucket
E_ITEM_CAKE 354 The itemtype for cake
E_ITEM_CARROT 391 The itemtype for carrot
E_ITEM_CARROT_ON_STICK 398 The itemtype for carrot on stick
E_ITEM_CAT_DISC 2257 The itemtype for cat disc
E_ITEM_CAULDRON 380 The itemtype for cauldron
E_ITEM_CHAIN_BOOTS 305 The itemtype for chain boots
E_ITEM_CHAIN_CHESTPLATE 303 The itemtype for chain chestplate
E_ITEM_CHAIN_HELMET 302 The itemtype for chain helmet
E_ITEM_CHAIN_LEGGINGS 304 The itemtype for chain leggings
E_ITEM_CHEST_MINECART 342 The itemtype for chest minecart
E_ITEM_CHIRP_DISC 2259 The itemtype for chirp disc
E_ITEM_CHORUS_FRUIT 432 The itemtype for chorus fruit
E_ITEM_CLAY 337 The itemtype for clay
E_ITEM_CLAY_BRICK 336 The itemtype for clay brick
E_ITEM_CLOCK 347 The itemtype for clock
E_ITEM_COAL 263 The itemtype for coal
E_ITEM_COMPARATOR 404 The itemtype for comparator
E_ITEM_COMPASS 345 The itemtype for compass
E_ITEM_COOKED_CHICKEN 366 The itemtype for cooked chicken
E_ITEM_COOKED_FISH 350 The itemtype for cooked fish
E_ITEM_COOKED_MUTTON 424 The itemtype for cooked mutton
E_ITEM_COOKED_PORKCHOP 320 The itemtype for cooked porkchop
E_ITEM_COOKED_RABBIT 412 The itemtype for cooked rabbit
357 The itemtype for cookie
E_ITEM_DARK_OAK_BOAT 448 The itemtype for dark oak boat
E_ITEM_DARK_OAK_DOOR 431 The itemtype for dark oak door
E_ITEM_DIAMOND 264 The itemtype for diamond
E_ITEM_DIAMOND_AXE 279 The itemtype for diamond axe
E_ITEM_DIAMOND_BOOTS 313 The itemtype for diamond boots
E_ITEM_DIAMOND_CHESTPLATE 311 The itemtype for diamond chestplate
E_ITEM_DIAMOND_HELMET 310 The itemtype for diamond helmet
E_ITEM_DIAMOND_HOE 293 The itemtype for diamond hoe
E_ITEM_DIAMOND_HORSE_ARMOR 419 The itemtype for diamond horse armor
E_ITEM_DIAMOND_LEGGINGS 312 The itemtype for diamond leggings
E_ITEM_DIAMOND_PICKAXE 278 The itemtype for diamond pickaxe
E_ITEM_DIAMOND_SHOVEL 277 The itemtype for diamond shovel
E_ITEM_DIAMOND_SWORD 276 The itemtype for diamond sword
E_ITEM_DRAGON_BREATH 437 The itemtype for dragon breath
E_ITEM_DYE 351 The itemtype for dye
E_ITEM_EGG 344 The itemtype for egg
E_ITEM_ELYTRA 443 The itemtype for elytra
E_ITEM_EMERALD 388 The itemtype for emerald
E_ITEM_EMPTY -1 The itemtype for empty
E_ITEM_EMPTY_MAP 395 The itemtype for empty map
E_ITEM_ENCHANTED_BOOK 403 The itemtype for enchanted book
E_ITEM_ENDER_PEARL 368 The itemtype for ender pearl
E_ITEM_END_CRYSTAL 426 The itemtype for end crystal
E_ITEM_EYE_OF_ENDER 381 The itemtype for eye of ender
E_ITEM_FAR_DISC 2260 The itemtype for far disc
E_ITEM_FEATHER 288 The itemtype for feather
E_ITEM_FERMENTED_SPIDER_EYE 376 The itemtype for fermented spider eye
E_ITEM_FIREWORK_ROCKET 401 The itemtype for firework rocket
E_ITEM_FIREWORK_STAR 402 The itemtype for firework star
E_ITEM_FIRE_CHARGE 385 The itemtype for fire charge
E_ITEM_FIRST 256 The itemtype for first
E_ITEM_FIRST_DISC 2256 The itemtype for first disc
E_ITEM_FISHING_ROD 346 The itemtype for fishing rod
E_ITEM_FLINT 318 The itemtype for flint
E_ITEM_FLINT_AND_STEEL 259 The itemtype for flint and steel
E_ITEM_FLOWER_POT 390 The itemtype for flower pot
E_ITEM_FURNACE_MINECART 343 The itemtype for furnace minecart
E_ITEM_GHAST_TEAR 370 The itemtype for ghast tear
E_ITEM_GLASS_BOTTLE 374 The itemtype for glass bottle
E_ITEM_GLISTERING_MELON 382 The itemtype for glistering melon
E_ITEM_GLOWSTONE_DUST 348 The itemtype for glowstone dust
E_ITEM_GOLD 266 The itemtype for gold
E_ITEM_GOLDEN_APPLE 322 The itemtype for golden apple
E_ITEM_GOLDEN_CARROT 396 The itemtype for golden carrot
E_ITEM_GOLD_AXE 286 The itemtype for gold axe
E_ITEM_GOLD_BOOTS 317 The itemtype for gold boots
E_ITEM_GOLD_CHESTPLATE 315 The itemtype for gold chestplate
E_ITEM_GOLD_HELMET 314 The itemtype for gold helmet
E_ITEM_GOLD_HOE 294 The itemtype for gold hoe
E_ITEM_GOLD_HORSE_ARMOR 418 The itemtype for gold horse armor
E_ITEM_GOLD_LEGGINGS 316 The itemtype for gold leggings
E_ITEM_GOLD_NUGGET 371 The itemtype for gold nugget
E_ITEM_GOLD_PICKAXE 285 The itemtype for gold pickaxe
E_ITEM_GOLD_SHOVEL 284 The itemtype for gold shovel
E_ITEM_GOLD_SWORD 283 The itemtype for gold sword
E_ITEM_GUNPOWDER 289 The itemtype for gunpowder
E_ITEM_HEAD 397 The itemtype for head
E_ITEM_IRON 265 The itemtype for iron
E_ITEM_IRON_AXE 258 The itemtype for iron axe
E_ITEM_IRON_BOOTS 309 The itemtype for iron boots
E_ITEM_IRON_CHESTPLATE 307 The itemtype for iron chestplate
E_ITEM_IRON_DOOR 330 The itemtype for iron door
E_ITEM_IRON_HELMET 306 The itemtype for iron helmet
E_ITEM_IRON_HOE 292 The itemtype for iron hoe
E_ITEM_IRON_HORSE_ARMOR 417 The itemtype for iron horse armor
E_ITEM_IRON_LEGGINGS 308 The itemtype for iron leggings
E_ITEM_IRON_NUGGET 452 The itemtype for iron nugget
E_ITEM_IRON_PICKAXE 257 The itemtype for iron pickaxe
E_ITEM_IRON_SHOVEL 256 The itemtype for iron shovel
E_ITEM_IRON_SWORD 267 The itemtype for iron sword
E_ITEM_ITEM_FRAME 389 The itemtype for item frame
E_ITEM_JUNGLE_BOAT 446 The itemtype for jungle boat
E_ITEM_JUNGLE_DOOR 429 The itemtype for jungle door
E_ITEM_LAST 2267 The itemtype for last
E_ITEM_LAST_DISC 2267 The itemtype for last disc
E_ITEM_LAST_DISC_PLUS_ONE 2268 The itemtype for last disc plus one
E_ITEM_LAVA_BUCKET 327 The itemtype for lava bucket
E_ITEM_LEAD 420 The itemtype for lead
E_ITEM_LEASH 420 The itemtype for lead (E_ITEM_LEAD synonym)
E_ITEM_LEATHER 334 The itemtype for leather
E_ITEM_LEATHER_BOOTS 301 The itemtype for leather boots
E_ITEM_LEATHER_CAP 298 The itemtype for leather cap
E_ITEM_LEATHER_PANTS 300 The itemtype for leather pants
E_ITEM_LEATHER_TUNIC 299 The itemtype for leather tunic
E_ITEM_LINGERING_POTION 441 The itemtype for lingering potion
E_ITEM_MAGMA_CREAM 378 The itemtype for magma cream
E_ITEM_MALL_DISC 2261 The itemtype for mall disc
E_ITEM_MAP 358 The itemtype for map
E_ITEM_MAX_CONSECUTIVE_TYPE_ID 452 The itemtype for max consecutive type id
E_ITEM_MELLOHI_DISC 2262 The itemtype for mellohi disc
E_ITEM_MELON_SEEDS 362 The itemtype for melon seeds
E_ITEM_MELON_SLICE 360 The itemtype for melon slice
E_ITEM_MILK 335 The itemtype for milk
E_ITEM_MINECART 328 The itemtype for minecart
E_ITEM_MINECART_WITH_COMMAND_BLOCK 422 The itemtype for minecart with command block
E_ITEM_MINECART_WITH_HOPPER 408 The itemtype for minecart with hopper
E_ITEM_MINECART_WITH_TNT 407 The itemtype for minecart with tnt
E_ITEM_MUSHROOM_SOUP 282 The itemtype for mushroom soup
E_ITEM_NAME_TAG 421 The itemtype for name tag
E_ITEM_NETHER_BRICK 405 The itemtype for nether brick
E_ITEM_NETHER_QUARTZ 406 The itemtype for nether quartz
E_ITEM_NETHER_STAR 399 The itemtype for nether star
E_ITEM_NETHER_WART 372 The itemtype for nether wart
E_ITEM_NUMBER_OF_CONSECUTIVE_TYPES 453 The itemtype for number of consecutive types
E_ITEM_PAINTING 321 The itemtype for painting
E_ITEM_PAPER 339 The itemtype for paper
E_ITEM_POISONOUS_POTATO 394 The itemtype for poisonous potato
E_ITEM_POPPED_CHORUS_FRUIT 433 The itemtype for popped chorus fruit
E_ITEM_POTATO 392 The itemtype for potato
E_ITEM_POTION 373 The itemtype for potion
E_ITEM_POTIONS 373 The itemtype for potion (obsolete, use E_ITEM_POTION instead)
E_ITEM_PRISMARINE_CRYSTALS 410 The itemtype for prismarine crystals
E_ITEM_PRISMARINE_SHARD 409 The itemtype for prismarine shard
E_ITEM_PUMPKIN_PIE 400 The itemtype for pumpkin pie
E_ITEM_PUMPKIN_SEEDS 361 The itemtype for pumpkin seeds
E_ITEM_RABBITS_FOOT 414 The itemtype for rabbits foot
E_ITEM_RABBIT_HIDE 415 The itemtype for rabbit hide
E_ITEM_RABBIT_STEW 413 The itemtype for rabbit stew
E_ITEM_RAW_BEEF 363 The itemtype for raw beef
E_ITEM_RAW_CHICKEN 365 The itemtype for raw chicken
E_ITEM_RAW_FISH 349 The itemtype for raw fish
E_ITEM_RAW_MUTTON 423 The itemtype for raw mutton
E_ITEM_RAW_PORKCHOP 319 The itemtype for raw porkchop
E_ITEM_RAW_RABBIT 411 The itemtype for raw rabbit
E_ITEM_REDSTONE_DUST 331 The itemtype for redstone dust
E_ITEM_REDSTONE_REPEATER 356 The itemtype for redstone repeater
E_ITEM_RED_APPLE 260 The itemtype for red apple
E_ITEM_ROTTEN_FLESH 367 The itemtype for rotten flesh
E_ITEM_SADDLE 329 The itemtype for saddle
E_ITEM_SEEDS 295 The itemtype for seeds
E_ITEM_SHEARS 359 The itemtype for shears
E_ITEM_SHIELD 442 The itemtype for shield
E_ITEM_SHULKER_SHELL 450 The itemtype for shulker shell
E_ITEM_SIGN 323 The itemtype for sign
E_ITEM_SLIMEBALL 341 The itemtype for slimeball
E_ITEM_SNOWBALL 332 The itemtype for snowball
E_ITEM_SPAWN_EGG 383 The itemtype for spawn egg
E_ITEM_SPECTRAL_ARROW 439 The itemtype for spectral arrow
E_ITEM_SPIDER_EYE 375 The itemtype for spider eye
E_ITEM_SPLASH_POTION 438 The itemtype for splash potion
E_ITEM_SPRUCE_BOAT 444 The itemtype for spruce boat
E_ITEM_SPRUCE_DOOR 427 The itemtype for spruce door
E_ITEM_STAL_DISC 2263 The itemtype for stal disc
E_ITEM_STEAK 364 The itemtype for steak
E_ITEM_STICK 280 The itemtype for stick
E_ITEM_STONE_AXE 275 The itemtype for stone axe
E_ITEM_STONE_HOE 291 The itemtype for stone hoe
E_ITEM_STONE_PICKAXE 274 The itemtype for stone pickaxe
E_ITEM_STONE_SHOVEL 273 The itemtype for stone shovel
E_ITEM_STONE_SWORD 272 The itemtype for stone sword
E_ITEM_STRAD_DISC 2264 The itemtype for strad disc
E_ITEM_STRING 287 The itemtype for string
E_ITEM_SUGAR 353 The itemtype for sugar
E_ITEM_SUGARCANE 338 The itemtype for sugarcane
E_ITEM_SUGAR_CANE 338 The itemtype for sugar cane
E_ITEM_TIPPED_ARROW 440 The itemtype for tipped arrow
E_ITEM_TOTEM_OF_UNDYING 449 The itemtype for totem of undying
E_ITEM_WAIT_DISC 2267 The itemtype for wait disc
E_ITEM_WARD_DISC 2265 The itemtype for ward disc
E_ITEM_WATER_BUCKET 326 The itemtype for water bucket
E_ITEM_WHEAT 296 The itemtype for wheat
E_ITEM_WOODEN_AXE 271 The itemtype for wooden axe
E_ITEM_WOODEN_DOOR 324 The itemtype for wooden door
E_ITEM_WOODEN_HOE 290 The itemtype for wooden hoe
E_ITEM_WOODEN_PICKAXE 270 The itemtype for wooden pickaxe
E_ITEM_WOODEN_SHOVEL 269 The itemtype for wooden shovel
E_ITEM_WOODEN_SWORD 268 The itemtype for wooden sword
E_ITEM_WRITTEN_BOOK 387 The itemtype for written book


These constants are used to differentiate the various sources of spreads, such as grass growing. They are used in the HOOK_BLOCK_SPREAD hook.

NameValueNotes
ssFireSpread 0
ssGrassSpread 1
ssMushroomSpread 2
ssMycelSpread 3
ssVineSpread 4


The following constants define the block types that are propelled outwards after an explosion.

NameValueNotes
slAll 2
slGravityAffectedOnly 1
slNone 0


These constants are used together with messaging functions and classes, they specify the type of message being sent. The server can be configured to modify the message text (add prefixes) based on the message's type.

NameValueNotes
mtCustom 0 Send raw data without any processing
mtDeath 6 Denotes death of player
mtError 1 Something could not be done (i.e. command not executed due to insufficient privilege)
mtFail 1 Something could not be done (i.e. command not executed due to insufficient privilege)
mtFailure 1 Something could not be done (i.e. command not executed due to insufficient privilege)
mtFatal 5 Something catastrophic occured (i.e. plugin crash)
mtInfo 2 Informational message (i.e. command usage)
mtInformation 2 Informational message (i.e. command usage)
mtJoin 8 A player has joined the server
mtLeave 9 A player has left the server
mtMaxPlusOne 10 The first invalid type, used for checking on LuaAPI boundaries
mtPM 7 Player to player messaging identifier
mtPrivateMessage 7 Player to player messaging identifier
mtSuccess 3 Something executed successfully
mtWarning 4 Something concerning (i.e. reload) is about to happen


These constants are used to describe individual faces of the block. They are used when the client is interacting with a block in the HOOK_PLAYER_BREAKING_BLOCK, HOOK_PLAYER_BROKEN_BLOCK, HOOK_PLAYER_LEFT_CLICK, HOOK_PLAYER_PLACED_BLOCK, HOOK_PLAYER_PLACING_BLOCK, HOOK_PLAYER_RIGHT_CLICK, HOOK_PLAYER_USED_BLOCK, HOOK_PLAYER_USED_ITEM, HOOK_PLAYER_USING_BLOCK, and HOOK_PLAYER_USING_ITEM hooks, or when the cLineBlockTracer hits a block, etc.

NameValueNotes
BLOCK_FACE_BOTTOM 0 Please use BLOCK_FACE_YM instead. Interacting with the bottom face of the block.
BLOCK_FACE_EAST 5 Please use BLOCK_FACE_XM instead. Interacting with the eastern face of the block.
BLOCK_FACE_MAX 5 Used for range checking - highest legal value for an eBlockFace
BLOCK_FACE_MIN -1 Used for range checking - lowest legal value for an eBlockFace
BLOCK_FACE_NONE -1 Interacting with no block face - swinging the item in the air
BLOCK_FACE_NORTH 2 Please use BLOCK_FACE_ZM instead. Interacting with the northern face of the block.
BLOCK_FACE_SOUTH 3 Please use BLOCK_FACE_ZP instead. Interacting with the southern face of the block.
BLOCK_FACE_TOP 1 Please use BLOCK_FACE_YP instead. Interacting with the top face of the block.
BLOCK_FACE_WEST 4 Please use BLOCK_FACE_XP instead. Interacting with the western face of the block.
BLOCK_FACE_XM 4 Interacting with the X- face of the block
BLOCK_FACE_XP 5 Interacting with the X+ face of the block
BLOCK_FACE_YM 0 Interacting with the Y- face of the block
BLOCK_FACE_YP 1 Interacting with the Y+ face of the block
BLOCK_FACE_ZM 2 Interacting with the Z- face of the block
BLOCK_FACE_ZP 3 Interacting with the Z+ face of the block


These constants are used to describe digging statuses, but in reality cover several more cases. They are used with HOOK_PLAYER_LEFT_CLICK.

NameValueNotes
DIG_STATUS_CANCELLED 1 The player has let go of the mine block key before finishing mining the block
DIG_STATUS_DROP_HELD 4 The player has dropped a single item using the Drop Item key (default: Q)
DIG_STATUS_DROP_STACK 3 The player has dropped a full stack of items using the Drop Item key (default: Q) while holding down a specific modifier key (in windows, control)
DIG_STATUS_FINISHED 2 The player thinks that it has finished mining a block
DIG_STATUS_SHOOT_EAT 5 The player has finished shooting a bow or finished eating
DIG_STATUS_STARTED 0 The player has started digging
DIG_STATUS_SWAP_ITEM_IN_HAND 6 The player has swapped their held item with the item in their offhand slot (1.9)


The following constants are used for distinguishing between the individual mob types:

NameValueNotes
mtBat 0
mtBlaze 1
mtCaveSpider 3
mtChicken 4
mtCow 6
mtCreeper 7
mtEnderDragon 12
mtEnderman 13
mtGhast 17
mtGiant 18
mtGuardian 19
mtHorse 20
mtInvalidType -1 Invalid monster type. Returned when monster type not recognized
mtIronGolem 24
mtMagmaCube 26
mtMooshroom 27
mtOcelot 29
mtPig 33
mtPiglin 34
mtPiglinBrute 35
mtRabbit 39
mtSheep 42
mtSilverfish 44
mtSkeleton 45
mtSkeletonHorse 46
mtSlime 47
mtSnowGolem 48
mtSpider 49
mtSquid 50
mtVillager 57
mtWitch 60
mtWither 61
mtWitherSkeleton 62
mtWolf 63
mtZombie 65
mtZombieHorse 66
mtZombiePigman 67
mtZombieVillager 68


NameValueNotes
SKULL_ROTATION_EAST 4
SKULL_ROTATION_EAST_NORTH_EAST 3
SKULL_ROTATION_EAST_SOUTH_EAST 5
SKULL_ROTATION_NORTH 0
SKULL_ROTATION_NORTH_EAST 2
SKULL_ROTATION_NORTH_NORTH_EAST 1
SKULL_ROTATION_NORTH_NORTH_WEST 15
SKULL_ROTATION_NORTH_WEST 14
SKULL_ROTATION_SOUTH 8
SKULL_ROTATION_SOUTH_EAST 6
SKULL_ROTATION_SOUTH_SOUTH_EAST 7
SKULL_ROTATION_SOUTH_SOUTH_WEST 9
SKULL_ROTATION_SOUTH_WEST 10
SKULL_ROTATION_WEST 12
SKULL_ROTATION_WEST_NORTH_WEST 13
SKULL_ROTATION_WEST_SOUTH_WEST 11



Functions

NameParametersReturn valueNotes
AddFaceDirection
BlockXnumber
BlockYnumber
BlockZnumber
BlockFaceeBlockFace
IsInverseboolean
BlockXnumber
BlockYnumber
BlockZnumber
OBSOLETE, use the vector version instead.
AddFaceDirection
PositionVector3i
BlockFaceeBlockFace
InvertDirectionboolean
Vector3i
By default, returns the coordinates adjacent to the specified block through the specified face. If inverted, returns the coordinates adjacent to the opposite face.
Base64Decode
Inputstring
string
Decodes a Base64-encoded string into the raw data.
Base64Encode
Inputstring
string
Encodes a string into Base64.
BiomeToString
BiomeEMCSBiome
string
Translates biome enum into biome string. Returns empty string on failure (unknown biome).
BlockFaceToString
eBlockFaceeBlockFace
string
Returns the string representation of the eBlockFace constant. Uses the axis-direction-based names, such as BLOCK_FACE_XP.
BlockStringToType
BlockTypeStringstring
BLOCKTYPEnumber
Returns the block type parsed from the given string
Clamp
Numbernumber
Minnumber
Maxnumber
number
Clamp the number to the specified range.
ClickActionToString
ClickActioneClickAction
string
Returns a string description of the ClickAction enumerated value
DamageTypeToString
DamageTypeeDamageType
string
Converts the DamageType to a string representation
DimensionToString
DimensioneDimension
string
Converts an eDimension to a string value. Returns Overworld on failure.
EscapeString
Inputstring
string
Returns a copy of the string with all quotes and backslashes escaped by a backslash
GetIniItemSet
IniFilecIniFile
SectionNamestring
KeyNamestring
DefaultValuestring
cItem
Returns the item that has been read from the specified INI file value. If the value is not present in the INI file, the DefaultValue is stored in the file and parsed as the result. Returns empty item if the value cannot be parsed.
GetSnowStartHeight
BiomeEMCSBiome
number
Returns the height at which snow will start falling in the Biome. Check functions IsBiomeCold and IsBiomeVeryCold for more informations.
GetTime
number
Returns the current OS time, as a unix time stamp (number of seconds since Jan 1, 1970)
IsBiomeCold
BiomeEMCSBiome
boolean
Returns true if the biome is cold (has snow and snowfall at higher elevations but not at regular heights). Doesn't report Very Cold biomes, use IsBiomeVeryCold() for those.
IsBiomeMesa
BiomeEMCSBiome
boolean
Returns true if the biome is a type of Mesa (mutations of the Mesa biome).
IsBiomeMountain
BiomeEMCSBiome
boolean
Returns true if the biome is mountainous (mutations of the extreme hills biome).
IsBiomeNoDownfall
BiomeEMCSBiome
boolean
Returns true if the biome is 'dry', that is, there is no precipitation during rains and storms.
IsBiomeOcean
BiomeEMCSBiome
boolean
Returns true if the biome is an ocean biome.
IsBiomeVeryCold
BiomeEMCSBiome
boolean
Returns true if the biome is very cold (has snow on ground everywhere, turns top water to ice, has snowfall instead of rain everywhere). Doesn't report mildly cold biomes (where it snows above certain elevation), use IsBiomeCold() for those.
IsValidBlock
BlockTypenumber
boolean
Returns true if BlockType is a known block type
IsValidItem
ItemTypenumber
boolean
Returns true if ItemType is a known item type
ItemToFullString
cItemcItem
string
Returns the string representation of the item, in the format 'ItemTypeText:ItemDamage * Count'
ItemToString
cItemcItem
string
Returns the string representation of the item type
ItemTypeToString
ItemTypenumber
string
Returns the string representation of ItemType
LOG
MessagecCompositeChat
SuppressPluginNamePrefixboolean
Logs the cCompositeChat's human-readable text into the server console, using a severity defined by the CompositeChat's MessageType.
LOG
Messagestring
SuppressPluginNamePrefixboolean
Logs a text into the server console and logfile using 'normal' severity (gray text).
LOGERROR
Messagestring
SuppressPluginNamePrefixboolean
Logs a text into the server console and logfile using 'error' severity (black text on red background).
LOGINFO
Messagestring
SuppressPluginNamePrefixboolean
Logs a text into the server console and logfile using 'info' severity (yellow text).
LOGWARN
Messagestring
SuppressPluginNamePrefixboolean
Logs a text into the server console and logfile using 'warning' severity (red text); OBSOLETE, use LOGWARNING() instead.
LOGWARNING
Messagestring
SuppressPluginNamePrefixboolean
Logs a text into the server console and logfile using 'warning' severity (red text).
MirrorBlockFaceY
eBlockFaceeBlockFace
eBlockFace
Returns the eBlockFace that corresponds to the given eBlockFace after mirroring it around the Y axis (or rotating 180 degrees around it).
NoCaseCompare
Value1string
Value2string
number
Case-insensitive string comparison; returns 0 if the strings are the same, -1 if Value1 is smaller and 1 if Value2 is smaller
NormalizeAngleDegrees
AngleDegreesnumber
AngleDegreesnumber
Returns the angle, wrapped into the [-180, +180) range.
ReplaceString
full-stringstring
to-be-replaced-stringstring
to-replace-stringstring
string
Replaces *each* occurence of to-be-replaced-string in full-string with to-replace-string
ReverseBlockFace
BlockFaceeBlockFace
eBlockFace
Returns the reversed eBlockFace.
RotateBlockFaceCCW
eBlockFaceeBlockFace
eBlockFace
Returns the eBlockFace that corresponds to the given eBlockFace after rotating it around the Y axis 90 degrees counter-clockwise.
RotateBlockFaceCW
eBlockFaceeBlockFace
eBlockFace
Returns the eBlockFace that corresponds to the given eBlockFace after rotating it around the Y axis 90 degrees clockwise.
StringSplit
Inputstring
SeperatorsStringstring
table
Seperates string into multiple by splitting every time any of the characters in SeperatorsString is encountered. Returns and array-table of strings.
StringSplitAndTrim
Inputstring
SeperatorsStringstring
table
Seperates string into multiple by splitting every time any of the characters in SeperatorsString is encountered. Each of the separate strings is trimmed (whitespace removed from the beginning and end of the string). Returns an array-table of strings.
StringSplitWithQuotes
Inputstring
SeperatorsStringstring
table
Seperates string into multiple by splitting every time any of the characters in SeperatorsString is encountered. Whitespace wrapped with single or double quotes will be ignored. Returns an array-table of strings.
StringToBiome
Inputstring
BiomeTypeEMCSBiome
Converts a string representation to a BiomeType enumerated value. Returns biInvalidBiome if the input is not a recognized biome.
StringToDamageType
Inputstring
DamageTypeeDamageType
Converts a string representation to a DamageType enumerated value. Returns -1 if the inupt is not a recognized damage type.
StringToDimension
Inputstring
DimensioneDimension
Converts a string representation to a eDimension enumerated value. Returns dimNotSet if the input is not a recognized dimension.
StringToItem
StringToParsestring
DestItemcItem
boolean
Parses the item specification in the given string and sets it into DestItem; returns true if successful
StringToMobType
MobTypeStringstring
MobTypeeMonsterType
(DEPRECATED!) Please use cMonster:StringToMobType(). Converts a string representation to an eMonsterType enumerated value
StripColorCodes
Inputstring
string
Removes all control codes used by MC for colors and styles
TrimString
Inputstring
string
Removes whitespace at both ends of the string
dofile (undocumented)
error (undocumented)
gcinfo (undocumented)
getfenv (undocumented)
getmetatable (undocumented)
ipairs (undocumented)
load (undocumented)
loadfile (undocumented)
loadstring (undocumented)
md5
Datastring
string
OBSOLETE, use the cCryptoHash functions instead.
Converts a string to a raw binary md5 hash.
module (undocumented)
next (undocumented)
pairs (undocumented)
pcall (undocumented)
(undocumented)
rawequal (undocumented)
rawget (undocumented)
rawset (undocumented)
require (undocumented)
select (undocumented)
setfenv (undocumented)
setmetatable (undocumented)
tonumber (undocumented)
tostring (undocumented)
type (undocumented)
unpack (undocumented)
Generated by APIDump on 2022-10-28 17:00:47, Build ID Unknown, Commit approx: 21ec3ebe26bff24b5fc6d96f86a441c9c9628247