Jump to content

Flaghacker

Members
  • Posts

    53
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am learning how to mod!

Flaghacker's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  1. Thanks for your answers. I want to make a small mod that open a JFrame with a progress bar that tells the user how long Iit will take to start minecraft, how much % it is already done, ... It will do so by rembering the old log lines, and compare them with the current ones. The mod will not any game content, so shouldn't it be safe to use before*? I have another question: How can know when Minecraft is done starting, and the main menu is displayed? EDIT: Do you mean registering a custom appender for log4j?
  2. I have a couple of questions: How do I ensure my mod is loaded first, before any other mods? How can I "catch" all log messages from other mods & forge? Thanks in advance.
  3. I'm sorry, but I'm really new to modding. I don't understand much of your previous explenation. Could you explait it with an examle? Let's say I want to install an Api with mod name example_123. I download the universal mod jar (example_123.jar) and the Api files (\api). What do I have to do next then?
  4. And do I have to setup any dependencies or so? And what do I do with all the errors is the files? Like missing values because of missing files? (the ones that aren't in the api files)
  5. I want to try making a mod that uses the baubles API from Azanor (https://github.com/Azanor/Baubles) How can I install that API in my modding environment? What files do I need to copy to where?
  6. Yes, that was the problem! Thank you very much!
  7. This is the usage search: As you can see, the value is set once, in the constructor. Then it is mostly used in comparisons. This is the full code of my crop class: I tried changing it to a constant, 2 in this case: @Override public int getLightValue(IBlockAccess world, int x, int y, int z) { if (world.getBlockMetadata(x, y, z) >= 2) { return 16; } return 0; } But that gives the same problem.
  8. I currently have no access to my computer, I'm on mobile. I'll post the search data tomorrow. But how can something with that field be the problem? Do you think this only works on the client, so the server can't process the light?
  9. Two reasons: 1) To separate the code I wrote and the code I stole from the BlockCrops class. 2) If I (hypoteticcaly) ever want to use this class but set all the fields manually myself for whatever reason. But I don't think that matters for my problem about the light level. Maybe I'm using the wrong function?
  10. My block is a crop, so the metadata is the growthstage. (Me being dumb) I use this class to create different crops, this is the constructor. public CropMC(String name, int stages) { this(); this.name = name; this.stages = stages; this.maxMetaData = stages - 1; this.setBlockName(Reference.NAME_PREFIX + name); } public CropMC() { //Stolen from BlockCrops this.setTickRandomly(true); float f = 0.5F; this.setBlockBounds(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.25F, 0.5F + f); this.setCreativeTab(null); this.setHardness(0.0F); this.setStepSound(soundTypeGrass); this.disableStats(); } Shouldn't matter in this case, as the if is working. The crop looks light, but doesn't emit light. Screenshot to illustrate:
  11. I want my block to emit light when it's metadata is a certain value. I use this code to try to archive that: @Override public int getLightValue(IBlockAccess world, int x, int y, int z) { //this.maxMetaData is a value in my block's class, in this case 2. if (world.getBlockMetadata(x, y, z) >= this.maxMetaData) { return 16; } return 0; } This code only sets the light value of the block itself, the block doesn't actually emit light. How can I solve that?
  12. Everything is working perfectly, the items drop correctly, the crop grows, ... One problem, WAILA doesn't detect my crop as a crop any more. It doesn't show a percentage when I look at my crop. Is there any way to fix taht?
  13. Thanks to everyone in this thread, I managed to get the rendering & growing of my crop working. I got one (maybe even last?) question about crops: Is there a function "getDrops" or something similar where I can say "drop random.nextInt(3) seeds, drop 2 wheat"? Or do I need to use the functions func_149866_i (getSeedItem) and func_149865_P (getCropitem)?
  14. Thanks! And how about my canPlaceBlockOn not working? And what is the boolean in canBonemeal?
×
×
  • Create New...

Important Information

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