Skip to main content

Primitives

TypeDescriptionExample
intAn integer from -2^31 to 2^31-17
longAn integer from -2^63 to 2^63-19
doubleA floating point number9.7
booleanEither true or falsetrue
charA character"a"
ObjectAnything6
StringA sequence of characters"Hello, World!"
ExpressionA mathematical expression"2cos(2t)"
UUIDA universally unique identifier"b74413ae-d8a7-4025-8dc7-60ca8b65f979"
EnchantmentAn enchantment of the form "minecraft:id""minecraft:sharpness"
PotionEffectTypeA potion effect type of the form "minecraft:id""minecraft:strength"