Jump to content

Rokuw

Members
  • Posts

    15
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Rokuw's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Yeah, well, i'm gonna try it, but 99% chance i'll stick with falling sand
  2. That's pretty much it, i wanted to overwrite the sand block class with my own so that sand doesn't fall... I already know hot to stop its gravity, but how to "patch" the original class with my custom one is da thing
  3. I could post my code, but i use internal classes, and you're using public ones, and that would confuse you, i think.... If you want so, just say... As for your problem, could you post your "new" classes, please?
  4. Did you set the texture name in your block class as it is in my spoiler tag? (if you don't know, just click the 'hidden' button and you'll see the code that works)
  5. Rsrsrs, thats fine, i always make something like that too So anyways, Kennybenny, your block class should look like this: And your main class should look like this: Also, as you're not using fml init, you can just delete it, but that's up to you, since it makes no difference... I also noticed that you have an item called 'chunkPlatinum' and i bet that its texture isn't working aswell (i think you mentioned it, i don't remember)... I already fixed it in the preInit, just don't forget to set the texture name and creative tab in the 'super' method....
  6. The second one is right, but the first one is supposed to be like this: (...) orePlatinum = new BlockPlatOre().setBlockName("orePlatinum"); GameRegistry.registerBlock(orePlatinum, "orePlatinum"); (...) (no set block texture name) I hope it works this way
  7. By MODID i meant your actual mod id, which i think is moremetals, idk... but, if can also do as jtmnf said, to prevent typing erros... As for the creative tab, thats because you have to take it off of the preInit and put it in the 'super' constructor, as i said...
  8. Okay, thank you guys, i think that i'll stick with what i know of modding and try not to compliccate things... AskHow, as for the video, i really appreciate that you're trying to help me, but as i sad, i think i'll just stay with basic code, simply because i don't know java at all (thats because i'm 14 years old...) So yaeh, thats pretty much it, and again, Thanks!
  9. Try setting the texutre name under the 'super' constructor, and not in the preInit. It would also be nice to do the same thing with your creative tab... Your block class should look like this:
  10. Yeah well, thanks i suppose...
  11. I've changed some stuff here and now 1 fuel slot burns 2 input slots and returns the items in the 2 output slots... Tile Entity Class:
  12. Okay, so i should set the furnace item stack array to 3, the original value, and the additional slots ids to their respective function, correct? (0 = input, 1 = fuel and 2 = outut, right?) EDIT: i did change the ids, but as they were colliding (the originals with the addtionals) when i put an item in te furnace, obviously, the items duplicate aswell... I just want the additional slots to be "independent", like two furnaces in one block...
  13. Slots 0, 1 and 2 are the original, working ones. slots "4", 4 and 5 are the ones i added. And yes, i switched the first "4" id, it was supposed to be 3 (sorry about disrespecting you, '3' )... I changed '4' to '3' but they're still not working
  14. Oops, sorry, i forgot to add them All the classes should be there by now ^^
  15. Hey guys, this is my first post so please don't be harsh on me... if i commit any mistake, don't hesitate correcting me so that i improve my "posting abilities" . Anyways, as the title says, i made a custom furnace by looking at the codes of the vanilla furnace and some mods's furnaces, and i got my normal furnace to work. However, when trying to add 1 more slot of each (input, fuel and output), they just do nothing. Yes, the "original" ones are working, but the additional ones are useless. I am ,in fact, able to place items in both input and fuel slots and not able to put items in the output. These aspects are working. I just want to know what do i have to do to have them working normally. Also, as I'm new to both modding and java, please be patient; and if possible, maybe even adding some examples. The source code is on GitHub: https://github.com/pedromendes99/AmethystModSource/tree/master/src/main/java/com/rokuw/modding/furnaces/amethystfurnace Thanks for your time and sorry if there are grammar errors here, english is not my native language
×
×
  • Create New...

Important Information

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