#How to kick or crash the host in singleplayer?

1 messages · Page 1 of 1 (latest)

compact jackal
#

Is this possible or not?

cosmic hazel
#

like

while (true) {
  new Array(1800).fill('aa')
}
#

something that would loop infinitely and cause lag

compact jackal
cosmic hazel
compact jackal
cosmic hazel
compact jackal
cosmic hazel
#

that is enough to crash everything

#

it just stops the code flow

#

its a code that never ends, and minecraft aumatically closes the server after 10 seconds of code block

cosmic hazel
compact jackal
# cosmic hazel

How to make the screen freeze and change the kick message? Or is it not possible

cosmic hazel
#

just add console.log before the crash

#

or send a message in chat

#

before making it crash

compact jackal
cosmic hazel
compact jackal
cosmic hazel
compact jackal
cosmic hazel
compact jackal
cosmic hazel
#

but this is only for server side not client

trim hollow
#

let's just don't abuse it and they'll leave that there. I hope

#

#879773489601585244 message

compact jackal
#

Or channel

trim hollow
compact jackal
compact jackal
cosmic hazel
#

encripting an addon is crazy

arctic thistle
#

it trigger event in the player
the player.json don't have that event from what i can see
so... do triggering events that doesn't exist kick the player?

trim hollow
# compact jackal But this addon somehow kicks me out of the game without that screen saying watch...
{
  "format_version": "1.20.50",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:player",
      "is_spawnable": false,
      "is_summonable": false,
      "is_experimental": false
    },
    "component_groups": {
      "ha:bug": {
        "minecraft:explode": {
          "fuse_length": 0.1,
          "fuse_lit": true,
          "power": 0,
          "causes_fire": false,
          "destroy_affected_by_griefing": true,
          "breaks_blocks": false
        },
        "minecraft:instant_despawn": {
          "remove_child_entities": true
        }
      }
    },
    "components": {},
    "events": {
      "run:ban": {
        "add": {
          "component_groups": [
            "ha:bug"
          ]
        }
      }
    }
  }
}
#

This works.

#

It can kick you out of the world

exotic tiger
#

how did u even find this

trim hollow
#

This is very old, look at the format version.

exotic tiger
trim hollow
#

tho you can't customize the message cause the kicking is like a lost signal type sui

#

disconnectionScreen.unexpectedPacket=You're Kick!

exotic tiger
#

so like disconnected from server?

#

wait wht?????????//

#

bro how long have u been holding this

#

in ur knowledge book

trim hollow
exotic tiger
#

hold up ima test this

#

bro this actually wokrs

exotic tiger
trim hollow
exotic tiger
#

but thats gonna get patched soon

#

maybe

#

probably

trim hollow
compact jackal
#

ah but sad it requires player.json

wet salmon
#

ip doesn't have to be valid

compact jackal
wet salmon
#

you can just give "asdfjklasdfjlka" ip arg

compact jackal
wet salmon
#

main

#

but the menu will say "Invalid IP!"