Using MineTweaker and Vanilla

From Feed The Beast Wiki
Jump to: navigation, search
This page is about using MineTweaker with vanilla Minecraft. For using MineTweaker in general, see How to Use MineTweaker 3.

ZenScript Global Functions[edit | edit source]

Functions Parameters Returns
print(message)  · message: (String) message wished to be printed.
max(a, b)  · a: (int) an int.
 · b: (int) another int.
(int) The larger of the two integers.
min(a, b)  · a: (int) an int.
 · b: (int) another int.
(int) The smaller of the two integers.

ZenScript Classes[edit | edit source]

minetweaker.block.IBlock[edit | edit source]

Functions Parameters Returns
definition() (IBlockDefinition)
meta() (int)
data() (IData)

minetweaker.block.IBlockDefinition[edit | edit source]

Functions Parameters Returns
id() (String)
displayName() (String)

minetweaker.block.IBlockPattern[edit | edit source]

Functions Parameters Returns
blocks() (List<IBlock>)
OPERATOR: CONTAINS  · block: (IBlock) (boolean)
OPERATOR: OR  · pattern: (IBlockPattern) (IBlockPattern)
displayName() (String)

minetweaker.chat.IChatMessage[edit | edit source]

Functions Parameters Returns
OPERATOR: ADD  · other: (IChatMessage) (IChatMessage)

minetweaker.api.IClient[edit | edit source]

Functions Parameters Returns
player() (IPlayer)
language() (String)

minetweaker.container.IContainer[edit | edit source]

Functions Parameters Returns
containerSize() (int)
getStack(i)  · i: (int) (IItemStack)
setStack(i, stack)  · i: (int)
 · stack (IItemStack)

minetweaker.data.IData[edit | edit source]

Functions Parameters Returns
OPERATOR: ADD  · other: (IData) (IData)
OPERATOR: SUB  · other: (IData) (IData)
OPERATOR: MUL  · other: (IData) (IData)
OPERATOR: DIV  · other: (IData) (IData)
OPERATOR: MOD  · other: (IData) (IData)
OPERATOR: AND  · other: (IData) (IData)
OPERATOR: OR  · other: (IData) (IData)
OPERATOR: XOR  · other: (IData) (IData)
OPERATOR: NEG (IData)
OPERATOR: NOT (IData)
asBool() (boolean)
asByte() (byte)
asShort() (short)
asInt() (int)
asLong() (long)
asFloat() (float)
asDouble() (double)
asString() (String)
asList() (List<IData>)
asMap() (Map<String, IData>)
asByteArray() (byte[])
asIntArray() (int[])
OPERATOR: INDEXGET  · i: (int) (IData)
OPERATOR: INDEXSET  · i: (int)
 · value: (IData)
memberGet(name)  · name: (String) (IData)
memberSet(name, data)  · name: (String)
 · data: (IData)
length() (int)
OPERATOR: CONTAINS  · data: (IData) (boolean)
OPERATOR: COMPARE  · data: (IData) (int)
OPERATOR: EQUALS  · data: (IData) (boolean)
immutable() (IData)
update(data)  · data: (IData) (IData)

minetweaker.entity.IEntity[edit | edit source]

Functions Parameters Returns
x() (float)
y() (float)
z() (float)
position() (Position3f)
position(position)  · position: (Position3f)

minetweaker.entity.IEntityDefinition[edit | edit source]

Functions Parameters Returns
id() (String)
name() (String)

minetweaker.entity.IEntityXp[edit | edit source]

Functions Parameters Returns
x() (float)
y() (float)
z() (float)
position() (Position3f)
position(position)  · position: (Position3f)
xp() (float)