Everything posted by Shynixn
-
Registering Server-Only Entity [1.12]
Thanks for your idea, this seems to be a good approach, however it just doesn't fit my use case as I simply want to register my mcp entity on a Forge Server like on a SpongeVanilla server. I want to avoid creating a large new AI layer and only register it as serverside entity. The entity works in general, I have already testet that and I only want to register it now as some clients have troubles (not mine) dealing with the "unknown" entity. I think I'll try to recreate the entity with 1.11 or 1.10 and check if the client shows "Fatally missing registry entries.".
-
Registering Server-Only Entity [1.12]
Hm.... when registering my entity on a SpongeVanilla server, I have accessed the field in line 7 which gets replaced by Forge. https://github.com/MinecraftForge/MinecraftForge/blob/1.12.x/patches/minecraft/net/minecraft/entity/EntityList.java.patch Ok, I can see that the Forge EntityRegistry is actually called via static methods so registering it there would be the correct choice. However as I mentioned before this results into "Fatally missing registry entries." message.
-
Registering Server-Only Entity [1.12]
bump?
-
Registering Server-Only Entity [1.12]
Thanks for the issue link, that's exactly what I'm trying to achieve. (haven't read all of it yet) Well actually I don't want to have some fancy server-only forge entities but use my server entity on a SpongeForge server like on my SpongeVanilla server. (without writing a client mod) I have tried spawning the entity without registering it however as I said the entity does not get rendered at all.
-
Registering Server-Only Entity [1.12]
Hi, hopefully someone can help me out with this. Situation: I'm trying to spawn a modified version of an existing Entity (in this case a Rabbit) with simple server-only modifications like Pathfinder etc. First, I have managed to register it successfully on a SpongeVanilla server (this question has nothing todo with Sponge) via mcp at the EntityList class, the rabbit is visible at the client and everything is working. Second, now I also want it to spawn on a SpongeForge server, however the field where entities are registered is gone and I cannot register it the same way. (Probably patched somewhere else by Forge) Question: How can I register my entity, the CustomRabbit.class, on a Forge server, so that the client sees a ordinary rabbit? It's currently not rendered. What I have tried: 1. Manually registering the entity final RegistryNamespaced<ResourceLocation, Class<? extends Entity>> registry = EntityList.REGISTRY; Results in a NoSuchFieldException. 2. Using the forge EntityRegistry on startup EntityRegistry.registerModEntity(new ResourceLocation("mymodid", "CustomRabbit"), CustomRabbit.class, "CustomRabbit",1, myModInstance, 50, 20, true); Results in an error message when the client tries to connect to the server? "Fatally missing registry entries."
IPS spam blocked by CleanTalk.