Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

nocot

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutral

About nocot

  • Rank
    Tree Puncher
  1. Hi, I'm planning to create a mod from scratch and I'm wondering if it's the right time to start with 1.13.2, or it will be better to stay with the 1.12 versions. I would like to target into the future, but is the newest Forge already stable enough for regular modding?
  2. Hello, I need a general advice on the entities. Most tutorials found in google on how to create an entity are showing how to make an entity that extends another entity (e.g. how to make custom mob), but I haven't found anything for making an entire entity from scratch. Do you have any general advice or tutorial on how to make an independent entity physically appear in the world? I already know how to register entity, I just don't know how to make it placeable. Let's say I want to make a moving box. I have the entity properly registered, and it has its own class. I have its model and textures
  3. As I wrote in my first post, this is my RenderHandler class: public class RenderHandler { public static void registerEntityRenders() { RenderingRegistry.registerEntityRenderingHandler(EntityTramc.class, new IRenderFactory<EntityTramc>() { @Override public Render<? super EntityTramc> createRenderFor(RenderManager manager) { return new RenderTramc(manager); }); } } And RenderTramc() : @SideOnly(Side.CLIENT) public class RenderTramc extends RenderMinecart<EntityTramc> { public RenderTramc(RenderManager renderManagerIn) { super(ren
  4. Is there a significant case that is making so many people stay with such obsolete Minecraft versions? Is that because of compatibility with some old mods or what?
  5. Hello again; so I'm back into Minecraft modding. I analyzed my code a bit and it seems like an overriding function for rendering function is never being called. And why I think it is so - it's because when I create my own minecart entity, it spawns a regular modelled minecart, without null pointer exception or any graphical issues - and a default minecart model in my entity is never replaced by my mod (I don't mean replace original minecart model, but my modded entity model - default is minecart). So, am I thinking right? Also, I tried to register entity renders in model loader wit
  6. Hi, I've finally got to work my custom minecart entity called EntityTramc which extends EntityMinecart and for testing purposes, it has ride ability turned off and does nothing besides that. And it got to work. To replace a model of minecart into a testing box (which will become a tram soon), I created a class called RenderTramc: @SideOnly(Side.CLIENT) public class RenderTramc extends RenderMinecart<EntityTramc> { public RenderTramc(RenderManager renderManagerIn) { super(renderManagerIn); this.modelMinecart = new ModelTramc(); System.out.pr
  7. Hello again. I copied ItemMinecart to my own item which I called ItemTram so I can use it like a normal minecart placer. Then I created an entity which temporarly just extends EntityMinecart and do nothing more. The problem started when I tried to change an entity calling function in my ItemTram class: EntityMinecart entityminecart = EntityMinecart.create(world, d0, d1 + d3, d2, ((ItemMinecart)stack.getItem()).minecartType); to call my new entity: EntityTram entityminecart = EntityTram.create(world, d0, d1 + d3, d2, ((ItemTram)stack.getItem()).minecartType); and my
  8. Thank you for the answer. Well, it has to be moving around the world by a track, like a minecart. So I think I'll start with creating an entity based on minecart's one and slightly modifying it. I think it will be a good point to start with entities and to better understand them.
  9. Ahh yeah, forgive me, I'm just a begginner and I just don't understand many things that good. But that's my bad. I must have misinterpretated informations about entities that I've searched, so I must go back and study about it. I think, that's it.
  10. I'm still on deep research part, so I haven't started writing a mod for good. I think a train cannot be loaded as a block if it has to be moveable - but maybe I'm wrong and something has changed. I know that entity stuff will come for me with writing a train physics and so on, but I still think that making an entity just for displaying a 3D model is a way too complicated and I look for other methods. So, making a train an item isn't that bad idea? I heard that a minecart did something like that too.
  11. I'm trying to render a train as a normal 3D object, just as any other block or item in the world; so not as the part of HUD. Is it possible to render it as a 3D item, in a player independent position?
  12. I'm creating a train mod and I need to place a train object that will change its position every frame (to look like it's moving). I found two modelling programs - Tabula and Workbench. The first one creates a class file that is probably a tesselator instruction set. The second one can create .json and .obj file. All I want is to render a model in a fixed position and rotation that can change every frame. So I mean, I just want to call some function like this every frame: @SubscribeEvent public int renderTrain(blahblahEveryFrameEvent event) { renderTrain(MY_MODEL, XPOS, YPOS, Z
  13. I'm creating a mod based on external libraries that are making snapshots from videos. My goal is to use these snapshots - made as buffered images - to display them in a GUI. My problem is that when an event is converting a buffered image into a dynamic texture, the game eventually crashes. Despite my tryings, I still get the same error with the same function. Here is my crash report: ---- Minecraft Crash Report ---- // You're mean. Time: 8/1/18 8:10 PM Description: Exception in server tick loop java.lang.RuntimeException: No OpenGL context found in the current thread. at org.lwjgl.openg
  14. Oh right, I made a mistake. It got to work now, thank you.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.