HermesBox has a collection of functions to help you with your ModPE Scripts! It also included the function getId() method, which will return a block ID from a block name.
Minecraft Forum does not cooperate with mobile devices very well, so please ignore any size tags in brackets or any of the sort.
Note: Save & Load is still buggy and does not work for sand/gravel. Try a workaround.
Function List:
// Returns a block id from a block name.
// See more info in the script.
getId(block_name);[/size]
[size=small]// Returns the player's coordinates in an array.[/size]
[size=small]getPlayerCoordinates();
// Returns the player's coordinates, rounded down, in an array.
getPlayerCoordinatesRounded();
// Spawns a Nether Reactor at the specified location.
spawnNetherReactor(x, y, z);
// Returns a random coordinate in the world, in an array. UNTESTED
randomCoordinate();
// Returns a random underground coordinate in the world, in an array. UNTESTED
randomUnderGroundCoordinate();
// Returns a random coordinate on the surface of the world, in an array. UNTESTED.
randomSurfaceCoordinate();
// Returns a random number, rounded down. UNTESTED
random(MAXIMUM_NUMBER);
// Ready the world for save data. BUGGY ONLY ONCE ON A WORLD.
readyData();
// Save a block into the data layer. Use recursively. BUGGY
saveData(blockId)
// Returns a block id from the data layer. Use recursively. BUGGY
loadData();[/size]
// Gives the player a stack of something.
giveStack(itemId);
// Gives the player one of something.
giveOneOf(itemId);
[size=small]
Getting Started:
Copy and paste the file to the end of your mod. This physically adds all of the functions to your mod.
Minecraft Forum does not cooperate with mobile devices very well, so please ignore any size tags in brackets or any of the sort.
Note: Save & Load is still buggy and does not work for sand/gravel. Try a workaround.
Function List:
Getting Started:
Download:
Mini Version: (Same Functionality):
http://is.gd/DownloadHermesBoxMinified
Notes:
© 2013 CheesyFriedBacon
Change Log:
0.1.1: Adds Save and Load capabilities.
0.1.2: Finishes getId(), adds giveStack(), giveOneOf().
Join us! #ModPEScripts
"one does not simply hook Creeper::getMaxHealth"
I'm not trying to, it's automatically generated.
"one does not simply hook Creeper::getMaxHealth"
But whats the download for ? ? mvm I'll find out
You download the script, copy the script to your clipboard, then paste at the end of your script.
Done!
I'm also testing saving data on 1.1, so you can save data and load it between sessions.
"one does not simply hook Creeper::getMaxHealth"
I was looking for something thay can u a function list and told you what each thing does !!!
I am secretly a modder, who works only for himself, seldom publishes.
What your looking for is the function list in the OP (Original Post). Find a section that says Function List, then tap show.
@CakeArmyShaderGaming: Yes, I'm planning to minify it to make it smaller.
"one does not simply hook Creeper::getMaxHealth"
I can't now, it's not out
"one does not simply hook Creeper::getMaxHealth"
"one does not simply hook Creeper::getMaxHealth"
Thanks!
"one does not simply hook Creeper::getMaxHealth"