Jump to content

sigurd4

Members
  • Posts

    137
  • Joined

  • Last visited

Everything posted by sigurd4

  1. i cant get it to work. i have seperate values for how much food it gives and how much saturation it gives. is it like this?: player.getFoodStats().addStats(food, saturation);
  2. how would i do this?i am making a whole bunch of different things you can right click to make something happen to the player including eating and drinking items and i want to have one universal class for them all that doesnt extend ItemFood. how do i modify the food bar like this? i have looked into the class and appearently it uses par3EntityPlayer.getFoodStats().func_151686_a(this, par1ItemStack); however this doesnt only accept ItemFoods in the first parameter. i also looked at an old thread about the excact same thing, but it was for 1.6.4 and i didnt understand the explanation, so since it was so old i decided to just make a new thread instead of posting anything there. is there a clever way to work around this with forge? anyone?
  3. where would i find that error message? it doesnt show if i right click it or hover over it.
  4. there is a red exclamation mark on the project icon and i dont know if this is something important or not. how do i fix this, and what does it mean?
  5. holy snoop doggy it works! HALELUHJA! Thank you so much! :DDDDD Cant wait to realease my mod now!
  6. the same thing happens. no errors, and a fairly empty jarfile.
  7. i have looked up tutorials on it, but i still cant figure out how to. when i try to it finishes in about 15 seconds without any errors. then, when i take a look in the jarfile, i realize that the only content inside it is a META INF folder and a MANIFEST.MF file, but no classes. i think it might be tat I've written down the wrong path to my classes, but i have checked and it is correct, so I'm not sure. my mod is located in (relative to gradlew.bat) /src/sigurd4/. the package is com.sigurd4.Bioshock. this is my build.gradle file: buildscript { repositories { mavenCentral() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } maven { name = "sonatype" url = "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' } } apply plugin: 'forge' version = "0.1.1" group= "com.sigurd4.Bioshock" archivesBaseName = "BioshockMod" minecraft { version = "1.7.2-10.12.1.1085" assetDir = "eclipse/assets" } dependencies { } processResources { inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' expand 'version':project.version, 'mcversion':project.minecraft.version } from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } please help? edit1: spelling
×
×
  • Create New...

Important Information

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