Derprito32Bit Posted May 31, 2023 Posted May 31, 2023 Does anyone know how to code self damage using the api, I did this in Java but fucked it up in lua Quote Share this post Link to post Share on other sites More sharing options...
DuM Posted June 1, 2023 Posted June 1, 2023 check example bow yourself Quote Share this post Link to post Share on other sites More sharing options...
Derprito32Bit Posted June 3, 2023 Posted June 3, 2023 Not using bow damage, I want to force the player to take instant fall damage Quote Share this post Link to post Share on other sites More sharing options...
Derprito32Bit Posted June 3, 2023 Posted June 3, 2023 An example of self damage I made for moon: function damagePlayer() { var offset = 0.0625; for (var i = 0; i < 49; ++i) { player.sendPacket(0x04, player.getX(), player.getY() + offset, player.getZ(), false) player.sendPacket(0x04, player.getX(), player.getY(), player.getZ(), false) } player.sendPacket(0x03, true); } Quote Share this post Link to post Share on other sites More sharing options...
Guest Idle Posted June 3, 2023 Posted June 3, 2023 nice moon Quote Share this post Link to post Share on other sites More sharing options...
Derprito32Bit Posted June 4, 2023 Posted June 4, 2023 13 hours ago, Idle said: nice moon does astolfo just not have getx, gety, getz? cuz i need those to make it Quote Share this post Link to post Share on other sites More sharing options...
Guest Idle Posted June 4, 2023 Posted June 4, 2023 idk what moon u are using cuz the latest one has Lua scripting too lmao Quote Share this post Link to post Share on other sites More sharing options...
Derprito32Bit Posted June 4, 2023 Posted June 4, 2023 ah the latest 3.0 one which used java Quote Share this post Link to post Share on other sites More sharing options...
frederikplet Posted June 5, 2023 Posted June 5, 2023 player.damage.hearts.entity.sendPacket.playerGet.health.player.take.damage(20) Quote Share this post Link to post Share on other sites More sharing options...
Derprito32Bit Posted June 24, 2023 Posted June 24, 2023 Does that actually work 💀 Quote Share this post Link to post Share on other sites More sharing options...
Derprito32Bit Posted June 24, 2023 Posted June 24, 2023 @Idlecan you see if there is a way to do self damage using packets I can’t seem to do it. Sorry for the ping Quote Share this post Link to post Share on other sites More sharing options...
Guest Idle Posted June 25, 2023 Posted June 25, 2023 it's possible. Quote Share this post Link to post Share on other sites More sharing options...
Fiercee Posted June 25, 2023 Posted June 25, 2023 On 6/4/2023 at 2:51 AM, Derprito32Bit said: does astolfo just not have getx, gety, getz? cuz i need those to make it there is Quote Share this post Link to post Share on other sites More sharing options...
Royalty Posted June 26, 2023 Posted June 26, 2023 (edited) nvm that was non instant Edited June 26, 2023 by Royalty retarded Quote Share this post Link to post Share on other sites More sharing options...
Guest Idle Posted June 26, 2023 Posted June 26, 2023 accumulate over 3.0125 blocks of fall distance without sending a true ground state packet in between. module_manager.register('selfdamage', { on_pre_motion = function(t) local start = 0 while start < 3.0125 do start = start + math.min(0.42, 3.0125 - start) player.send_packet_no_event(0x04, t.x, t.y + start, t.z, false) end player.send_packet_no_event(0x04, t.x, t.y, t.z, false) player.send_packet_no_event(0x03, true) player.message('.selfdamage') return t end }) Quote Share this post Link to post Share on other sites More sharing options...
Kyr0sss Posted June 28, 2023 Posted June 28, 2023 I'm new to scripting Wuts the point of this? Quote Share this post Link to post Share on other sites More sharing options...
Guest Idle Posted June 28, 2023 Posted June 28, 2023 disables checks on some anticheats Quote Share this post Link to post Share on other sites More sharing options...
Derprito32Bit Posted June 29, 2023 Posted June 29, 2023 @Fierceecan you show me where it is i can't seem to find it, and @Idlety but is there a way to make it more simpler or is that the only way? Quote Share this post Link to post Share on other sites More sharing options...
Fiercee Posted June 29, 2023 Posted June 29, 2023 1 hour ago, Derprito32Bit said: @Fierceecan you show me where it is i can't seem to find it, and @Idlety but is there a way to make it more simpler or is that the only way? player.position return all the values at once Quote Share this post Link to post Share on other sites More sharing options...
Derprito32Bit Posted June 29, 2023 Posted June 29, 2023 what would i put for the number would i put smth like what idle did, t.x t.y t.z? Quote Share this post Link to post Share on other sites More sharing options...
Derprito32Bit Posted June 29, 2023 Posted June 29, 2023 @Idlecan you try and convert this? function damagePlayer() { var offset = 0.0625; for (var i = 0; i < 49; ++i) { player.sendPacket(0x04, player.getX(), player.getY() + offset, player.getZ(), false) player.sendPacket(0x04, player.getX(), player.getY(), player.getZ(), false) } player.sendPacket(0x03, true); } Quote Share this post Link to post Share on other sites More sharing options...
Guest Idle Posted June 30, 2023 Posted June 30, 2023 no Quote Share this post Link to post Share on other sites More sharing options...
Guest Idle Posted June 30, 2023 Posted June 30, 2023 understand how mc works and u will figure it out Quote Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.