Namespace: ModPE

ModPE

Static methods for the ModPE API

Example

ModPE.methodName([ arg1[, arg2[, ...argN] ] ]);

Methods

staticModPE.dumpVtable()

staticModPE.getBytesFromTexturePack()

staticModPE.getMinecraftVersion(){string}

return the current game version (e.g., 0.12.2)

Returns:
Type Description
string
  • the game version
Example
var version = ModPE.getMinecraftVersion();
print(version); // "0.12.2"

staticModPE.langEdit()

staticModPE.leaveGame()

staticModPE.log()

staticModPE.openInputStreamFromTexturePack()

staticModPE.overrideTexture()

staticModPE.readData()

staticModPE.removeData()

staticModPE.resetFov()

staticModPE.resetImages()

staticModPE.saveData()

staticModPE.selectLevel()

staticModPE.setCamera()

staticModPE.setFoodItem()

staticModPE.setFov()

staticModPE.setGameSpeed()

staticModPE.setGuiBlocks()

staticModPE.setItem()

staticModPE.setItems()

staticModPE.setTerrain()

staticModPE.showTipMessage()

staticModPE.takeScreenshot()