-
1.7.10 Help Crops
If you have read any of my previous posts you have noticed i am trying to make a custom crop. I have had much help and eventually ended up with it working. I mainly have been following this tutorial http://jabelarminecraft.blogspot.com.au/p/minecraft-forge-172-creating-custom.html And when i put this set of code (below) I get an error on the line incrementGrowStage(parWorld, parX, parY, parZ); Specifically incrementGrowStage part. I don't know what it is meaning as i have put the rest of the code from the tutorial into the relevant class ( i am mainly talking about the wrapper class if you would call it) here is my class for it so you can see and possibly tell me what i have done wrong or what i need to do: This is my last challenge i guess to get this working, i do have other issue but i will be able to fix them relatively easy (just for now it plants onto tilled dirt)
-
Custom Crop help 1.7.10
Just as a note every tutorial i have looked up for this part all tend to be for lower versions where the itemID matters and so when i copied it into my own code i didn't exactly know how to edit it so it was suitable for minecraft 1.7.10
-
Custom Crop help 1.7.10
Alright here it is
-
Custom Crop help 1.7.10
Well i edited that line so now it looks like: p_77648_3_.setBlock(p_77648_7_, p_77648_7_, p_77648_7_, ModBlocks.blockMagicEssenceCrop); This has stopped the crashing but it still does not plant, it does do the right click animation with the players hand just does not put anything on the tilled dirt
-
Custom Crop help 1.7.10
I added the @Override annotations where needed and the crash report changed slightly, when reading through i found this line at com.SirRoyGbiv.magicores.item.ItemMagicSeeds.onItemUse(ItemMagicSeeds.java:42) and when clicked on it brings me to this part of the code. p_77648_3_.setBlock(p_77648_4_, p_77648_5_ + 1, p_77648_6_, this.field_150925_a); What is it trying to tell me here?
-
Custom Crop help 1.7.10
Oh yes the crash report, sorry about not posting that, here it is then. as for the variable names i am working on it right now
-
Custom Crop help 1.7.10
Possibly easier to just show my seeds class and explain what is going wrong so here it is So you can see where i copied it and well i go into test it and well when i right click on tilled earth with my seeds i just crash, i don't have any errors and am not sure if i need to do something else within my custom crop class (the block one that actually grows)
-
Custom Crop help 1.7.10
Ok i did as you said and i immediately found this bit of code which i am guessing i will be needing? So what i have done i have copied it over to my custom seeds (hope that's the correct place for it) but i need a bit of help editing it.
-
Custom Crop help 1.7.10
Hey guys as the title says i need help with a custom crop. Specifically a crop like wheat. So far i have managed to make my seeds drop from grass when broken but that's as far as i have gotten. So right now i am trying to make it so when i right click on tilled dirt only it places my crop (i have it setup as a block because that's what all other tutorials say to do) so i guess i just want it so when i right click with my seeds they plant this block into the ground just like normal wheat. All tutorials i have looked at seem to be out dated for 1.5 or something lower like that. Any help is welcomed and thank you for reading PS if you NEED to see my classes that i have setup for my crop block or seeds please let me know and i will put them into a spoiler.
-
AL lib: (EE) alc_cleanup: 1 device not closed
Haha i see what i did wrong, haha thank you for pointing me to those two lines of code seems like i may have misspelt something wrong. Would not have found those bits of codes for days. Thank you very much
-
AL lib: (EE) alc_cleanup: 1 device not closed
Hey guys got the error stated in the heading while using eclipse to make a mod. I have simply tried to add one block and this is what has happened. Crash report below. I cannot find anything wrong but that's probably because i am quite tired at this point, so if you find what's wrong please let me know and how to fix it, thank you for your help P.S eclipse is not giving me any errors or anything at all.
-
Custom block gui
Hey guys, i am obviously a new modder for asking this i guess but i would like it so when i right click anywhere with an item it opens up a separate player gui that will look like the normal one just wont have an inventory, crafting section and instead of one armor slot will have two, how would i go about doing this? not finding any tutorials for 1.7.2 to do this
IPS spam blocked by CleanTalk.