• 0

    posted a message on ModPe Android Help....
    Quote from Connor4898

    Here is a very basic script:
    var item = Level.dropItem(x,y,z,range,ID,amount,damage);
    Entity.remove(item);

    No offense, but it is a useless code. (dead code) The item appears for 1/100 000 000 seconds (if your device is like 10MHz zzzzzz) and disappears? He is asking for removing auto items, not mod items. If you want the remove an item you just dropped, then why don't you just stop doing it in the first place?
    Posted in: MCPE: Mod / Tool Help & Requests
  • 0

    posted a message on Who created modpe
    Quote from EliteHacks

    oh... What's the link to the thread ?. Thank you very much(everyone) for helping and supporting this topic. This was a good explanation 500 I.S.E. I was looking at mcpeLauncher SRC code and I saw ScriptManager.java and it has all the methods.
    public static void useItemOnCallback(int x, int y, int z, int itemid, int blockid, int side, int itemDamage, int blockDamage) {
    callScriptMethod("useItem", x, y, z, itemid, blockid, side, itemDamage, blockDamage);
    }
    But where is getting those objects from ? (What is the location (on MCPELauncher.apk)). Like for example blockId, where is that object at. Like where is the real object that mcpe has?(I hope I'm not confusing someone)

    In the /jni directory. You need to learn native android support NDK for that because MCPE is close-source.

    BlockLauncher uses Rhino by Mozilla.

    You can check the functions at https://github.com/connor4898/modpe-scripts/wiki/modpe-scripts-functions-list (Connor4898 is getting famous because of this I think lol)

    The source code of Rhino is here. It is coded in java so it is easy to understand, IF YOU CAN FIND THE STARTING POINT. (because I can't)
    https://github.com/mozilla/rhino/tree/master/src/org/mozilla/javascript

    Feeling confused how can you call functions you didn't define? Then tell me, when you type
    javascript:alert("Your computer will explode in ten seconds lol pratical joke");
    in the web address bar in your browser why can you call the alert(); function without defining it?
    Posted in: MCPE: Mod / Tool Help & Requests
  • 0

    posted a message on Map customizer(Custom maps)
    Can you make a superflat with each chunk (i.e. each 16*16 blocks area) have identical (maybe rotationally different) parkour :( :) I meant maybe just some stairs or easy fence post parkours, which a player has to go through to tap the goal block at top then a player of another team has to stop him or else the castle (chunk) will be captured, like factions?

    I tried to make a map like this but I was sure I failed. So I request for this. It will be used in my preparing server Chunk Claimers (see my signature). I will give you credits if the server will really be up. Can you do that?

    The failed map is like this, it failed just because I couldn't copy the chunks.
    https://github.com/p...laimers (2).zipWell you might find that it is troublesome to make 256-1 duplications of a single chunk. If you do, tell yourself I didn't post it.
    Posted in: MCPE: Map Help & Requests
  • 0

    posted a message on example setTile structure
    for loops.
    Also use KsyMC's world edit mod to understand coordinates, if you don't know.
    Posted in: MCPE: Mod / Tool Help & Requests
  • 0

    posted a message on Create custom UI for MCPE Mods (Add Buttons)
    Quote from QyMineAsap
    Nice tutorial +1 for you :D
    Quote from Byteandahalf
    No. +1 for you.

    +1 for both of you :)

    This is not java; this is still javascript, just that it uses android and java methods like android.view.View.OnClickListener.
    It still uses var not type.

    P.S.
    activity instanceof Activity
    or
    activity instanceof Activity
    or else?

    Posted in: MCPE: Mod / Tool Help & Requests
  • 0

    posted a message on I am testing my mod script will be open for beta testers:need a little advice for it
    Quote from QyMineAsap

    No, thats if you wanna post a code :P
    I think he wants to post a download link, if so, just copy/paste it

    Maybe use github raw?
    Posted in: MCPE: Mod / Tool Help & Requests
  • 0

    posted a message on ModPE Ideas! Your Idea may be chosen!
    Quote from LVLMASTER

    Instaloot

    This is basically a larger version of InstaIngot, but make it so that you can touch anything in the game, and the block will disappear, and the block will go directly into your inventory.

    the usefullness for this is you won't have to use tools to mine or chop trees, and it is a lot faster to obtain resources

    Code:
    ModPE.setItem(510,11,12,"InstaIngot");//11 and 12 are random numbers
    function newLevel(){
    addItemInventory(510,1);
    }
    function useItem(x,y,z,i,B){
    if(i!=510)return;
    destroyBlock(x,y,z,true);
    }

    Seems it is correct.lol 3-minute diff
    Posted in: MCPE: WIP Mods / Tools
  • To post a comment, please .