Another method to load from File or InputStream is net.zhuoweizhang.MCPELauncher.ManageScriptsActivity
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
@500ISE - Recently I have been working on an enchantments mod which has a ProgressBar, XP Orbs and all that, but I have encountered a problem. I want the progress bar to change after the XP orbs from mobs have been picked up, but I don't think this is possible yet. Would you be able to add a new hook called itemAddedToInventory(); ?
@500ISE - Recently I have been working on an enchantments mod which has a ProgressBar, XP Orbs and all that, but I have encountered a problem. I want the progress bar to change after the XP orbs from mobs have been picked up, but I don't think this is possible yet. Would you be able to add a new hook called itemAddedToInventory(); ?
do entityRemovedHook and check if removed entity is dropped item
EDIT: heres the code if you are too lasy
var yourPickedItemId = 341 //the item you want to get detected when picked up
function entityRemovedHook (ent)
{
if (Entity.getEntityTypeId (ent) == 64)
{
var count = 0
var data = 0
for (c = 44; c>=-1; c--)
{
if (Player.getInventorySlot (c) == yourPickedItemId)
{
count += Player.getInventorySlotCount (c)
data = Player.getInventorySlotData (c)
Player.clearInventorySlot (c)
}
}
if (count !== 0)
{
//use variable "count" to see how much of that item player had
clientMessage ("You got " + count + " exp!")
preventDefault ()
}
}
}
I am also making a enchantment mod and i encountered the same problem!
A long time before, when it was still Treebl updating v0.3, I made my third private modscript and I used the inventory space to save experience orbs. Then mobs drop experience orbs (slimeballs) and the player picks them up.
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
A long time before, when it was still Treebl updating v0.3, I made my third private modscript and I used the inventory space to save experience orbs. Then mobs drop experience orbs (slimeballs) and the player picks them up.
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
Wow just noticed you have so many posts these days!
Can anyone help?
These days I trying to make GUI things it says LinearLayout is not a function, but I DID added the token `new`.
new android.widget.LinearLayout(ctx);Also the days when ModPE 0.3 was awesome are also the days when I was not a member.In my signature, there is a link to my GitHub Wiki that has templates of GUI scripts. This includes standard buttons, menus, togglebuttons and checkboxes. I hope it helps you.
Also the days when ModPE 0.3 was awesome are also the days when I was not a member.
In my signature, there is a link to my GitHub Wiki that has templates of GUI scripts. This includes standard buttons, menus, togglebuttons and checkboxes. I hope it helps you.
yes i did `new android.widget.LinearLayout(com.mojang.MainActivity.currentMainActivity.get())` and it said LinearLayout is not a function.
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
Since I kind of teach "wannabe modders" that's a little offensive. Everyone has potential.
You can implement sounds by using SoundPool in a ModPE Script.
Everyone has a beginning stage, but I don't see the benefit in posting a useItem() based mod on the forums. Maybe there's some coolness in it, but I just dont' see it. That's why I waited for ModPE to evolve, before I became a member of the forums.
I don't see how I am being offensive. I am just being honest and saying the truth. Think about it; If you are not told that you suck at something, you will continue to think that you're the best, while you are being outdone. Saying that "Tap ground for 64 diamonds" is a good mod is a lie and will not help the person who made it. It will just encourage the person to not be open-minded when making a ModPE script.
Everyone has a beginning stage, but I don't see the benefit in posting a useItem() based mod on the forums. Maybe there's some coolness in it, but I just dont' see it. That's why I waited for ModPE to evolve, before I became a member of the forums.
I don't see how I am being offensive. I am just being honest and saying the truth. Think about it; If you are not told that you suck at something, you will continue to think that you're the best, while you are being outdone. Saying that "Tap ground for 64 diamonds" is a good mod is a lie and will not help the person who made it. It will just encourage the person to not be open-minded when making a ModPE script.
This is based on your limit of creativity. In those days when there were only 2 hooks, when there weren't even saveData() and readData(), I made my own mod by "hit a mob to drop slimeballs", "tap a crafting table with a slimeball to get a clock", and "tap stone-related blocks with enchanted clock to mine super-fast and with fortune II".
And nowadays with the Java Bridge, you can never underestimate the possibility with a useItem() only mod. Maybe someone is making a mod that generates an Excel XML file logging all your block tapping/placing behaviors.
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
And nowadays with the Java Bridge, you can never underestimate the possibility with a useItem() only mod. Maybe someone is making a mod that generates an Excel XML file logging all your block tapping/placing behaviors.
It's kinda ironic that the first ModPE script I wrote was a Java Bridge mod:
This is based on your limit of creativity. In those days when there were only 2 hooks, when there weren't even saveData() and readData(), I made my own mod by "hit a mob to drop slimeballs", "tap a crafting table with a slimeball to get a clock", and "tap stone-related blocks with enchanted clock to mine super-fast and with fortune II".
And nowadays with the Java Bridge, you can never underestimate the possibility with a useItem() only mod. Maybe someone is making a mod that generates an Excel XML file logging all your block tapping/placing behaviors.
I said "wannabe modders" and arjay_07 said it was offensive. "wannabe" = not yet experienced. I said wannabe's still base their mods on useItem(). Please don't tell me that an inexperienced programmer is going to keep an Excel XML log of each block's behaviour when tapped. It's like comparing a 9 year old that doesn't know what parameters are, to Zhuowei. I can understand what your point of view is, but it is unrealistic in this conversation.
I said "wannabe modders" and arjay_07 said it was offensive. "wannabe" = not yet experienced. I said wannabe's still base their mods on useItem(). Please don't tell me that an inexperienced programmer is going to keep an Excel XML log of each block's behaviour when tapped. It's like comparing a 9 year old that doesn't know what parameters are, to Zhuowei. I can understand what your point of view is, but it is unrealistic in this conversation.
The main problem in this conversation is, being inexperienced doesn't mean disability. Some people can make good scripts even if they are inexperienced with JavaScript. When it was the start of ModPE, I just started learning to program when ModPE came out. But with a good mathematical logic it is very easy to make a good mod like a gun mod even of u r new with mod scripts, as long as I know there is Math class functions and that I know about basic trigonometry.
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
To post a comment, please login or register a new account.
function itemAddedToInventory(id, amount, damage){ if(id==341 && amount==2){ //Execute code } }Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
I am also making a enchantment mod and i encountered the same problem!
Link:
http://www.minecraft.../#entry29816329
Thanks. I will give you credit when I release it.
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
Lol. Everything was so simple back then.
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
Ah... Those days...
P.S. Google Keyboard made fields into girls...
Lol. The days where every script depended on useItem hook. Oh wait, wannabe modders still do depend on it...
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
Can anyone help?
These days I trying to make GUI things it says LinearLayout is not a function, but I DID added the token `new`.
new android.widget.LinearLayout(ctx);Also the days when ModPE 0.3 was awesome are also the days when I was not a member.In my signature, there is a link to my GitHub Wiki that has templates of GUI scripts. This includes standard buttons, menus, togglebuttons and checkboxes. I hope it helps you.
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
com.mojang.minecraftpe.MainActivity.currentMainActivity.get()
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
Since I kind of teach "wannabe modders" that's a little offensive. Everyone has potential.
You can implement sounds by using SoundPool in a ModPE Script.
Everyone has a beginning stage, but I don't see the benefit in posting a useItem() based mod on the forums. Maybe there's some coolness in it, but I just dont' see it. That's why I waited for ModPE to evolve, before I became a member of the forums.
I don't see how I am being offensive. I am just being honest and saying the truth. Think about it; If you are not told that you suck at something, you will continue to think that you're the best, while you are being outdone. Saying that "Tap ground for 64 diamonds" is a good mod is a lie and will not help the person who made it. It will just encourage the person to not be open-minded when making a ModPE script.
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
This is based on your limit of creativity. In those days when there were only 2 hooks, when there weren't even saveData() and readData(), I made my own mod by "hit a mob to drop slimeballs", "tap a crafting table with a slimeball to get a clock", and "tap stone-related blocks with enchanted clock to mine super-fast and with fortune II".
And nowadays with the Java Bridge, you can never underestimate the possibility with a useItem() only mod. Maybe someone is making a mod that generates an Excel XML file logging all your block tapping/placing behaviors.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIt's kinda ironic that the first ModPE script I wrote was a Java Bridge mod:
java.lang.System.out.println("Hello world");I said "wannabe modders" and arjay_07 said it was offensive. "wannabe" = not yet experienced. I said wannabe's still base their mods on useItem(). Please don't tell me that an inexperienced programmer is going to keep an Excel XML log of each block's behaviour when tapped. It's like comparing a 9 year old that doesn't know what parameters are, to Zhuowei. I can understand what your point of view is, but it is unrealistic in this conversation.
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
The main problem in this conversation is, being inexperienced doesn't mean disability. Some people can make good scripts even if they are inexperienced with JavaScript. When it was the start of ModPE, I just started learning to program when ModPE came out. But with a good mathematical logic it is very easy to make a good mod like a gun mod even of u r new with mod scripts, as long as I know there is Math class functions and that I know about basic trigonometry.