Assistant
REPLY |
Modding MCPE | Discussion ModPE, Patch'ey and Addon'ov |
Message#2 24.08.13, 12:42 | |
User [offline] Group: Friendssavagemessiahzine.com Messages 78 Check in: 25.05.12 Samsung Galaxy S4 LTE GT-I9505 Reputation: 16 | Improved commands.js from Vans222 Commands / coord (x / y / z) Shows coordinates by specified axes. / path (ID) Makes your path from the blocks (ID). If the ID is not specified, Glowstone will be used. / pathoff Turns off the above function. / ride Write, click on the mob der.lopata and voila - you ride this moba. / bomb (radius) Write to. Tap on any block of powder, and an explosion occurs with the specified address. Std TNT radius - 4 / bomboff Understandable for what. / id (name) Shows item IDs. In the field (name) - diamondb, tnt, food, wood, arrows. / mob (cow / pig / pigzombie)Spawn the indicated mob / kit (start / pro) Sets. Starting can only be used once. / help Improved / help. Added my commands. Commands.zip(1.51 KB) Posted on 08/24/2013, 12:42: Do you think you should create a theme like "MCPE Maps" [From 02.22] My script is still in the header. ;-) Post has been editedVans222 - 22.02.14, 15:03 |
Message#3 24.08.13, 15:40 | |
Status [offline] Group: Friendssavagemessiahzine.com Messages 475 Check in: 25.06.12 Reputation: 111 | ModPE Documentation News Feed For those who did not notice - the first 2 lessons appeared on the ModPE website. On the third approach. 24.08.2013 The third lesson is ready! Seeking ideas for a fourth! 25.08.2013 The documentation has separated from the MTK website and moved toModPE.p.ht. 26.08.2013 The documentation is partially translated into English, a very useful project for scripters is being prepared. Attention! For exceeding the limit of the processor, for the huge amount of traffic and the DDoS attack recently carried out on our website, our hosting starts to ban us. The site may be unavailable at times. 27.08.2013 All day I have been preparing tomorrow's release. 28.08.2013 Release postponed. 29.08.2013 Launched a closed beta test of the new project. Found many bugs. 30.08.2013 We are writing a new documentation engine. Was simultaneously writtenscript to PC version of hell. 01.09.2013 Went to a new school year. Due to my transition to one of the strongest schools in the city, ModPE Script Docs and MTK are temporarily under construction. 02.09.2013 The site ModPE Docs has been disabled by the registrar of this domain name. 11.09.2013 Lined up the finalized script on HELL!Link 22.09.2013 New website address -modpe.w.pw. 29.09.2013 I process completely the entire ModPE site. There may be bugs. 02.12.2013 Post has been editedSTALKER_2010 - 02.12.13, 14:27 Reason for editing: Added news from September -------------------- |
Message#4 25.08.13, 10:49 | |
User [offline] Group: Friendssavagemessiahzine.com Messages 77 Check in: 23.08.13 Google pixel 2 Reputation: 23 | |
Message#5 25.08.13, 14:15 | |
User [offline] Group: Friendssavagemessiahzine.com Messages 78 Check in: 25.05.12 Samsung Galaxy S4 LTE GT-I9505 Reputation: 16 | iron pon,Isn't it easier? function useItem (x, y, z, itemId, blockId, side) { if (itemId == 38 && blockId == 46) { explode (x, y, z, 0.5) } } |
Message#6 27.08.13, 09:57 | |
User [offline] Group: Friendssavagemessiahzine.com Messages 78 Check in: 25.05.12 Samsung Galaxy S4 LTE GT-I9505 Reputation: 16 | Made your script autohouse. Tap iron sword on any block and there is a house. Did for fun. Partly idea egr7v8. auto-house.zip(868 bytes) A new version: autodom.zip(727 bytes) Post has been editedVans222 - 27.08.13, 19:21 |
Message#7 27.08.13, 14:40 | |
User [offline] Group: Friendssavagemessiahzine.com Messages 78 Check in: 25.05.12 Samsung Galaxy S4 LTE GT-I9505 Reputation: 16 | avatar9717,here's a lighter. Thap iron sword.zippo.zip(250 bytes) Posted on 08/27/2013, 14:40: Here is a ride on mobs. Thap Iron Hoeridemob.zip(242 bytes) |
Message#8 27.08.13, 16:22 | |
Novice [offline] Group: Active users Messages 31 Check in: 01.02.13 LG L Fino Reputation: 1 | I've made a script, it generates a resident's house if you tap on the grass with a saddle Posted on 08/27/2013, 16:22: Guys and help how to make the script messages written to the chat, and not in a floating window Attached files vailagerHome.zip(901 bytes) |
Message#9 28.08.13, 05:14 | |
User [offline] Group: Friendssavagemessiahzine.com Messages 78 Check in: 10.05.13 Sony Ericsson Live with Walkman Reputation: 46 | Vans222,I, of course, wildly apologize, but your script for building a house is far from being optimal. If you set aside a couple of hours to read a JavaScript tutorial, your script would look something like this: buildHouse.js function useItem (xx, yy, zz, itemId, blockId, side) { if (itemId == 267) { buildStoneHouse (xx, yy + 1, zz, 5, 4); clientMessage ("House created!"); clientMessage ("Script by Vans222"); clientMessage ("Special forsavagemessiahzine.com"); } } function buildStoneHouse (x, y, z, heightHouse, widthHouse) // creates a new house (height of the house in y, width of the house in x and z) { var i, j; heightHouse-- widthHouse-- for (i = 0; i<= widthHouse; i ++) { for (j = 0; j<= widthHouse; j ++) { setTile (x + i, y, z + j, 4); // gender setTile (x + i, y + heightHouse, z + j, 4); // ceiling } } for (i = 1; i<heightHouse; i ++) { setTile (x, y + i, z, 4); // angle setTile (x, y + i, z + widthHouse, 4); // angle setTile (x + widthHouse, y + i, z, 4); // angle setTile (x + widthHouse, y + i, z + widthHouse, 4); // angle for (j = 1; j<widthHouse; j ++) { setTile (x, y + i, z + j, 20); // glass wall setTile (x + widthHouse, y + i, z + j, 20); // glass wall setTile (x + j, y + i, z, 20); // glass wall setTile (x + j, y + i, z + widthHouse, 20); // glass wall } } setTile (x-1, y, z + 1, 53); setTile (x-1, y, z + 2, 53); // stairs setTile (x + 2, y + 1, z + 1, 54); // chest setTile (x + 2, y + 1, z + 2, 61); // furnace setTile (x + 2, y + 2, z + 2, 50); // torch setTile (x-1, y + 2, z, 50); // torch 2 setTile (x-1, y + 2, z + 3, 50); // torch 3 setTile (x, y + 1, z + 1, 64); // door 1 setTile (x, y + 1, z + 2, 64); // door 2 setTile (x, y + 2, z + 1, 64); // air in the upper part of the door 1 setTile (x, y + 2, z + 2, 64); // air in the upper part of the door 2 } 2 differences: - reduction of the code by 1.5 times; - the buildStoneHouse function can build houses of any size; Remaining defects: - you need to make a function in the check and set the minimum size of the house (4x4x4) and maximum (? x? x ?, but so that the world could fit); - the doors are put in halves or fly out (in my opinion, it will not work out, maybe I will put them in inventory); - doors are placed on the corner, not in the center of the wall; - if inside the area occupied by the house there were blocks, then they get inside the house - you need to add a check, and then either clean or prohibit the building); - in the case of a house of a size larger than the distance from the player to the activation point, the player is immured in the wall - you need to either move the house or teleport the player inside; - make the argument of the function of the material of the floor, ceiling, walls and corners and check on the admissibility of the construction of this material (you cannot build a house with torches, and it is too elegant with diamond blocks) - something else - I forgot, I will remember along the way In the evening, if there is time, I'll finish it and post it. Suggestions for the design of houses other than simple boxes are accepted in QMS. Post has been editedDimitron_NoYoN - 03.02.14, 00:50 -------------------- I don't teach programming, I don't see in my How to hammer a nail |
Message#10 28.08.13, 13:25 | |
User [offline] Group: Friendssavagemessiahzine.com Messages 78 Check in: 25.05.12 Samsung Galaxy S4 LTE GT-I9505 Reputation: 16 | |
Message#11 28.08.13, 13:56 | |
User [offline] Group: Friendssavagemessiahzine.com Messages 78 Check in: 10.05.13 Sony Ericsson Live with Walkman Reputation: 46 | Vans222,read - well, good: now it's time to apply the knowledge gained. :) By and large, I am not an avid scripter either. I know that my mods are not perfect, and the same commands.js could be done via switch () and case. Not necessarily the else if construct works well, too, the switch and case code do not give the efficiency of the code, the speed seems to be the same. The only code seems more elegant. But it would be nice to take action on commands in separate functions. Readability at times would increase. And for the help command, start the second parameter If a player enters simply help, then the list of available commands is displayed as of now, and if you add the name of the team, then help on its use. But I just wanted it that way, who wants it - it pumps. If that post is considered to be a flood, I can delete it. I don’t know about you, but it’s more pleasant for me to write quality code that will be understandable, scalable, with the possibility of its inclusion in multi-command scripts like the same commands.js. I do not say that you write badly, but it is possible and necessary better. And advise the rules of the editor JS. I'm using DroidEdit right now, in principle it's normal, but I would like better I do not know, I did not find. I use the built-in editors TotalCommander'a and ES Explorer. I want analog Notepad ++, but no. Romax9lahin, Made, you put 2 blocks of snow and on top of the watermelon. Tap on the bottom block and a golem appears. First, drop the golem file from the archive in the apk into the assets / mob folder. He did not do it, he simply laid out this script.Mod on the golem in the BlockLauncher theme Post has been editedgord.mb - 28.08.13, 13:56 -------------------- I don't teach programming, I don't see in my How to hammer a nail |
Message#12 28.08.13, 14:41 | |
User [offline] Group: Friendssavagemessiahzine.com Messages 78 Check in: 25.05.12 Samsung Galaxy S4 LTE GT-I9505 Reputation: 16 | [email protected], 13:56 He did not do it, he simply laid out this script.Mod on the golem in the BlockLauncher theme Emm .. mod in this thread I wrote about the one in the quote I don `t know anything. Posted on 08/28/2013, 2:41 PM: romax9lahin,did, you put 2 blocks of snow and a watermelon on top. Tap on the bottom block and a golem appears. First, drop the golem file from the archive in the apk into the assets / mob folder. Oh ... I did not notice that I did not put the file. |
Message#13 29.08.13, 10:39 | |
Visitor [offline] Group: Active users Messages 20 Check in: 12.09.12 Samsung Galaxy Wonder GT-I8150 Reputation: 0 | Hello everyone, I want to create a script, when you put the grass (id2) a chicken and a cow spawn, but for some reason an error occurs (What's the problem? Here's the code: function useItem (x, y, z, blockId, ItemId, side) { var pX = getPlayerX (); var pY = getPlayerY (); var pZ = getPlayerZ (); { if (itemId == 2) spawnChicken (x, pY + 1.0, z); spawnCow (x, y, z); } } Post has been editedDimitron_NoYoN - 03.02.14, 08:06 |
Message#14 29.08.13, 10:52 | |
User [offline] Group: Friendssavagemessiahzine.com Messages 78 Check in: 10.05.13 Sony Ericsson Live with Walkman Reputation: 46 | id111442240,try this: function useItem (x, y, z, blockId, ItemId, side) { var pX = getPlayerX (); var pY = getPlayerY (); var pZ = getPlayerZ (); if (itemId == 2) { spawnChicken (x, pY + 1.0, z, "mob / chicken.png"); spawnCow (x, y, z, "mob / cow.png"); } } Post has been editedDimitron_NoYoN - 03.02.14, 08:08 |
Message#15 29.08.13, 10:57 | |
Old resident [offline] Group: Friendssavagemessiahzine.com Messages 899 Check in: 20.01.13 Samsung Galaxy S6 Edge SM-G925F Reputation: 75 | id111442240,Isn't it better?!? } -) Like this! function useItem (x, y, z, blockId, ItemId, side) { if (itemId == 2) { spawnChicken (x, y + 1, z, "mob / chicken.png") spawnCow (x, y + 1, z + 1, "mob / cow.png") } } Post has been editedromax9lahin - 29.08.13, 11:00 |
Message#16 29.08.13, 11:24 | |
Visitor [offline] Group: Active users Messages 20 Check in: 12.09.12 Samsung Galaxy Wonder GT-I8150 Reputation: 0 | Thank you all for your help! I figured it out myself, changed the second line to {if (getCarriedItem () == 2) and it worked |
Message#17 29.08.13, 12:26 | |
Status [offline] Group: Friendssavagemessiahzine.com Messages 475 Check in: 25.06.12 Reputation: 111 | romax9lahin, MTK in the topic ModPE? : stop_holywar: P.S. Almost on the topic (I apologize and hope for your understanding): In general, because of my new project (I have to do a closed beta test on the load)sitemodpe.p.ht(this is the new address of the documentation)may be bannedfor server overload. I need a paid account or just 3 referrals. Please, at least 3 peoplefollow the link to Hostinger.ruregister andcreate a new website(at least some, you can free and even without content). I will be very grateful to you and you will help the site on this modding language. Post has been editedSTALKER_2010 - 29.08.13, 12:28 -------------------- |
Message#18 29.08.13, 16:18 | |
Old resident [offline] Group: Friendssavagemessiahzine.com Messages 899 Check in: 20.01.13 Samsung Galaxy S6 Edge SM-G925F Reputation: 75 | Ler0n,This is not my problem! I am also on the phone. |
Message#19 29.08.13, 18:08 | |
Local [offline] Group: Friendssavagemessiahzine.com Messages 168 Check in: 17.03.13 Apple iPhone 6s Plus Reputation: 32 | |
Message#20 29.08.13, 20:35 | |
Just another [offline] Group: Friendssavagemessiahzine.com Messages 1917 Check in: 14.06.12 Apple iPhone 5s Reputation: 349 | Post templates for scripting help. I strongly recommend using templates and express themselves most accurately because it improves readability.and raises an opinion about you. If the script does not work / crashes
Please write / modify script
Post has been editedYmo - 18.07.14, 19:01 |
Message#21 29.08.13, 21:00 | |
a guest [offline] Group: Users Messages 7 Check in: 13.08.13 Asus Transformer Pad TF300TG Reputation: 0 | Hello to everyone, I'm new, just learning how to create scripts. I wrote one script (I use the DroidEdit (android) program) saved it in the .js format, via the blocklauncher (1.3.1) I launch it and get a long error and the script does not turn on :( what to do, help? P. c: minecraft 0.7.3 on the betamodpe2 website, the scripts from the tablet cannot be written ... Post has been editedDav041 - 29.08.13, 21:02 |
mobile version | Now: 05/20/19, 07:23 |