
JonIsPatented
Members-
Posts
20 -
Joined
-
Last visited
Everything posted by JonIsPatented
-
[1.12.2] Nameplate appearing over custom mobs
JonIsPatented replied to JonIsPatented's topic in Modder Support
Here is the EntityWyrmling Class: and here is the render class: And if you need it, here is my init class for entities: And I call this in my main, like this: And here is my register class for the renders: The most interesting part to me is that I have 3 mobs, and neither of the other two have this problem. -
I'm having an interesting problem where a nameplate appears above my wyrmling mobs when they spawn and it says "Wyrmling" of course. I have no clue what I'm doing wrong. Has anyone had this problem before? What's the fix? I'll post my code later when I'm home.
-
[1.12.2] Nether Portal Custom Dimension Compatibility
JonIsPatented posted a topic in Modder Support
I have a custom dimension that I want tot keep separate from all dimensions but the Overworld. When I light a nether portal in that dimension, it lights and will connect to the nether. I want it to not do that. How can I stop a nether portal from working while I'm in my dimension? EDIT: I am a mental defective and they actually don't work. The problem is a non-starter, and I'm also a spoon, because I don't know how to delete a forum post. -
[1.12.2] Poisonous air class kicks players out of servers
JonIsPatented replied to JonIsPatented's topic in Modder Support
I tried to do this but I couldn't figure it out. I'm sure it's simple but I have other bugs to fix first. Thank you. -
[1.12.2] Poisonous air class kicks players out of servers
JonIsPatented replied to JonIsPatented's topic in Modder Support
Oh geez, really that simple? Thank you so much, it works now. -
[1.12.2] Poisonous air class kicks players out of servers
JonIsPatented replied to JonIsPatented's topic in Modder Support
It says this but repeated at what I assume to be every tick, because it appears about 20 times every second and it happens for about 3 seconds before it kicks the player out. -
[1.12.2] Poisonous air class kicks players out of servers
JonIsPatented replied to JonIsPatented's topic in Modder Support
Could that be causing it to kick players off the server? I don't think it is, but I will fix it anyway. When I get home later, I will post the exact error I get. Perhaps that will help. -
So I have a poisonous air class I made for my custom dimension that causes any player that isn't wearing a gas mask to get poisoned, but the poison is slightly randomized, in that the player may suffer the effects more slowly or more rapidly at any moment. Also if they are wearing the gas mask, the poison doesn't affect them, but the gas mask slowly breaks at a randomized rate. It all works very well for me. On singleplayer, there are no issues. When I start the server, there are no issues. When someone tries to join the server, the server kinda kicks them out. My poison air code looks like this: I don't know what part of this code is causing the problems, so if someone could help me track down where and why the problems arise, I'd be very grateful.
-
That's what I was trying to do before. I thought anime fan was telling me to do this thing. What should this look like. How should I call it from the event handler.
-
When I do this, the drawTexturedModalRect() stuff gives me an error saying that it can't make a static reference to the non-static method.
-
I went and read it again and then reread it again. I Also went and read Jabelar's related tutorials again. I still can't figure it out. I tried adding the Side.CLIENT thing into a Mod.EventBusSubscriber annotation on the client proxy and all that. I tried making my own client event subscriber and that didn't work because I don't know how to do it and the explanations always gloss over the parts I actually need help with. I can't figure out at all how I'm supposed to register it if I'm not already doing it right. Could you please just tell me what I have to do.
-
I tried this: Is this correct? Because it didn't work. Now the overlay doesn't happen at all.
-
I can't figure out how to create a client side event subscriber. Could you explain that? Also, I tried registering it in my client proxy, but I don't think i am doing it right. Would I just do it the same way i did it in my main as I showed above?
-
I have a custom gui overlay that tells the player the durability of the gas mask item while they are wearing it. It works perfectly in single player, but the server crashes when it loads. I know that this is because the server is trying to load the overlay, despite the fact that it is only able to be loaded on the client side. I know that I need to tell the server to not try to load it but I can't figure out how to do that. I've read a few different answers to similar questions and problems, but none of them fixed it. I don't know if I was doing it right when I tried to do what they said. My relevant code is and also the way I register it is
-
Ok thank you I got it working.
-
I've tried adding the annotation to the class like this: Then I tried adding that line from the tutorial into the main class: Then I tried something else in my registry handler but I forgot exactly what it was because I deleted all three of those changes after they didn't work.
-
That's what I read. And Jabelar's tutorial. I think I'm doing it wrong.
-
No. I can't figure out how, after trying multiple ways listed on the internet. Either I'm not doing it right, or it doesn't fix it. How would you recommend I go about it?
-
I'm trying to create a poisonous atmosphere in my custom dimension. The code is meant to give the player poison when they are in my dimension and they aren't wearing a gas mask. I can't tell why my code doesn't work. I tried added a println line in there but it didn't show up which probably means that the code isn't being called but I don't know why.
-
I added a dimension to my mod and a block to teleport between the Overworld and my dimension. It worked perfectly. It was very fast and loaded well. Suddenly, now when I load this dimension, I get stuck loading it forever and then it crashes if you try to exit to title. If you wait long enough, sometimes you'll see a single chunk load in my dimension, but that's about it. I don't know where the problem is, but I've been trying to solve it for hours. I did not make any permanent changes to the code. I added a small section that should've allowed for ores to generate in my dimension, which of course didn't work, and immediately went and undid that portion of my code. Everything is exactly as it was before, but it doesn't load like it did before. I am a noob at modding by the way, but I am really trying to get there. Please explain what you mean if you say something complicated. https://github.com/JonIsPatented/MoArmor1.0/blob/master/MoArmor.zip I'm brand new to posting on github too so this is just a zip file. It contains everything from main and beyond so that includes every java file and resource in my mod. Thank you so much in advance. It's really quite frustrating to have it working so flawlessly one second and the next second it's barely functional and after reverting all of your changes, the problem remains. I should clarify that I am running 1.12.2.