
HaiDozo
Members-
Posts
19 -
Joined
-
Last visited
Everything posted by HaiDozo
-
Oh nice, how do you enable this? I've been manually writing it in the comment argument.
-
The Configuration .get method (I'm getting an int) has the arguments: (category, key, default, comment, min, max) but it's not enforcing the min and max values. I edited my config file and set a value to 1000, the code has min, max set to 0, 100 respectively, still I get a value of 1000. Configuration config = new Configuration(configFile); config.load(); mobEssenceDropRate = config.get(config.CATEGORY_GENERAL, "mobEssenceDropRate", MobEssenceDropRate_DEFAULT, "comment_here", 0, 100).getInt(); config.save(); Did I miss something or is it perhaps a bug in forge?
-
[1.9.4] OreDictionary.registerOre() not working
HaiDozo replied to HaiDozo's topic in Modder Support
Just tested for fun: OreDictionary.registerOre("plankWood", ItemManager.clinkerBrickItem); works! My item can be used as wood, but: OreDictionary.registerOre("ingotBrick", ItemManager.clinkerBrickItem); doesn't work, my item cannot be used as brick. (ingotBrick taken from http://www.minecraftforge.net/wiki/Common_Oredict_names) So... SOME items (e.g. plankWood) can indeed be "oreDict'ed" to craft vanilla stuff while others (e.g. ingotBrick) cannot. It was the BRICK all along causing mayhem. Mystery solved as far as I'm concerned Fruitful discussion, thanks all! -
[1.9.4] OreDictionary.registerOre() not working
HaiDozo replied to HaiDozo's topic in Modder Support
Yes, but still, now you have to know about the other mod and it's recipes and manually add each to your mod (with Shape/lessOreRecipe), right? I'm sure Thermal Expansion hasn't scanned through the Tinkers' recipes and added them to itself (in 1.7) but now with 1.9 they will have to do this, if I understand this correctly. So in 1.7 "MyFancyCopper" could be used to make Thermal Expansion copper things (without modifying TE), but in 1.9 this is no longer possible unless Thermal Expansion discovers the existence of my mod and specifically added MyFancyCopper into Thermal Expansion. Hmm... that kinda makes the ore dictionary completely non-functional, which sounds unlikely to me, which makes me doubt my understanding of this topic. I just might be a doofus haha. EDIT: Hold my horses! I think I understand everything now! OreDictionary.registerOre(MyWonderfulStuff) == other mods can use MyWonderfulStuff but MyWonderfulStuff can't be used to make vanilla things? Is this correct? -
[1.9.4] OreDictionary.registerOre() not working
HaiDozo replied to HaiDozo's topic in Modder Support
I was afraid that was the case. So in 1.9 you can no longer have intermod oredictionary materials unless you know the other mod? Like, you can no longer craft, say a Thermal expansion Copper block out of Tinkers' Copper ingots and vice versa (If those mods were available for 1.9) without the other mod knowing of/having access to the other? (Perhaps that's why it's taking so long for those big technical mods to go to 1.9, a lot of manual work.) -
[1.9.4] OreDictionary.registerOre() not working
HaiDozo replied to HaiDozo's topic in Modder Support
I think I've done a poor job at describing what I want to do and for that I apologize. Both of you are describing the reverse of what I'm trying to do. Your example specifies the item you wanna craft (blockSifter, blockMill). I wanna be able to craft all and any items that exists at present or future that uses that material. I don't know (or want to know) the item to craft, or the recipe, I wanna define that a material can be used as a substitute for another material. Example: sticks can be crafted with 2 Oakwood planks BUT it can ALSO be crafted with Birchwood planks, or Spruce, or Jungle or Acacia etc. I wanna add another material, say Deadwood planks that can be used in place of the others, to craft .. anything that can be crafted with the other wood types, be it sticks, workbenches or bowls. Well in my case I want an alternative to bricks but it's the same concept. Does that make sense? -
[1.9.4] OreDictionary.registerOre() not working
HaiDozo replied to HaiDozo's topic in Modder Support
Hmm, I still don't understand. Could you give me a short (pseudo)code example? -
[1.9.4] OreDictionary.registerOre() not working
HaiDozo replied to HaiDozo's topic in Modder Support
I don't follow... I still have to register all the recipes the item has? Granted brick only has two so it's easy but what if I made a plank, planks have like 11 different recipes, or maybe an item from a mod where I don't even know all the recipes? -
[1.9.4] OreDictionary.registerOre() not working
HaiDozo replied to HaiDozo's topic in Modder Support
So I have to manually recreate all the recipes the item I'm trying to mimic has? -
Here I go asking simply stupid questions again, or is it stupidly simple questions I'm trying to make my custom brick work as the vanilla brick with the ore dictionary. I'm registering it like this (it's called by CommoProxy.init()): The recipies (which also uses clinkerBrickItem) and smelting work fine but not the ore dictionary. I'm trying to make a flower pot in game with my bricks; no go. I looked up "ingotBrick" from some list online, I'm just assuming it's the right one for smelted single brick I also tried OreDictionary.registerOre("ingotBrick", new ItemStack(ItemManager.clinkerBrickItem)); which also didn't work. Tell me where I went wrong
-
Ah! I did not do that. Didn't know it was a thing. Looking for tutorials about the relation of blocks and ItemBlock: can't find any My google-fu must suck, or are there generally not many detailed tutorials available? I took a shot in the dark: saw something about registering ItemBlock(this) so I threw GameRegistry.register(new ItemBlock(this), getRegistryName()); into the constructor of my block and it works! Textures next! It's going slow but I'm making progress! Thansk again!
-
Great, thanks! It might help me with stuff, however looking at the block tutorial, I've already done what's in the tutorial and it's not working. The block is not ingame, neither as /give or in the creative menu (which I have put it in). I do have an item working so I have the basics done and working. My code (simplified) is like: That's the correct chain of events to register a block, right? Registering it twice crashes with "already registered that name" error, so the registering goes through, but it doesn't show up ingame. I don't even care about textures right now, I just wanna see that sweet, sweet black/magenta checker pattern This is so basic that I'm embarrased, but I'm not getting it to work Any thoughts?
-
I've been searching, on and off, for DAYS for a tutorial on how to make a block. I've searched this forum and also google, with no luck. I'm looking for a tutorial for 1.9 using blockstates and not using deprecated methods like registerBlock() or setBlockTextureName(). I'm sure there's a tutorial somewhere, right? Anyone know?
-
Hahaha, I was going to do something simple for my first mod, to get into modding. Turns out it can't be done (or at least not easily) . Ah well, I'll do something else Thanks for the help!
-
Aha! well.. almost. Is there a way to see, in ItemSmeltedEvent, what item was smelted? My custom item smelts into coal, there's event.smelting.getItem() which gives coal but how do I see what smelted into this coal? Granted, vanilla doesn't have anything that smelts into coal but another mod might, so I don't want to simply check if coal was taken out of the furnace, I want to make sure it was smelted from my custom item. Surely there's a way to see this?
-
I looked for events but couldn't find one for furnace stuff. Are there events for furnace interaction? Or did you mean something else with the events?
-
I looked for events but couldn't find one for furnace stuff. Are there events for furnace interaction? Or did you mean something else with the events?
-
Hello, I'm having trouble with my addSmelting recipe. I'm making an item that's supposed to give a bit more xp than other vanilla items, but I can't seem to get more than 1 xp from smelting my item. It seems: GameRegistry.addSmelting(input, output, 500.0f); gives the same amount of xp as: GameRegistry.addSmelting(input, output, 1.0f); How can I get more than 1 xp per smelted item? Thanks!
-
Hello, I'm having trouble with my addSmelting recipe. I'm making an item that's supposed to give a bit more xp than other vanilla items, but I can't seem to get more than 1 xp from smelting my item. It seems: GameRegistry.addSmelting(input, output, 500.0f); gives the same amount of xp as: GameRegistry.addSmelting(input, output, 1.0f); How can I get more than 1 xp per smelted item? Thanks!