Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

ElTotisPro50

Members
  • Posts

    125
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ElTotisPro50's Achievements

Creeper Killer

Creeper Killer (4/8)

0

Reputation

  1. please write the code for sending the package i dont even understand what is that for or where do i apply it
  2. do i REALLY REALLY REALLY need to send the package to the server? i never saw a tutorial or something about sending packages and in the page you wrote it sends a message
  3. @SubscribeEvent public static void tickEvent(TickEvent.PlayerTickEvent event) { PlayerEntity player = event.player; World world = player.world; if(event.phase == TickEvent.Phase.END) { if(event.side.isServer() && ModKeys.mykey.isKeyDown()) { //This player.noClip = true; player.sendPlayerAbilities(); //Non of them work(in the code i dont duplicate them im just showing that i used the 2 combinations) //Or this player.sendPlayerAbilities(); player.noClip = true; } } }
  4. writing noclip and then sendPlayerAbilities didnt work either
  5. nope, not throwing errors or crashing it just doesnt to anything (i wrote sendPlayerAbilities() before noclip because i guess is like that) and also my key is working correctly the problem is not my key if(event.phase == TickEvent.Phase.END) { f(event.side.isServer() && ModKeys.mykey.isKeyDown()) { player.sendPlayerAbilities(); player.noClip = true; } }
  6. there is no player#onUpdateAbilities and what do you mean with tick event phase and logical side? like this? if(event.phase == TickEvent.Phase.END) { if(event.side.isServer() && ModKeys.abilityTransformKey.isKeyDown()) { player.noClip = true; } }
  7. nope it didnt work (i did it in server side and in tickevent @SubscribeEvent public static void tickEvent(TickEvent.PlayerTickEvent event) { PlayerEntity player = event.player; World world = player.world; if(!world.isRemote && ModKeys.mykey.isKeyDown()) { player.noClip = true; } )
  8. no, im not getting the player from Minecraft class, but i did in some other events i made, why is it bad?
  9. https://forums.minecraftforge.net/topic/75228-1143-no-clip-through-blocks/ it says that it only works in LivingUpdateEvent but is like this? if(Minecraft.getInstance().player == null) //This is because it crashes the game of an null error return; if(!world.isRemote) { PlayerEntity player = Minecraft.getInstance().player; if(ModKeys.mykey.isKeyDown()) { player.noClip = true; } }
  10. i made an event and when i press a key it it supposed to put true noclip (im using a LivingUpdateEvent because mojang programmed it like that), but is not working, this is an example: when you have hacks and enter in a server, if you activate noclip usually it doesnt work because the server has an anticheat, and instead of letting you go through the block it sends you a bit back VIDEO[when the screen shakes a little bit is because i activated the noclip]( https://imgur.com/a/LATKmV4 ) @SubscribeEvent public static void testevent(LivingEvent.LivingUpdateEvent event) { if(Minecraft.getInstance().player == null) //This is because it crashes the game of an null error return; PlayerEntity player = Minecraft.getInstance().player; if(ModKeys.mykey.isKeyDown()) { player.noClip = true; } }
  11. you mean that in width and height i have tu put my screen/monitor resolution? (1366x768) isnt there a way to scale by code the image(256x256) to make it occupy all the screen?
  12. so in minecraft i can summon particles with commands from the player eyes, and the particle spawn like a laser( https://imgur.com/a/kZjxeK2 ), how can i do that with the world.addParticle
  13. (i want to draw my texture in all the screen) MatrixStack matrixStack = new MatrixStack(); mc.getTextureManager().bindTexture(MYOVERLAYTEXTURE); //AbstractGui.blit(stack, x, y, offsetX, offsetY, width, height, textureSizeX, textureSizeY); AbstractGui.blit(stack,0, 0, 0, 0, 1920,1080,1920, 1080); mc.getTextureManager().bindTexture(AbstractGui.GUI_ICONS_LOCATION);
  14. performance problems?, i saw that the pumpkin overlay's size is 256x256, then how it draws in full screen?
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.