Flying in multiplayer?

Started by Spleen on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Mar 2018
Points:
694

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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?

Active 2 years ago
Joined Mar 2018
Points:
694

User statistics:

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

bump

Active 2 years ago
Joined Nov 2019
Points:
854

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 388
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

Active 2 years ago
Joined Mar 2018
Points:
694

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
  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

Active 2 years ago
Joined Nov 2019
Points:
854

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 388
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();"

Active 2 years ago
Joined Mar 2018
Points:
694

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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.

Active 2 years ago
Joined Mar 2018
Points:
694

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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

Active 2 years ago
Joined Nov 2019
Points:
854

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 388
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?

Active 2 years ago
Joined Mar 2018
Points:
694

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
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!