I cannot find a better texture, sorry. And I cannot use a snowball as a portal gun as it would replace the snowball, although if zhuowei adds a option to shoot entities from a custom item, I will add it for sure.
Actually the simple guns mod by lucasMCPE_br has a flamethrower that shoots snowballs and sets fire where it lands also its a costum item. Not asking you to copy his code but just saying its possible.
Actually the simple guns mod by lucasMCPE_br has a flamethrower that shoots snowballs and sets fire where it lands also its a costum item. Not asking you to copy his code but just saying its possible.
Actually, I forgot about the Level.spawnMob function. It is probably possible with that, I will try in a couple days.
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
I never said you must use it. Anyways good luck!Also can I use the idea of the portal gun in my script? I wont use the code but just the idea.
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
Thanks. I already added it in my script so if you said no I would've delayed myself from releaseing my modpack for 3 days.
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
I cannot find a better texture, sorry. And I cannot use a snowball as a portal gun as it would replace the snowball, although if zhuowei adds a option to shoot entities from a custom item, I will add it for sure.
Maybe. But if you are basing it off of the Portal game there is no gravity effect on gun launch. It should also be faster. Otherwise great mod. Also the only glitches on my BL pro (not beta) is that it looks like a blaze rod and known bugs. But it crashed on beta version actually. My portals turn into update blocks and it crashes when I place a portal
Actually the simple guns mod by lucasMCPE_br has a flamethrower that shoots snowballs and sets fire where it lands also its a costum item. Not asking you to copy his code but just saying its possible.
Link:
http://www.minecraft.../#entry29816329
Reply to : [email protected] <<<<< Copy & Paste
Are you looking for a code Lambo? I can give you one:
var GUI; var fire = false; function modTick(){ if(getCarriedItem() == 500) { //ID of Portal Gun GUIFIRE(); } if(getCarriedItem() != 500) { GUI1 = null; GUI1.dismiss(); if(fire == true) { fire = false; lookdir(getPitch(), getYaw()); Entity.remove(shotid); var shotid = Level.spawnMob(getPlayerX() + (dirx * 2),getPlayerY() + (diry * 2),getPlayerZ() + (dirz * 2), 81,"mob/snowball.png"); setVelX(shotid,(dirx * 35) + (Math.floor(Math.random() * 2000) / 1000) -1); setVelY(shotid,(diry * 35) + (Math.floor(Math.random() * 2000) / 1000) -1); setVelZ(shotid,(dirz * 35) + (Math.floor(Math.random() * 2000) / 1000) -1); } } function GUIFIRE(){ ctx.runOnUiThread(new java.lang.Runnable({ run: function(){ try{ var layout = new android.widget.LinearLayout(ctx); layout.setOrientation(1); var btn = new android.widget.Button(ctx); btn.setText("Fire"); layout.setOrientation(android.widget.LinearLayout.VERTICAL); layout.addView(btn); btn.setOnClickListener(new android.view.View.OnClickListener({ onClick: function(p1){ fire = true; } })); GUI1 = new android.widget.PopupWindow(layout, android.widget.LinearLayout.LayoutParams.WRAP_CONTENT, android.widget.LinearLayout.LayoutParams.WRAP_CONTENT); GUI1.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.RED)); GUI1.showAtLocation(ctx.getWindow().getDecorView(), android.view.Gravity.RIGHT | android.view.Gravity.BOTTOM, 0, 0) }catch(error){ clientMessage("Error: " + error); } }})); } function lookdir(pitch, yaw) { diry = -(Math.sin(pitch / 90)); dirx = -(Math.sin(yaw / 180 * 3.141592)); dirz = (Math.cos(yaw / 180 * 3.141592)); if (diry > 0) { dirx -= (dirx / (0.9999999999999466 / diry)); dirz -= (dirz / (0.9999999999999466 / diry)); } else { dirx -= (dirx / (0.9999999999999466 / (-1 * diry))); dirz -= (dirz / (0.9999999999999466 / (-1 * diry))); } } function entityRemovedHook(entity) { if(Entity.getEntityTypeId() == 81) { //Your Code Here } }IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
I never said you must use it. Anyways good luck!Also can I use the idea of the portal gun in my script? I wont use the code but just the idea.
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
Thanks. I already added it in my script so if you said no I would've delayed myself from releaseing my modpack for 3 days.
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
Maybe. But if you are basing it off of the Portal game there is no gravity effect on gun launch. It should also be faster. Otherwise great mod. Also the only glitches on my BL pro (not beta) is that it looks like a blaze rod and known bugs. But it crashed on beta version actually. My portals turn into update blocks and it crashes when I place a portal
Help Me by clicking above links and skipping ad!
I support: