Here's a guide for updating your ModPE scripts to work with new versions of ModPE Script Runtime and/or BlockLauncher.
ModPE Scripts are independent of Minecraft versions - when Minecraft updates, it's the launcher author's responsibility to update the launcher to the new version of MCPE, and scripts will continue to run on the new Minecraft version. The only porting you need to do is across ModPE versions.
The ModPE language is still in flux and may change at any time, so scripts will have to be adapted for different versions. In particular, anybody using BlockLauncher-specific methods may find the nonstandard methods removed at any time.
Porting from 0.2 to 0.3:
If you were using BlockLauncher's non-standard bl_tickHook method, update it to the official modTick callback.
function bl_tickHook()
to
function modTick()
Optional:
function useItem(x, y, z, itemId, blockId)
to
function useItem(x, y, z, itemId, blockId, side)
Since 0.3 added the parameter for determining which side of the block is clicked on.
Math classes are now supported on the iOS ModPE implementation, so you can use Math.min, Math.max, and friends.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumModPE Scripts are independent of Minecraft versions - when Minecraft updates, it's the launcher author's responsibility to update the launcher to the new version of MCPE, and scripts will continue to run on the new Minecraft version. The only porting you need to do is across ModPE versions.
The ModPE language is still in flux and may change at any time, so scripts will have to be adapted for different versions. In particular, anybody using BlockLauncher-specific methods may find the nonstandard methods removed at any time.
Porting from 0.2 to 0.3:
If you were using BlockLauncher's non-standard bl_tickHook method, update it to the official modTick callback.
to
Optional:
to
Since 0.3 added the parameter for determining which side of the block is clicked on.
Math classes are now supported on the iOS ModPE implementation, so you can use Math.min, Math.max, and friends.