Started by sillytrain5 on Sun, 10/26/2025 - 19:02 Topic category: Help with MCreator software i want to know how i could ban players from their own world with a procedure Jump to top you could set a global variable and then kick them, if(entity instanceof ServerPlayer _player) { _player.connection.disconnect(Component.literal("Kick message!!!")); } Jump to top Permalink Log in or register to post comments where can i find this block and where do i set it to in the entity because i want it to happen when the player gets near a entity Jump to top Permalink Log in or register to post comments it goes in a custom code snippet, the required part is required if you don't use the Event/target entity block anywhere else in your procedure Jump to top Permalink Log in or register to post comments
you could set a global variable and then kick them, if(entity instanceof ServerPlayer _player) { _player.connection.disconnect(Component.literal("Kick message!!!")); } Jump to top Permalink Log in or register to post comments
where can i find this block and where do i set it to in the entity because i want it to happen when the player gets near a entity Jump to top Permalink Log in or register to post comments
it goes in a custom code snippet, the required part is required if you don't use the Event/target entity block anywhere else in your procedure Jump to top Permalink Log in or register to post comments
you could set a global variable and then kick them,
where can i find this block and where do i set it to in the entity because i want it to happen when the player gets near a entity
it goes in a custom code snippet,
the required part is required if you don't use the Event/target entity block anywhere else in your procedure