Here are some scripts I made for Treebl's ModPE Script Runtime.
These are tested on BlockLauncher's implementation of ModPE Script on a Nexus 7 (2012).
Installation:
To use the scripts on this page, you must first install an implementation of ModPE Script.
On iOS, Treebl maintains the official version of ModPE for jailbroken iOS devices.
On Android, BlockLauncher can run ModPE scripts in the latest beta.
Then, to import a script into ModPE:
- Open the link on this page
- Copy everything from the page into Treebl's ModPE script editor at http://betamodpe2.cf.gy/user/
- There will be an ID on the top right corner, for example,
"Your Script ID is: 1111".
- On your mobile device, open your ModPE implementation and import that ID.
- To do so in BlockLauncher:
-- tap the wrench icon, then Launcher Options, then Manage Scripts.
-- In the scripts list, select Import, choose Treebl's Official Repo, and type in your ID.
-- Hit OK and the script should load.
Alternately, if you are using BlockLauncher:
- Long-press the link on your mobile device, and select "Copy link address"
- Open BlockLauncher, tap the wrench icon, then Launcher Options, then Manage Scripts
- In the scripts list, select Import, choose Web Address
- Paste the address in the text box
- Hit OK and the script should load.
Feel free to study and modify these scripts! These are licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported license, which means that, if you use part of my script, you should credit me, and allow other people to learn and modify your scripts too! That way, everybody learns.
Feel free to redistribute these scripts. As long as attribution is given (a thread link would be awesome), you can redistribute them according to the above license.
Timer
A lot of people have been asking me to add some sort of timer support to ModPE, so instead I wrote this library, which supports setTimeout and setInterval. Note that they take the number of ticks to wait for, not the number of milliseconds, like browser JavaScript.
commands in the demo script:
/timer repeat 20
prints a message every 20 ticks (1 second)
/timer once 100
prints a message after 5 seconds
/timer cancel
cancels the current timer
/countdown 5
starts a countdown from 5.
Records your position, and lets you play back your journey by teleporting you repeatedly.
Commands:
/record
/stop
/play
/playent <- run this, then punch a mob to have it playback your route
/playsp <- spawn a zombie pigman, then have it playback your route
/load <name>
/save <name>
New to 1.1:
/delay <number> Wait # of ticks before starting playback.
/seqadd <command> Add one more command to the sequence list
/seqrun run the sequence list
/seqsave save your sequence
/seqload load the sequence of commands
/seqbegin begin to record a sequence of commands.
/pauseatstart <true|false> whether to pause the playback when it starts. defaults to true.
To start playback, tap an iron sword on any block. To pause, do the same.
Iron swords can also insta-kill any mob to make cleanup easier.
About sequences:
A sequence is a list of commands to be run together.
type
Build a vehicle out of blocks, then tap it with an iron hoe to pilot it. tap with the hoe on a block to steer in that direction. To stop, tap with any other item. Do not use on a world you like! If the vehicle collides with other blocks, the other blocks disappear.
The script searches for blocks in a 10x10x10 cuboid around the point that you tapped. Some naturally occurring blocks are filtered out.
Tap with a diamond pickaxe to clear a 11x11x11 area around the clicked block. Any resources in the block (anything not air, stone, dirt, or grass) is added to your inventory.
Requires ModPE 0.3/BlockLauncher 1.2.8.
Tap to ride a mob. (Pigs work the best.) Hold Gold Ore to start moving in the direction where you are looking.
This requires you to be in creative mode.
Requires ModPE Script 0.3/BlockLauncher 1.2.7 Beta 8 or above.
- First, use an iron hoe to tap the first block you want to select
- Then, tap it on the second block
- Tap the ground holding the block that you want replaced, or tap the block you want replaced while holding any item.
- Finally, tap the ground with the block that you want to replace blocks with. If you want air, tap the ground with any item (such as a sword).
- Blocks will be replaced between the two points.
Requires ModPE Script 0.2/BlockLauncher 1.2.7 Beta 8 or above.
Copies cuboid regions.
- First, use an iron hoe to tap the first block you want to select
- Then, tap it on the second block
- The area is copied
- To paste, right-click the ground with seeds in hand
Creates cuboids from two selection points.
- First, use an iron hoe to tap the first block you want to select
- Then, tap it on the second block
- Finally, tap the ground with the block that you want the cuboid to be made of. If you want air, tap the ground with any item (such as a sword).
- A cuboid will be created with your selected material between the two points.
I've also started a shared ModPE script repository - if you have a script, why not contribute it there?
To use the scripts on this page, you must first install an implementation of ModPE Script.
On Android, BlockLauncher can run ModPE scripts in the latest beta.
if you are using BlockLauncher:
- Long-press the link on your mobile device, and select "Copy link address"
- Open BlockLauncher, tap the wrench icon, then Launcher Options, then Manage Scripts
- In the scripts list, select Import, choose Web Address
- Paste the address in the text box
- Hit OK and the script should load.
OK, um... Try upgrading to latest beta, then, if that still doesn't work, long-click, select Save Link, and then import the saved file?
The latest beta one works, but whenever I try to patch a second script, it says there are a maximum of three allowed in demo. I am only patching a second one. I do have BlockLauncher Pro, but that doesn't work, since you haven't added scripts to it yet. BTW, I wanted to say that this script is awesome. It allows building projects on a much larger, and less time consuming scale. Maybe I'll try to write my own script tomorrow.
The latest beta one works, but whenever I try to patch a second script, it says there are a maximum of three allowed in demo. I am only patching a second one. I do have BlockLauncher Pro, but that doesn't work, since you haven't added scripts to it yet. BTW, I wanted to say that this script is awesome. It allows building projects on a much larger, and less time consuming scale. Maybe I'll try to write my own script tomorrow.
I haven'y updated that error message yet, but for scripts in Free, yolo. (You only load one). Pro will not be limited.
Click one upper side and the opposite lower side, tap the growing to copy, move elsewhere, then tap the ground to [email protected] Why don't YOU make mod scripts?Yahoo it was really funny having half of my adventure map cut in half. '_____'
My plugin skills are not exactly... well.... lets just say they're not perfect. After hours of work, I have no success with anything worth keeping. Maybe I'll get better at it...
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThese are tested on BlockLauncher's implementation of ModPE Script on a Nexus 7 (2012).
Installation:
To use the scripts on this page, you must first install an implementation of ModPE Script.
On iOS, Treebl maintains the official version of ModPE for jailbroken iOS devices.
On Android, BlockLauncher can run ModPE scripts in the latest beta.
Then, to import a script into ModPE:
- Open the link on this page
- Copy everything from the page into Treebl's ModPE script editor at http://betamodpe2.cf.gy/user/
- There will be an ID on the top right corner, for example,
"Your Script ID is: 1111".
- On your mobile device, open your ModPE implementation and import that ID.
- To do so in BlockLauncher:
-- tap the wrench icon, then Launcher Options, then Manage Scripts.
-- In the scripts list, select Import, choose Treebl's Official Repo, and type in your ID.
-- Hit OK and the script should load.
Alternately, if you are using BlockLauncher:
- Long-press the link on your mobile device, and select "Copy link address"
- Open BlockLauncher, tap the wrench icon, then Launcher Options, then Manage Scripts
- In the scripts list, select Import, choose Web Address
- Paste the address in the text box
- Hit OK and the script should load.
Feel free to study and modify these scripts! These are licensed under
the Creative Commons Attribution-ShareAlike 3.0 Unported license, which means that, if you use part of my script, you should credit me, and allow other people to learn and modify your scripts too! That way, everybody learns.
Feel free to redistribute these scripts. As long as attribution is given (a thread link would be awesome), you can redistribute them according to the above license.
Scripts
Sit on Stairs: Tap on stair blocks to sit on them.
This is a clone of a Bukkit plugin - thanks for the inspiration.
Download: https://raw.github.com/zhuowei/ModPEScripts/master/500ise_sit.js
Stained clay
Tap clay with any dye to create stained clay.
Requires BlockLauncher 1.5.5.
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_dyedclay.js
Paintbrush
basically a test to see whether I can figure out how to use code written by other people
/paintbrush
then hold a block. The block you are looking at will be turned to the block you are holding (up to a radius of 64 blocks)
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_paintbrush.js
Credits to https://github.com/Overv/MineAssemble/blob/master/reference/src/mineassemble.c , http://gamedev.stackexchange.com/questions/47362/cast-ray-to-select-block-in-voxel-game , and http://stackoverflow.com/questions/1568568/how-to-convert-euler-angles-to-directional-vector
Timer
A lot of people have been asking me to add some sort of timer support to ModPE, so instead I wrote this library, which supports setTimeout and setInterval. Note that they take the number of ticks to wait for, not the number of milliseconds, like browser JavaScript.
commands in the demo script:
prints a message every 20 ticks (1 second)
/timer once 100
prints a message after 5 seconds
/timer cancel
cancels the current timer
/countdown 5
starts a countdown from 5.
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_timer.js
This script is released into the public domain: you can do whatever you want with it.
Recorder
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_recorder.js
Records your position, and lets you play back your journey by teleporting you repeatedly.
Commands:
/record
/stop
/play
/playent <- run this, then punch a mob to have it playback your route
/playsp <- spawn a zombie pigman, then have it playback your route
/load <name>
/save <name>
New to 1.1:
/delay <number> Wait # of ticks before starting playback.
/seqadd <command> Add one more command to the sequence list
/seqrun run the sequence list
/seqsave save your sequence
/seqload load the sequence of commands
/seqbegin begin to record a sequence of commands.
/pauseatstart <true|false> whether to pause the playback when it starts. defaults to true.
To start playback, tap an iron sword on any block. To pause, do the same.
Iron swords can also insta-kill any mob to make cleanup easier.
About sequences:
A sequence is a list of commands to be run together.
type
into chat, and then type /seqrun, and the effect is like running all these commands at once.
Vehicles
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_vehicles.js
Tested on BlockLauncher 1.4.5. Not tested on iOS.
Build a vehicle out of blocks, then tap it with an iron hoe to pilot it. tap with the hoe on a block to steer in that direction. To stop, tap with any other item.
Do not use on a world you like! If the vehicle collides with other blocks, the other blocks disappear.
The script searches for blocks in a 10x10x10 cuboid around the point that you tapped. Some naturally occurring blocks are filtered out.
Super pickaxe
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_superpickaxe.js
Tap with a diamond pickaxe to clear a 11x11x11 area around the clicked block. Any resources in the block (anything not air, stone, dirt, or grass) is added to your inventory.
Move between floors
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_movebetweenfloors.js
Requires ModPE Script 0.2/BlockLauncher 1.2.7 Beta 8 or above.
Tap on any block holding cake to teleport up one floor in a building. Tap on any block holding an egg to go down one floor.
Fly on mobs
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_pigflight.js
Requires ModPE 0.3/BlockLauncher 1.2.8.
Tap to ride a mob. (Pigs work the best.) Hold Gold Ore to start moving in the direction where you are looking.
This requires you to be in creative mode.
Mirrored build
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_mirrored.js
Requires ModPE Script 0.3/BlockLauncher 1.2.7 Beta 9.
Mirrors your builds, like http://triddin.tumblr.com/post/5638140033/theres-a-new-command-on-wom-realms-its-a-bit , across the X and the Z axis, so when you place one block, 3 more are placed.
- Tap the ground with melon seeds to choose the point to mirror around
- Place a block
- Tap the ground with melon seeds again to disable
Cuboids: Replace
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_cuboid_replace.js
Requires ModPE Script 0.3/BlockLauncher 1.2.7 Beta 8 or above.
- First, use an iron hoe to tap the first block you want to select
- Then, tap it on the second block
- Tap the ground holding the block that you want replaced, or tap the block you want replaced while holding any item.
- Finally, tap the ground with the block that you want to replace blocks with. If you want air, tap the ground with any item (such as a sword).
- Blocks will be replaced between the two points.
Cuboids: Copy
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_cuboid_copy.js
Requires ModPE Script 0.2/BlockLauncher 1.2.7 Beta 8 or above.
Copies cuboid regions.
- First, use an iron hoe to tap the first block you want to select
- Then, tap it on the second block
- The area is copied
- To paste, right-click the ground with seeds in hand
Cuboids
https://raw.github.com/zhuowei/ModPEScripts/master/500ise_cuboid.js
Creates cuboids from two selection points.
- First, use an iron hoe to tap the first block you want to select
- Then, tap it on the second block
- Finally, tap the ground with the block that you want the cuboid to be made of. If you want air, tap the ground with any item (such as a sword).
- A cuboid will be created with your selected material between the two points.
I've also started a shared ModPE script repository - if you have a script, why not contribute it there?
https://github.com/zhuowei/ModPEScripts
-
View User Profile
-
View Posts
-
Send Message
Retired StaffEdit: I think you posted an incorrect link to Treebl's editor. It should be this http://modpe.cf.gy/modEditor.html
Follow @Darth377Apps
Please check out my Twitter account!

