#How to kick or crash the host in singleplayer?
1 messages · Page 1 of 1 (latest)
make an infinite for cycle
like
while (true) {
new Array(1800).fill('aa')
}
something that would loop infinitely and cause lag
But does running the command kick as the world kick the operator or using transferPlayer? But with transferPlayer, I have to give a server to move to but I just want to kick the player
transferplayer works only on servers not in singleplayer, the command kick doesnt work on the host
I am pretty sure it can now work in normal worlds
try it tho it will not work
I don't think this will be enough to crash decent mobiles or pc
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
"i think" i said that it does and im 100% sure
How to make the screen freeze and change the kick message? Or is it not possible
just add console.log before the crash
or send a message in chat
before making it crash
Hmm oh but I am going for another type of crash where your screen freezes when my entity tp's to the player's screen and then crash it with an like only error code after being kicked
then before the crash make the player not move by changing its inputPermission
But this lag is due to server side how to make the client lag?
why would you make the client lag?
Cause I don't want that screen in mc after player crashes
then why are you asking this in script api? if you want to crash the client
I dont think there is any other relevant place to post this
but this is only for server side not client
Actually no, devs actually let you use transferPlayer in single player
let's just don't abuse it and they'll leave that there. I hope
#879773489601585244 message
It says I don't have access to the server
Or channel
Probably because you're not in the server yet.
What happens if I give invalid ip and port?
But this addon somehow kicks me out of the game without that screen saying watch dog terminated it but uh I cannot see how it actually works due to the code being heavily encrypted
i see that it uses player.json so it must be editing something here
encripting an addon is crazy
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?
{
"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
how exaclty does it crash u does it like send a kick msg or disconnected from server?
It disconnects you from the world.
tho you can't customize the message cause the kicking is like a lost signal type sui
disconnectionScreen.unexpectedPacket=You're Kick!
so like disconnected from server?
wait wht?????????//
bro how long have u been holding this
in ur knowledge book
Last year.
why dont u make a post about this
The script version already exists btw
If people won't abuse no
no way
ah but sad it requires player.json
it doesn't?
ip doesn't have to be valid
what
you can just give "asdfjklasdfjlka" ip arg
Then where will the player go