Treebl's mod menu is pretty cool. It's called CarbonPE.
I'm not that stupid. Everyone In the MCPE Section of MCFourms knows CarbonPE. I just hate having to be connected to WI-FI to use CarbonPE. Because I see you are new to the fourms please read all the rules here.
Gear icon on top right -> My settings -> signature
BlockLauncher 1.2.7 Beta 3 brings even more methods to the ModPEScript implementation:
Currently supported:
function print(text);
function getPlayerX();
function getPlayerY();
function getPlayerZ();
function getPlayerEnt();
function getLevel();
function setPosition(ent,x,y,z);
function explode(x, y, z, radius);
function rideAnimal(player, target);
function getCarriedItem();
function preventDefault();
function setTile(x,y,z,type);
Not tested/partially working:
function setVelX(ent, amount);
function setVelY(ent, amount);
function setVelZ(ent, amount);
function addItemInventory(id, amount);
addItemInventory is working.
PD: Check the pull request of you repo
- RunCommand(command) - uses system command (for Android, don't know if iOS can do such things)
No. A THOUSAND TIMES NO! Mods are already fairly dangerous; can you imagine if you give them the power to wipe your documents by running a command?
In fact, the scripting environment in BlockLauncher will be locked down using the Java language's access controls to discourage making malicious mods. This means:
- No internet access from a script (unless a malicious script tries very hard)
- No file access from a script (ditto)
- (any others?)
I'm not that stupid. Everyone In the MCPE Section of MCFourms knows CarbonPE. I just hate having to be connected to WI-FI to use CarbonPE. Because I see you are new to the fourms please read all the rules here.
Geez, sorry if I offended you. And I read pretty much 90% of the rules, its the first thing I see in settings.
Also, could someone please help me? CarbonPE won't work either now, and the scripts just won't load. I see everyone talking about an alert; however I am not receiving that. And I see the old version of CarbonPE now too so I think all the libraries got mixed up (I had them all saved in /var/mobile/Media/Downloads/). Do I need to reinstall everything from the beginning?
Treebl, do you have any ideas on dealing with extensions to the language?
Should they just be added normally, or should they be prefixed? (bl_getBlock() or something similar)
Should there be an option to toggle the extended functions?
Treebl, do you have any ideas on dealing with extensions to the language?
Should they just be added normally, or should they be prefixed? (bl_getBlock() or something similar)
Should there be an option to toggle the extended functions?
I think it would be best to prefix them, that way we avoid confusion and I think it would also help with cross compatibility preservation if we had a toggle for it as well =)
The Meaning of Life, the Universe, and Everything.
Location:
ocala
Join Date:
7/28/2013
Posts:
55
Member Details
Thanks for this treebl ur the best I have been watch u progress ur mods for a while when I saw this I made account right away and I have already made my first mod it's a explosion mod u get sticks an wood an click the wood with the sticks and u can blow up ur map if u don't like it
THIS IS AWESOME !!
(But common the User Interface could be nicer :3 )
Here is a little question though:
Couldn't you implement a function that gets called every frame so we can add stuff whenever we want :3
Like for example having a chicken always floating on top of your head cause you are running this line every frame:
More suggestions!
- as I said, GetTile(x,y,z) function
- ChatMessage(msg) - called if msg written in chat, and prevents that message from being sent
- RunCommand(command) - uses system command (for Android, don't know if iOS can do such things)
- SetTime(time) - sets in-game time
- GetHealth(ent) and SetHealth(ent)
- SetPlayerArmor(helmet, chest, pants, shoes)
These are all things we can get from the Mob as fare as i'm concerned:
Mob::getMaxHealth
Mob::getCarriedItem
Mob::getUseItemDuration
Mob::getWalkingSpeedModifier
Mob::getAmbientSoundInterval
Mob::getSoundVolume
Mob::getAmbientSound
Mob::getDeathLoot
MOb::getMaxHeadXRot
Mob::getAttackAnim
Mob::getPos
Mob::getLookAngle
Mob::getMaxSpawnClusterSize
Mob::getEntityData
Mob::getDamageAfterArmorAbsorb (i suppose thats the time you have to wait until you can hit a mob again)
Mob::getArmorValue
Mob::getDeathSound
Mob::getHurtSound
Mob::getItemInHandIcon
Mob::getViewVector
Mob::getWalkingSpeedModifier
Mob::getAttackTarget
treebl I love this! It works perfect on my kindle fire! Also i love 500ise's script. It is literally real-time world edit with an iron hoe! But i think this modPe should support damage values.
Rollback Post to RevisionRollBack
Back to modding! Follow me on Twitter @byteandahalf
why doesnt this work?
function useItem(x,y,z,itemId,blockId)
{
if(itemId==274)//If your item is a cobblestone sword
{
addItemInventory(57,5);//Add 5 Diamond blocks to your inventory.
print("Hello World");
}
}^^ Also when I try to load it on the site it doesnt appear
addItemInventory is working.
PD: Check the pull request of you repo
Just call addItemInventory multiple times
Thanks; will check.
Treebl is designing the API; I just follow. I think his plan is to make an API similar to the Pi edition API, so it would probably be included.
No. A THOUSAND TIMES NO! Mods are already fairly dangerous; can you imagine if you give them the power to wipe your documents by running a command?
In fact, the scripting environment in BlockLauncher will be locked down using the Java language's access controls to discourage making malicious mods. This means:
- No internet access from a script (unless a malicious script tries very hard)
- No file access from a script (ditto)
- (any others?)
Thanks!
Geez, sorry if I offended you. And I read pretty much 90% of the rules, its the first thing I see in settings.
Also, could someone please help me? CarbonPE won't work either now, and the scripts just won't load. I see everyone talking about an alert; however I am not receiving that. And I see the old version of CarbonPE now too so I think all the libraries got mixed up (I had them all saved in /var/mobile/Media/Downloads/). Do I need to reinstall everything from the beginning?
Treebl, do you have any ideas on dealing with extensions to the language?
Should they just be added normally, or should they be prefixed? (bl_getBlock() or something similar)
Should there be an option to toggle the extended functions?
im amazon kindle fire 2
Follow @Darth377Apps
Please check out my Twitter account!
I have been working on a few games!
Give me ALL THE INTERNETS!
Java/C/C++ dev, server owner and hacker extraordinare
I think it would be best to prefix them, that way we avoid confusion and I think it would also help with cross compatibility preservation if we had a toggle for it as well =)
(But common the User Interface could be nicer :3 )
Here is a little question though:
Couldn't you implement a function that gets called every frame so we can add stuff whenever we want :3
Like for example having a chicken always floating on top of your head cause you are running this line every frame:
(selectedMob is the entity of the mob you selected firstly..)
Question 2:
Is there a way to add objective C code to the patch for example:
BUG
preventDefault at the function useItem doesn't prevent a hoe from hoeing :/
Proud to be a Miner...
These are all things we can get from the Mob as fare as i'm concerned:
Mob::getMaxHealth
Mob::getCarriedItem
Mob::getUseItemDuration
Mob::getWalkingSpeedModifier
Mob::getAmbientSoundInterval
Mob::getSoundVolume
Mob::getAmbientSound
Mob::getDeathLoot
MOb::getMaxHeadXRot
Mob::getAttackAnim
Mob::getPos
Mob::getLookAngle
Mob::getMaxSpawnClusterSize
Mob::getEntityData
Mob::getDamageAfterArmorAbsorb (i suppose thats the time you have to wait until you can hit a mob again)
Mob::getArmorValue
Mob::getDeathSound
Mob::getHurtSound
Mob::getItemInHandIcon
Mob::getViewVector
Mob::getWalkingSpeedModifier
Mob::getAttackTarget
So everything you said should be possible
Proud to be a Miner...
Back to modding! Follow me on Twitter @byteandahalf
function useItem(x,y,z,itemId,blockId)
{
if(itemId==274)//If your item is a cobblestone sword
{
addItemInventory(57,5);//Add 5 Diamond blocks to your inventory.
print("Hello World");
}
}^^ Also when I try to load it on the site it doesnt appear
also I Realised that it wont save