DragonITA
Members-
Posts
552 -
Joined
-
Last visited
Everything posted by DragonITA
-
[1.15.1] How to make a Block with a GUI (like a furnace)?
DragonITA replied to DragonITA's topic in Modder Support
Ahh, sorry, i forgot it. But where can I find tutorials for tile entities for 1.15.1? -
[1.15.1] How to make a Block with a GUI (like a furnace)?
DragonITA replied to DragonITA's topic in Modder Support
Is this something with tile entities? -
[1.15.1] How to make a Block with a GUI (like a furnace)?
DragonITA posted a topic in Modder Support
I think that the Title says it all and that I don't have anything further to say. How to make that i right click on a Bock and that the Block open a GUI. Then that the Gui work like a furnace. -
I only now realize that I don't know exactly what it is. And yes, I read the link, only I still don't know what it is.
-
You can read the Vanilla Code and then write your own entitymodel.
-
But i can use the RegistryEvent, or not?
-
Thanks for all the great Replys!
-
@EventBusSubscriber(modid = Main.MODID, bus = EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) public class Something(){ //Do something }
-
Like this:??? @EventBusSubscriber(modid = Main.MODID, bus = EventBusSubscriber.Bus.MOD, value = FMLEnvironment.Dist) public class Something(){ //Do something }
-
Wow, thanks for that answer. Now I understand everything except for one point: Why can't I use @OnlyIn and what should I replace it with (the docs is really outdated soon and I don't know what to use now. Strange, when I pressed ctrl + spacebar in the IDE, then normal white comes up with a whole bunch of variables/functions I can use, but I haven't seen any FMLEnvironment.Dist)? If it is, then how should I use it? Usually my IDE tells me, but I don't see anything.
-
My IDE don‘t find the FMLEnvironment.dist. I think it was outdated. How was I supposed to do it?
-
I read it, only dont have see the difference between client physical side and client logical side. this is what my IDE shows me (Tried to look at a vanilla code): @net.minecraftforge.api.distmarker.OnlyIn(value=net.minecraftforge.api.distmarker.Dist.CLIENT) I know it's exactly the same. But I don't understand that, even with the link you've already given. I just find it hard to understand that, and except for these four differences I don't understand at all. Why do you say I can't do it this way, but the vanilla code does exactly that? Could you explain it to me (And yes, I repeat, I read the link and still don't understand it)?
-
Can i replace it with world.isRemote ?
-
I resolved it.
-
[1.15.1] What is a EntityEntry and how to make one?
DragonITA replied to DragonITA's topic in Modder Support
I simple copy and paste the Text from the documentation. Sorry -
Have you tried to see the new Vanilla Code? If this setFull3D is missing then it got replaced with a new Thing. if it gow improved and changed then you will see this in the Vanilla Code.I think it's just been replaced. You can just look at the vanilla code and use the new replacement.
-
[1.15.1] What is a EntityEntry and how to make one?
DragonITA replied to DragonITA's topic in Modder Support
I am talking about the EntityEntry in the Registry of Forge. -
[1.15.1] What is a EntityEntry and how to make one?
DragonITA replied to DragonITA's topic in Modder Support
I found a Github Code but want know what the EntityEntry is and and why I have to use this EntityEntry and not the entity itself. Here is the Github Code. -
[1.15.1] What is a EntityEntry and how to make one?
DragonITA replied to DragonITA's topic in Modder Support
In this Link. Registering an Entity might be a little bit confusing at first as it doesn’t use the Entity class, but an EntityEntry. These are created by making use of EntityEntryBuilder.EntityEntryBuilder#id() is equivalent to the setRegistryName() method from IForgeRegistryEntry, with the difference that it also takes a mod internal int ID. A simple counter during registration is enough as this ID is only used for networking. -
The title say all: What is a EntityEntry and how to make/register a custom?
-
Oh, sorry. Then: Where should I implement it?
-
@diesieben07, i'm sorry, I was just checking to make sure. Ok, so if I understood and read well then I should implement the IForgeRegistryEntry in a class. The (hopefully last) question: Where should I implement it, in which class? I don't want to take any risk, but if I have read it then I have to implement it in my entity class. Am I right?
-
It simply is the Type of my Entity, my Entity in others word. Can i use my Entity like a EntityType? Edit: I was so stupid, the solution was before my eyes for the whole time. I already made an EntityType, just had to import it.
-
The titles says all. What is the best Method for registering things (example: Blocks, Items, Dimensions, …)? It just for know the best method and improve my modders skill.
-
Ok, thanks. What is a EntityType? Is this my Entity or something else? Auf jedenfalls arbeite ich gerade um dieses Problem lösen können. Should i replace the RenderingRegistry with the DeferredRegister? Ok, I know that I'm annoying you with my questions, and I also tried to look at some vanilla code, but all I need is this: In which folder is the Entity RenderRegistry? I'm looking for a solution to my problem right now, and as it is written in the tips from @DavidM: The best way to learn is to look at the vanilla code. So I've been thinking and want to look at a classic code. I'm just now noticing how many things I have to work on, so I want to finish this topic first and then improve myself, because it must be really annoying to try to help someone who doesn't know anything. Thanks for reading it.