Is there any way you can also tell/show me how to make it to were they click the block and it teleports them to another dimension or at lest to a certain cordanetes with a little pocket of space so the don't suffocate in a wall ? Or something like that, block Id is 23
My apologies for messing up so bad and asking so much I appreciate it.
Haha year I understand. Seems like you really are interested in learning how to mod. I would recommend watching many you tube videos and reading this site:
As for your question, yes it is possible. Below I give you the code to teleport them somewhere. As to a different dimension... Well that's a different story.
function useItem(x, y, z, itemId, blockId, side, data){
I feel like I'm taking advantage of you but do you know how I can make it to once I'm "Inside" my mod iitem/block what you want to call it is up to you but I will not release the name of it till I'm at least 70% done with the mod I'm only like 47% maybe
Can your tell me know of a way to make it to where I'm "Inside" said item and I click an iron door (the only iron door is going to be the main entrance) can you make it to were I click on it and it teleports me outside said item even if its moved the website (you gave me )won't give me that :/
I guess I don't really understand you. What do you mean by being "inside" an item? So what you want is for the player to tap on an (iron) door and then get teleported to the other side?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I do not plan on releasing this mod nor do I know how,
What I want to do it's make a costom block four blocks width and three blocks high with a lapiz texture all around please help c:
Block.defineBlock(199,"Giant Lapiz Block","lapis_block",0,0,0);
Block.setShape(199,0,0,0,4,3,4);
Player.addItemCreativeInv(199,1,0);
My apologies for messing up so bad and asking so much I appreciate it.
https://github.com/Connor4898/ModPE-Scripts/wiki/ModPE-Scripts-Functions-List
(It will become very useful)
As for your question, yes it is possible. Below I give you the code to teleport them somewhere. As to a different dimension... Well that's a different story.
function useItem(x, y, z, itemId, blockId, side, data){
if(blockId==23){
setPosition(getPlayerEnt(),x+.5,y,z+.5);
setTile(x,y,z,0);
setTile(x,y+1,z,0);
//x,y,z being the coords you want to send them to
}
}
So hopefully this all works on my mobile device and once again
I appreciate all your help.
Can your tell me know of a way to make it to where I'm "Inside" said item and I click an iron door (the only iron door is going to be the main entrance) can you make it to were I click on it and it teleports me outside said item even if its moved the website (you gave me )won't give me that :/