Jump to content

Fergoman007

Members
  • Posts

    23
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    Australia
  • Personal Text
    I am newly trying modding

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Fergoman007's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. i was wondering how you would open the new config gui in world and by using keybind. Note that i have already got the framework for the keybind in place and was a bit stuck on how to open the gui
  2. i am having trouble try to get my mod to export mod files with different build number This is my current build script 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' ext.configFile = file "build.properties" configFile.withReader{ def prop = new Properties() prop.load(it) ext.config = new ConfigSlurper().parse prop } ext.buildnumber = 0 if (System.getenv().BUILD_NUMBER) project.buildnumber = System.getenv().BUILD_NUMBER logger.lifecycle "Building Version: " + project.config.buildnumber project.buildnumber += 1 version = config.mod_version group= "fergoman123.mods.fergoutil" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "FergoUtil" minecraft { version = config.minecraft_version + "-" + config.forge_version assetDir = "eclipse/assets" replaceIn "fergoman123/mods/fergoutil/lib/ModInfo.java" replace "@mod_version@", project.version replace "@mcVersion@", project.config.minecraft_version replace "@forge_version@", project.config.forge_version replace "@buildNum@", project.buildnumber } version = "${config.minecraft_version}-${config.mod_version}-${buildnumber}" dependencies { // you may put jars on which you depend on in ./libs // or you may define them like so.. //compile "some.group:artifact:version:classifier" //compile "some.group:artifact:version" // real examples //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // for more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } processResources { // this will ensure that this task is redone when the versions change. inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' // replace version and mcversion expand 'version':project.config.mod_version, 'mcversion':project.config.mcVersion } // copy everything else, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } Any Help is appreciated
  3. with the haseffect method use this because that version of hasEffect is depreciated @SideOnly(Side.CLIENT) public boolean hasEffect(ItemStack par1ItemStack, int pass) { return true; }
  4. it played around with it a bit and still getting the the extra set of 3x3 Edit corrected spelling
  5. what i meant was that it is breaking two sets of 3x3 on the x/z public boolean onBlockDestroyed(ItemStack stack, World world, Block block, int x, int y, int z, EntityLivingBase elb) { // Vanilla Blocks boolean isCobble = world.getBlock(x, y, z) == Blocks.cobblestone; boolean isStone = world.getBlock(x, y, z) == Blocks.stone; boolean isStoneBrick = world.getBlock(x, y, z) == Blocks.stonebrick; boolean isSandtone = world.getBlock(x, y, z) == Blocks.sandstone; boolean isOreExperience = world.getBlock(x, y, z) == ModBlocks.oreExperience; boolean isOreObsidian = world.getBlock(x, y, z) == ModBlocks.oreObsidian; boolean isOreEmeraldCrystal = world.getBlock(x, y, z) == ModBlocks.oreEmeraldCrystal; boolean isOreLapisCrystal = world.getBlock(x, y, z) == ModBlocks.oreLapisCrystal; boolean isOreBronze = world.getBlock(x, y, z) == ModBlocks.oreBronze; boolean isOreAdamantium = world.getBlock(x, y, z) == ModBlocks.oreAdamantium; boolean[] vanillaBlocks = new boolean[]{isCobble, isStone, isStoneBrick, isSandtone}; boolean[] fergoToolsOres = new boolean[]{isOreExperience, isOreObsidian, isOreEmeraldCrystal, isOreLapisCrystal, isOreBronze, isOreAdamantium}; if(vanillaBlocks[0] || vanillaBlocks[1] || vanillaBlocks[2] || fergoToolsOres[0] || fergoToolsOres[1] || fergoToolsOres[2] || fergoToolsOres[3] || fergoToolsOres[4] || fergoToolsOres[5] || world.getBlock(x, y, z) != Blocks.bedrock) { for(int ix = -1; ix < 2; ++ix) { for (int iy = -1; iy < 2; ++iy) { for (int iz = -1; iz < 2; ++iz) { world.func_147480_a(x + ix, y + iy, z + iz, true); stack.setItemDamage(stack.getItemDamage() - 9); } } } return true; } else { return false; } } Edit: added Code to Reply
  6. it works now but now the problem is that it is breaking two sets of of 3x3 Edit: corrected spelling
  7. ok this is what i have tried this has not worked public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float px, float py, float pz) { boolean isCobble = world.getBlock(x, y, z) == Blocks.cobblestone; boolean isStone = world.getBlock(x, y, z) == Blocks.stone; boolean isStoneBrick = world.getBlock(x, y, z) == Blocks.stonebrick; if(isCobble || isStone || isStoneBrick){ for (int ix = -1; x < 2; x++) { for (int iy = -1; x < 2; x++) { for (int iz = -1; x < 2; x++) { world.func_147480_a(x + ix, y + iy, z + iz, true); } } } return true; } else { System.out.println("[FergoTools] False"); return false; } }
  8. Where exactly would I put the onBlockDestroyedByPlayer method
  9. nothing yet i am trying to figure how it can be done
  10. i would like to know how to make a hammer for my mod that would break blocks in a 3x3 area any help would be appreciated Thanks Fergoman007
  11. it's not just one tool it all of the all of the and something to note it that the textures for the tools aren't displaying either
  12. Hi what did you mean by registering it properly ?
×
×
  • Create New...

Important Information

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