question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to make Client must install a mod(which is installed on Server) to join in Server?

See original GitHub issue

I have Reigster a Entity Type(and Renderer, Model for it) and SoundEvent for the new Entity which I make, and a Item.

I remap the jar and put it in my server’s “mods” folder.(It works in client.)

and then I wonder if I can join in the server without installing this mod in my Minecraft Launcher.

the result is that I can join in without installing the mod, and can use summon to spawn the new Entity. But what made me confused is that the new entity’s model is the PigEntityModel(I guess the renderer same).

And then I create the new Item with command “give”.Show the message"给予 玩家xxx xxx".But cannot seen anything in my inventory(but actually the itemstack exists.cannot seen and select or anything.)

I wonder if there exists a way to make sure the client which connect to the server must have installed the specific mod or refuse to connect like forge?

I try to search for some relative message form the english wiki and 中文(Chinese)wiki of fabric. and read about the fabric.mod.json nothing was found but my sadness.(it takes so long time 😦 )

Help me please!Thanks. 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
i509VCBcommented, Jul 17, 2020

Hmm, maybe registry sync doesn’t enforce registry mismatches with vanilla clients. Not 100% sure on that. There are plans for a future “mod handshake” system which would give mods control on allowing or denying clients based on missing items, mod versions or other arbitrary things.

1reaction
i509VCBcommented, Jul 17, 2020

I think pig was the result since the entity type registry will by default select the Pig entity type. If your server was running in dev, different rules may apply there with connecting clients. A real server (whether integrated or dedicated) with fabric’s registry sync installed should be kicking the client if the client does not understand the registry sync packet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Install Mods on Your Minecraft Server - YouTube
Get Support @ https://pebblehost.com/r/discordForge Installation Guide: https://youtu.be/bLUa0s11aiYNeeding server hosting?
Read more >
When trying to join a Minecraft server that uses mods, do I ...
Usually you will need your Minecraft client to have the same mods as the server if your gameplay is modded—as a general rule,...
Read more >
How to Add Mods to a Minecraft Server - Apex Hosting
How to Install Mods on a Minecraft Server ... Open the Files tab to view the versions. To the right of the version...
Read more >
How to Install Fabric Mods on Your Minecraft Server - Shockbyte
Some Fabric mods will require installation on both the client and the server; you can install the mods onto your client by adding...
Read more >
How to Install Minecraft Mods Using Forge - Hostinger
What Do You Need Before Installing Minecraft Mods? · Most Minecraft servers run on the Java Edition of the game. · Each new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found