Skip to content

Including textures in ModPE scripts

zhuowei edited this page Jan 24, 2016 · 3 revisions

BlockLauncher supports a simplified version of sliceofcode's MPEP format.

A simplified MPEP package is a renamed .zip file with the extension of .modpkg, and is basically a texture pack with a script included. All features of texture packs are supported, including atlas overriding.

A script can be placed in the script/ folder, and BlockLauncher will load this script. (Adding more than one script in that folder will load both of them, but this is not currently supported)

Download the sample simplified MPEP package: modpkgtest.modpkg.

The contents of the sample package: images/terrain-atlas/log_0.png: texture overriding the oak tree trunk script/main.js: ModPE script (just prints "I'm alive")

Ignored textures

These items can be modified by texture packs only (since scripts have other ways to modify these files that will not cause the script to crash on future versions of MCPE):

  • images/terrain.meta
  • images/items.meta
  • items.json
  • images/terrain-atlas.tga
  • images/terrain-atlas_mip0.tga
  • images/terrain-atlas_mip1.tga
  • images/terrain-atlas_mip2.tga
  • images/terrain-atlas_mip3.tga
  • images/items-opaque.png

If you include them in a modpkg, they will be ignored.

Clone this wiki locally