Flying in multiplayer?

Started by Spleen on

Topic category: Help with modding (Java Edition)

Last seen on 23:10, 19. Sep 2022
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Flying in multiplayer?

Made a flying mod which worked fine when tested, but once moved onto the server it didn't work.

So I made a REALLY simple one where all the mod is is hit G to fly (survival mode) and that also doesn't work in multiplayer.

The only related server option I can see is allow-flying which of course is set to TRUE. 

Am I missing something in the config or is this procedure not supported in multi or something?

Last seen on 23:10, 19. Sep 2022
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
bump
Sun, 05/10/2020 - 06:44

bump

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could be you need to sync it…
Sun, 05/10/2020 - 16:42

could be you need to sync it with the client

how are you making the player fly? show a screen capture of your code blocks or something

Last seen on 23:10, 19. Sep 2022
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
  Yeah its REALLY simple…
Mon, 05/11/2020 - 07:39

fly code

 

Yeah its REALLY simple. theres also a FlyOnKeyPressed that binds it to G. that's the extent of it. What do you mean sync to the client? that sounds an awful lot like the kind of thing that would cause my problem. Thank you so much for helping

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hmm, dont know why it isnt…
Mon, 05/11/2020 - 15:30

hmm, dont know why it isnt working. maybe try adding a custom code snippet block after your fly block with this code in it: "((EntityPlayerMP)entity).sendPlayerAbilities();"

Last seen on 23:10, 19. Sep 2022
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there some way to type…
Tue, 05/12/2020 - 04:30

Is there some way to type that in ? I am having a really hard time finding blocks to drag around to create that.

Last seen on 23:10, 19. Sep 2022
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ah found the custom code…
Tue, 05/12/2020 - 05:11

Ah found the custom code snippet part. Now it doesnt even work in single player. Odd

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hmm, i dont know are your…
Tue, 05/12/2020 - 06:52

hmm, i dont know

are your sure you want the player to fly at exactly level 40 and not below or above it?

Last seen on 23:10, 19. Sep 2022
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Your code snippet just made…
Tue, 05/12/2020 - 07:00

Your code snippet just made me crash but for some reason once I took it out and tried again it worked?!?!?!?! How crazy is that.

Thank you so much for your help!