Solved Disable coordinates in F3

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Aralwen

Active Member
May 26, 2017
164
14
18
Hello people,
I am trying to disable the coordinates display in F3, i know this is possible in Java, but I wonder if in Skript too.

Someone has a idea ? @Donut ?
 
So you say you know it's possible in Java; is there any reason you can't just execute a console command via Skript?

code_language.skript:
execute console command "/gamerule reducedDebugInfo true"
 
I've done this before, the following needs MundoSK and ProtocolLib:

code_language.skript:
#Enables the reduced debug info for a player.

#Parameters:
#{_player} = the player that will have the reduced debug info enabled.

#Example:
#on join:
#    enableReducedDebug(player)
function enableReducedDebug(player: player):

    set {_packet} to new play_server_entity_status packet
    set {_player}'s world pentity 0 of {_packet} to {_player}
    set byte pnum 0 of {_packet} to 22

    send {_player} packet {_packet}

#Disables the reduced debug info for a player.

#Parameters:
#{_player} = the player that will have the reduced debug info disabled.

#Example:
#on join:
#    disableReducedDebug(player)
function disableReducedDebug(player: player):

    set {_packet} to new play_server_entity_status packet
    set {_player}'s world pentity 0 of {_packet} to {_player}
    set byte pnum 0 of {_packet} to 23

    send {_player} packet {_packet}

And please don't tag people for help, it might be annoying for them.
 
Last edited by a moderator:
So you say you know it's possible in Java; is there any reason you can't just execute a console command via Skript?

code_language.skript:
execute console command "/gamerule reducedDebugInfo true"
Ah! I did not know this rule, thank you !

I've done this before, the following needs MundoSK and ProtocolLib:

code_language.skript:
#Enables the reduced debug info for a player.

#Parameters:
#{_player} = the player that will have the reduced debug info enabled.

#Example:
#on join:
#    enableReducedDebug(player)
function enableReducedDebug(player: player):

    set {_packet} to new play_server_entity_status packet
    set {_player}'s world pentity 0 of {_packet} to {_palyer}
    set byte pnum 0 of {_packet} to 22

    send {_player} packet {_packet}

#Disables the reduced debug info for a player.

#Parameters:
#{_player} = the player that will have the reduced debug info disabled.

#Example:
#on join:
#    disableReducedDebug(player)
function disableReducedDebug(player: player):

    set {_packet} to new play_server_entity_status packet
    set {_player}'s world pentity 0 of {_packet} to {_palyer}
    set byte pnum 0 of {_packet} to 23

    send {_player} packet {_packet}

And please don't tag people for help, it might be annoying for them.

Nice job, it works perfectly, but warning you have say {_palyer} instead of {_player}
Thank's very much ! :emoji_smiley:
 
Ah! I did not know this rule, thank you !



Nice job, it works perfectly, but warning you have say {_palyer} instead of {_player}
Thank's very much ! :emoji_smiley:
oh, yeah, I didn't notice haha.
 
Status
Not open for further replies.