Jump to content

Triphion

Members
  • Posts

    122
  • Joined

  • Last visited

Everything posted by Triphion

  1. And if i want to add durability it should be what exactly? The item? Or null? Because i want to add a durability of like 1000 on this staff and i do not know when this applies.
  2. But what should i do? When i add ItemStack Stack successfully it says that i need to remove @Override but then it's not working since it needs to be overriding. So i have no idea what i should add or remove. I tried removing that new itemstack after both "SUCCESS" and "FAIL", but it says that it has to have some sort of statement after which i have no idea what sort of statement it should be.
  3. I was following a tutorial on item with custom properties, didn't really look into what it actually did. This was the tutorial btw - http://couchdoescode.blogspot.se/2017/02/bonus-material-raytrace-and.html
  4. Well, i have been looking all over the internet and on every one of those durability posts there is ItemStack Stack in the onitemrightclick method, but when i did the onitemrightclick method, it wasn't mentioned in the method at all.
  5. I do not seem to understand how im supposed to give my item i've done durability. I've tried the setmaxdamage method aswell as stack.damageitem method, but when i do the stack.damageitem method it just gives me error saying that it isn't existing or something. So then i try to add Itemstack Stack in the upper session where the Player PlayerIn is an all that, but that doesn't work either. I just can't figure out what im supposed to have to succesfully get this to work. My item class - https://pastebin.com/1b3jg52a
  6. So, the matter is simple, i want to increase a beehive model that i have done to atleast over 1.5 block high. Preferably even higher. And as a sidematter, can one add different bounding boxes to the different sides of the "original" bounding box. Code - https://github.com/triphion/Ancientarius
  7. Thank you! That fixed it ^^
  8. So, here's the problem. I added objmodels into my mod very recently and everything has worked out fine in singleplayer, but when i try it in a forge server the server crashes and gives me an error about the objloader. So i don't really know what i should add/remove from the coding in order for it to work. OBS. (My mod has worked fine in servers before i added objmodels into my mod, and i do know how to create and use a minecraft server). Here is the crashlog - https://pastebin.com/r3a5yiQa
  9. Edit: I fixed it. Thank you all for the support. <3
  10. I have an .mtl and an .obj file located in the same directory. models\block. I'm setting up a repository right now so you can navigate through it quickly and maybe tell me exactly where i went wrong. Here it is: https://github.com/triphion/Ancientarius/tree/master/src
  11. Okey, so i found an error here, but i have no idea what im supposed to change to get rid of it since it looks like my objloader is executed. Caused by: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Error loading model previously: ancient:models/block/bee_box.obj at net.minecraftforge.client.model.obj.OBJLoader.loadModel(OBJLoader.java:103) ~[OBJLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 23 more Caused by: java.io.FileNotFoundException: ancient:models/block/beeboxers.mtl
  12. okey, here is the updated gist on my ancientmod class and my client proxy class. https://gist.githubusercontent.com/triphion/d5c39d6ba118e01c17d5c745e634fe88/raw/5d53bee8b2480c0d5cb7ff26e47ec07b4db19962/AncientariusMod%5Csrc%5Cmain%5Cjava%5Ccom%5Ctriphion%5Cancient%5CAncientMod.java https://gist.githubusercontent.com/triphion/d5c39d6ba118e01c17d5c745e634fe88/raw/5d53bee8b2480c0d5cb7ff26e47ec07b4db19962/AncientariusMod%5Csrc%5Cmain%5Cjava%5Ccom%5Ctriphion%5Cancient%5Cproxy%5CClientProxy.java
  13. So this should make the objloader work now? @EventHandler public void preInit(FMLPreInitializationEvent event) { ModBlocks.init(); ModItems.init(); ModTools.init(); ModArmour.init(); ModDevItems.init(); ModSpecialItems.init(); DevModArmour.init(); ModBlocks.register(); ModItems.register(); ModTools.register(); ModArmour.register(); ModDevItems.register(); ModSpecialItems.register(); DevModArmour.register(); proxy.preInit(); OBJLoader.INSTANCE.addDomain(Reference.MODID.toLowerCase()); proxy.registerRenders(); AchievementHandler.registerAchievements(); }
  14. I call proxy.init in my ancientmod class https://gist.githubusercontent.com/triphion/d5c39d6ba118e01c17d5c745e634fe88/raw/4196d98d76b9a8f9636433cb51395c15c579ed8d/AncientariusMod%5Csrc%5Cmain%5Cjava%5Ccom%5Ctriphion%5Cancient%5CAncientMod.java
  15. Okey, so withing proxy.preinit i should call objloader? Right? But in what class should i call proxy.preinit? In the Client proxy? Sorry if im being a complete imbecile here but im really trying lol.
  16. Well, heres the line of code in my client proxy (where i have called objloader): https://gist.githubusercontent.com/triphion/d5c39d6ba118e01c17d5c745e634fe88/raw/4196d98d76b9a8f9636433cb51395c15c579ed8d/AncientariusMod%5Csrc%5Cmain%5Cjava%5Ccom%5Ctriphion%5Cancient%5Cproxy%5CClientProxy.java and here's the pre init in my "standard class": https://gist.githubusercontent.com/triphion/d5c39d6ba118e01c17d5c745e634fe88/raw/4196d98d76b9a8f9636433cb51395c15c579ed8d/AncientariusMod%5Csrc%5Cmain%5Cjava%5Ccom%5Ctriphion%5Cancient%5CAncientMod.java
  17. [19:52:36] [Client thread/INFO] [FML]: OBJLoader: Domain ancient has been added. Is this line here proof of the objloader working? I'm sorry, but as i said im really new to this and im trying to learn so please be patient with me. ^^ And also, this is what comes up as error. What could this mean? [19:52:51] [Client thread/ERROR] [FML]: Could not load vanilla model parent 'ancient:block/bee_box.obj' for 'net.minecraft.client.renderer.block.model.ModelBlock@613da64b Exception loading model ancient:block/bee_box.obj with loader INSTANCE, skipping
  18. So in my blockclass then? Well, do my objmodel call work as it is right now? Or in what class should i call objloader?
  19. Block getregistryname should be in what class exactly? My block class or my modblock class?
  20. What do you mean? I have called objloader.instance.addomain (Reference.modid) in my client proxy class under pre init. Isn't that what i should do?
  21. I have already done so in my client proxy preinit. https://gist.github.com/triphion/d5c39d6ba118e01c17d5c745e634fe88#file-ancientariusmod-src-main-java-com-triphion-ancient-proxy-clientproxy-java And reference.modid should call it since my modid is written inside my reference class.
  22. I'm pretty new to modding, have no real knowledge of java so im not trying to do anything super advanced here, just a simple one block obj model that i've done. So here's the problem. I have for a few days been trying and searching all over the internet for support on how to render .obj models into my mod in minecraft. I've tried alot of things according to what people have been suggesting but all i get is either purple, black chess-like block or an invisible one with text on it. I have checked the destinations and such but i just can't get it to work. I register my block(s) in a file i call "modblocks" and my modid and such in a file called "reference". The code: https://gist.github.com/triphion/d5c39d6ba118e01c17d5c745e634fe88 The error: https://gist.github.com/triphion/c613989e139fdbe623213bcce75d6172
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.