I have been working on a few games!
Give me ALL THE INTERNETS!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIt is in the new beta that I will upload in 3 minutes. Redownload the beta from the link above.
-
View User Profile
-
View Posts
-
Send Message
Curse Premium-
View User Profile
-
View Posts
-
Send Message
Retired StaffSame here.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumOK, um... Try upgrading to latest beta, then, if that still doesn't work, long-click, select Save Link, and then import the saved file?
-
View User Profile
-
View Posts
-
Send Message
Retired StaffThe latest beta one works, but whenever I try to patch a second script, it says there are a maximum of three allowed in demo. I am only patching a second one. I do have BlockLauncher Pro, but that doesn't work, since you haven't added scripts to it yet. BTW, I wanted to say that this script is awesome. It allows building projects on a much larger, and less time consuming scale. Maybe I'll try to write my own script tomorrow.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI haven'y updated that error message yet, but for scripts in Free, yolo. (You only load one). Pro will not be limited.
... What in Gandaulf's name am I smoking?
-
View User Profile
-
View Posts
-
Send Message
Retired StaffIn geometry, a cuboid is a convex polyhedron bounded by six quadrilateral faces, whose polyhedral graph is the same as that of a cube.
A weird bug. I went in one world, and clicked a block.
Then I exited that world and went to a survival world.
Clicked again twice, and BAM. The whole world was chopped in half.
Follow @Darth377Apps
Please check out my Twitter account!

I have been working on a few games!
Give me ALL THE INTERNETS!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Click one upper side and the opposite lower side, tap the growing to copy, move elsewhere, then tap the ground to [email protected] Why don't YOU make mod scripts?Yahoo it was really funny having half of my adventure map cut in half. '_____'
Jk no adventure maps were harmed
Follow @Darth377Apps
Please check out my Twitter account!

I have been working on a few games!
Give me ALL THE INTERNETS!
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
-
View User Profile
-
View Posts
-
Send Message
Retired StaffYeah....
My plugin skills are not exactly... well.... lets just say they're not perfect. After hours of work, I have no success with anything worth keeping. Maybe I'll get better at it...
You can also check them out at my mod repo.
Though i probably will release all my mods also on your repo
Proud to be a Miner...