Jump to content

The_Fireplace

Forge Modder
  • Posts

    243
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by The_Fireplace

  1. I made a translucent block, and now, when placed, it lets the player see through any block next to it. See the following screenshot: And my block code: I did the block json files just like normal, nothing out of the ordinary. Anyone know how to fix this?
  2. Thanks. I know, and I am working on it. Thanks for taking the time to look in to this and help, I appreciate it.
  3. Yeah, no that's not how to make a repo. Clone + setupDecompWorkspace is enough if you provide the wrapper. See here for an example. Ok, should work now
  4. Ok, to set it up, what I do is clone it, download the latest version of Minecraft Forge, open the zip and delete the arc folder, then extract it over my existing files, replacing any that are the same. Then, I run setupforge.bat(a simple batch file, it runs gradlew setupDecompWorkspace then gradlew eclipse. Then, open eclipse and set it to the workspace as normal, and make sure to add the 2 jarslibsthe libs folder to the build path, as they are Fireplace Core sources and deobf. To reproduce the issue, run the client, make a new world in creative, get a Coal Gun out of the UnLogic II creative tab. Right click while holding it to make the error.
  5. Alright, did that(again and again and again), and I can't find any reason for it to be doing that. The itemstack in DataWatcher.writeTo is ItemBlockCoalGun, not null, and I have tried putting waypoints in various other spots mentioned in the error, all look like they should be working fine. Perhaps it just needs a fresh set of eyes. Anyways, I have made the mod open source for now, so it is easier to fix. Here is the link to the source. Any help is very much appreciated, and I will keep looking, and will let you know if I find the issue. EDIT: Here is the link to the error now, I renamed and moved the dummy block appropriately: http://paste.ubuntu.com/10971581/
  6. Ok, I see what you are saying, and have since fixed the ghost entities. As for the main issue, how would I go about finding and fixing it? I have looked and looked and can't find where it could be. On a side note, it looks to me like it is expecting to place it as a block and can't, and that could be why. at net.minecraft.network.NetHandlerPlayServer.processPlayerBlockPlacement(NetHandlerPlayServer.java:607) [NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:67) [C08PacketPlayerBlockPlacement.class:?] at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.processPacket(C08PacketPlayerBlockPlacement.java:114) [C08PacketPlayerBlockPlacement.class:?]
  7. Yes, everyone makes mistakes, as I did when wording that last post. I did not intend to call you stupid, but the people I had a discussion with earlier, but that was on a different, completely unrelated website, so I won't get in to that. And if you were referring to my first response, saying something stupid does not make you stupid. There are many smart people who say stupid things from time to time.
  8. "you can render a 3D model with an Item just fine" Could I see an example of that? Last time I tried finding out all I got was to make a dummy block. http://www.minecraftforge.net/forum/index.php/topic,29471.msg152198.html#msg152198 "Thank you for that quite insulting way of putting it" Sorry, I have dealt with a few too many stupid people today. As for the code example, it is in this file somewhere, I am on my phone right now, so it is easier just to post the file without narrowing it down. Here: https://dl.dropboxusercontent.com/s/t6307cffhs1flf1/The_Fireplace_unlogic-ii_master_src_main_java_the_fireplace_unlogicii_UnLogicII.java?dl=0
  9. Don't get me wrong, I appreciate your attempt to help, but, quite frankly, everything you just said was either unhelpful or stupid wrong. I will leave it to you to decide what was unhelpful and what was wrong.
  10. Ok, so I recently switched from using an Item for my gun to a dummy Block, so that I could have a 3D model. Now, when I right click it, it doesn't spawn the ammo, and prints the following error in to console: http://paste.ubuntu.com/10971581/ Here is my code: ItemBlockCoalGun: http://paste.ubuntu.com/10947721/ ItemCoalGun(The dummy block): http://paste.ubuntu.com/10947733/ EntityCoal: http://paste.ubuntu.com/10947748/ (doubt the code in the next 2 files is necessary to fix the problem, but here, in case it is) ExtendedPlayer: http://paste.ubuntu.com/10947750/ EnumAmmo: http://paste.ubuntu.com/10947768/ And I may as well include that I have this in my FMLPreInitializationEvent: GameRegistry.registerBlock(coal_gun, ItemBlockCoalGun.class, "coal_gun"); If you need any more code or details, let me know. EDIT: I have made the mod open source(for now), here is the full source.
  11. Is it possible to save a String array to a NBTTagCompound?
  12. Oh trust me, I know, that is why I said as a temporary solution, meaning a day or two at most. I would still like to to this, as long as it isn't overly difficult to achieve, I don't want to spend a lot of time setting this up when I can be setting up actual security.
  13. I am handling sensitive user data in a mod, and I am planning on adding encryption, and while I work on that, I was hoping perhaps I could store the data in an NBTTagCompound rather than the current format, a text file with a different extension, as a quick, temporary solution to users complaining about being able to read their information by opening the file in a text editor.
  14. My apologies in advance if this is a stupid question, as I am not sure I entirely understand the mechanics(?) behind NBT, but is it possible to save an NBTTagCompound as a file on the client, rather than on the server?
  15. I'm pretty sure armor doesn't use a json file for the texture, it still uses the old code. The icons for each piece of the armor are done like normal items.
  16. Ok, so I am making a way for my item to render with a 3D model, which involved making it into a dummy block with an ItemBlock and a TileEntity, and some special renderers. I am getting a crash when I run the game now, here is the report: https://docs.google.com/file/d/0B0Z9mjGyBjrKbFQ3U3NUWUNoZU0/edit?usp=docslist_api And my code: https://bitbucket.org/The_Fireplace/unlogic-ii/src/aff2a1c24ec0a2abe9dc101d6fd5b6b2020b06d8/src/main/java/the_fireplace/unlogicii/renderers/CoalGunTESR.java?at=master
  17. Ah, yes, that. It is the dummy block. Yes, it extends Block.
  18. public ItemBlockCoalGun() { super(UnLogicII.coal_gun); setMaxStackSize(1); setUnlocalizedName("coal_gun"); } Does that not cover the superclass's need for a block? Or does it have to be that way for some other reason?
  19. Ok, so I am trying to implement a dummy block so I can have an Item with a custom 3d model, and it crashes when I try running the game. So first, the crash report: http://pastebin.com/0p2W9v8L Second, the code I used to register the block(I have tried putting it in the PreInit and the Init): GameRegistry.registerBlock(coal_gun, ItemBlockCoalGun.class, "coal_gun"); Third, the ItemBlock: http://pastebin.com/mvw3MN9r
  20. Ok, second part of the question, is there any way for me to work around this without patching Minecraft?
  21. Ok, so I have done some testing, and if I make a language localization file for Spanish(es_ES) and then put the game in to Mexican Spanish(which I don't have a localization for), it defaults to English instead of Spain Spanish. Shouldn't it default to the same language from another country before going to another language?
  22. Thanks, that helped some. That, though, is for blocks with tile entities. Is there any way to do it without making a "block" item?(I am messing around now with the idea of a "block" that functions only as an item but renders with that code)
  23. Hi guys, I am trying to render an item with a custom model when the player is holding it. I found this tutorial, but RenderHelper.newRender[] doesn't exist anymore. Another thing I have tried is setting the parent in the json to "builtin/entity", but there doesn't seem to be any way to set which entity it renders as. Any help would be appreciated.
  24. Find me where it says that, I read the entire thing and didn't see where it says I am not allowed to render a cape on a player. Here is the link for convenience: https://account.mojang.com/documents/minecraft_eula Also, note to whoever designs the website, an Un-Thank button would be nice.
  25. Looking back at it, it is probably that I didn't tell the game how to render the texture... Still, I don't know how to fix it. Anyone know?
×
×
  • Create New...

Important Information

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