Jump to content

Mecblader

Members
  • Posts

    225
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Mecblader

  1. Hello, I have a custom rendered furnace in my mod and I have everything working fine, but there seems to be a lighting bug. The texture keeps flickering from bright to dark. I am not that good at Open_GL so i don't know whats wrong. I tried to disable lighting after the pushMatrix and enabling it before the popMatix, but I am still getting the bug. Rendering Code
  2. This is all you have to do. Create a custom class in your mod and make it extend BlockStairs. Then Just initialize just like you would initialize any other block. Also Why do you have the word new typed two times?
  3. This is a forum for Modders, not people who are having trouble with Vanilla!
  4. For my block with Guis I have a gui handler and then instead of the modifiaction of the player.openGui you should have FMLNetworkHandler.openGui(player, mod.instance, GuiID, world, x, y, z);
  5. Osmthing you may be able to do is make a HashMap of all of the Items that can be awarded (this would filter out non-accessible items and give you more customization) Then you could get a random int, from itemRand and get the item stack that corresponds to that item in the HashMap.
  6. Hello, I want to be able to make passive mobs attack player, if attacked, and adjust their damage according to their custom level that I have assigned. Is there a way to replace enemy AI or will I have to simulate that by teleporting the entity to player and on their collision the enemy takes damage. I think my method is long winded and I'm hoping someone else might have a better idea. All help is appreciated. Thank You.
  7. Honestly I do not understand why anyone is helping this person. He/She clearly does not know Java or doesn't know how to mod or is lazy and should figure this simple task out him/her self. The rules for the modders support also say that you should know Java to post. If you just give him/her the code he/she will learn nothing and this part of his/her mod would be your work, not theirs. I ask of everyone to please not responding to people who what other people to do all the work for them because it's a waste of time and they will get the idea that they can get other people to do work for them.
  8. Hello, I have a custom furnace gui. Every time a player opens the gui it creates a new instance, similar to the crafting table(each people has a separate gui and container). I have every thing working fine, but it has a bug, every time an item finishes smelting and the player takes it out it shows up in the player hand for a tick, but then disappears and turns back into the un-smelted form in slot that the original item goes back into. I think this may have something to do with client and server side stuff. I'll post my code at the bottom of this post(sorry for the messy code, I have tried to fix the bug by trying weird thing, but they have not worked and now my code is a messy ) Furnace Inv. Furnace Container Furnace Gui
  9. Make this tool a pick with the mining level you want if you want it as a pick, but then us this method: getStrVsBlock(ItemStack par1ItemStack, Block par2Block) You can set custom value for each block or i believe according to their material(don't quote me on that) Not sure if it is a good way, but it works.
  10. Is there a method that update every tick because I need this to update every tick, to make the furnace tick.
  11. Did you give the block a normal texture, one you would use for a regular block? I may be wrong but seems like you added a texture location for the regular texture, but did put the texture in, or you added a custom resource location for the custom rendered block and you happen to be referencing it some where. By the way: If you are using eclipse, the texture may have not updated. Try to refresh or restart your eclipse.
  12. Not entirely sure whats wrong, but why are you checking if it is day or night and the else is if it is raining? Would it not just teleport the player anyway because you checked if it is day or night, which it will always be.
  13. Then what solution do you suggest. I don't think that an ender furnace will be bad for my use, unless there is something code-wise that is bad about it. If there nothing bad with an ender furnace, then how would I accomplish this because I can not find a good way to get the player that is currently using the furnace, the way that I have found keeps copying the original players furnace inventory to its own inventory after it rapidly switches between the two inventories for a few seconds.
  14. Sorry, but could you explain further. What method could I get the player that is currently using the tile entity and how would IExtendedEntityProperties allow me to store the items in the furnace, is it just another set of nbt data that still exists after the player exits the Tile Entity?
  15. How would I go about, making a new instance?
  16. I'm not sure if I worded the title correctly, but I need a way to have my gui have a separates instance for each player. For example, the crafting table, when a player put in items ore blocks, another player can not see what is happening. I need that sort of thing for my custom furnace. If you know how I could do this, would this be difficult to accomplish. All help is appreciated. Thank you in advance.
  17. I don't really know how to make it emit a signal, but look at the Minecraft torch code for the detecting the adjacent blocks.
  18. Hello, I am creating a mod that has a custom furnace. I need a way to give the player who smelted ore in the furnace, a custom xp value. I can't find a method that detects when a player pulls out a an item from a specific slot and then give him/her xp according to what they pulled out. Also could someone tell me how i can make a specific slot not accept any items from a player, like slot 2 in a vanilla furnace. All help is appreciated, thank you in advance.
  19. You may run into computer permission problems, but you may be able to distribute the world in the mod file and then move it the saves folder in the world that was just created.(may increase world generation time when the world is initially made). The least complicated way I could think of doing something like this.
  20. I have been trying to make a tile entity for my mod that has buttons in the gui, like the beacon, but in an array(5x5). I have tried to rfference the becon code, but the code for the buttons is scattered and some of the methods and classes are private and protected. Does anyone have any tips or do I have to copy all of the classes and change then so that they can be used for my tile entity? All help is appreciated! Thank You in Advance!!!
  21. You could have your tick handler look for the armor in the slot by looking at the nbt data and when you take off the armor it disables
  22. Sorry, but I don't know what to put in for those parameters. I'm a noob Could you explain?
  23. You may be able to do something like when a water block is next to your block then it renders it as if the water is actually going though and make you block make its self act like a water block and continue the water, or another fluid that acts like water, on. If that made any sense. Sorry for the confusing answer, but that is the way I would do it. Good Luck
×
×
  • Create New...

Important Information

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