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?
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.
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.
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.
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);
}
0
0
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 in the web address bar in your browser why can you call the alert(); function without defining it?
0
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.
0
Also use KsyMC's world edit mod to understand coordinates, if you don't know.
0
+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. or or else?
0
Maybe use github raw?
0
Code:
Seems it is correct.lol 3-minute diff