Jump to content

Xetapro12

Members
  • Posts

    204
  • Joined

  • Last visited

Everything posted by Xetapro12

  1. Help C:\Users\Marius\Desktop\BAATv1>gradlew build FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'BAATv1'. > Could not open buildscript class cache for build file 'C:\Users\Marius\Desktop \BAATv1\build.gradle' (C:\Users\Marius\.gradle\caches\2.0\scripts\build_4kfs959u hqpd5jcf0utepimoe8\ProjectScript\buildscript). > java.io.FileNotFoundException: C:\Users\Marius\.gradle\caches\2.0\scripts\b uild_4kfs959uhqpd5jcf0utepimoe8\ProjectScript\buildscript\cache.properties (Inge n tilgang) * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 2.494 secs C:\Users\Marius\Desktop\BAATv1> And here is the build.gradle 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 = "1.0" group= "com.BetterArmourAndTools.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "modid" minecraft { version = "1.7.10-10.13.2.1291" runDir = "eclipse" } 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.version, 'mcversion':project.minecraft.version } // copy everything else, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } } btw Ingen Tilgang si No Access
  2. Know
  3. Ehm i really dont know i found this at http://www.minecraftforge.net/forum/index.php?topic=8836.0
  4. Hey this happen when i do gradlew build BUILD FAILED Total time: 8.5 secs C:\Users\Marius\Desktop\1.7.10>gradlew build --info Starting Build Settings evaluated using empty settings script. Projects loaded. Root project using build file 'C:\Users\Marius\Desktop\1.7.10\b uild.gradle'. Included projects: [root project '1.7.10'] Evaluating root project '1.7.10' using build file 'C:\Users\Marius\Desktop\1.7.1 0\build.gradle'. **************************** Powered By MCP: http://mcp.ocean-labs.de/ Searge, ProfMobius, Fesh0r, R4wk, ZeuX, IngisKahn, bspkrs MCP Data version : unknown **************************** All projects evaluated. Selected primary task 'DefaultTaskParameter{taskName='build',projectPath='null'} ' Tasks to be executed: [task ':compileApiJava', task ':processApiResources', task ':apiClasses', task ':sourceMainJava', task ':compileJava', task ':processResou rces', task ':classes', task ':jar', task ':compileTestJava', task ':processTest Resources', task ':testClasses', task ':test', task ':extractMcpData', task ':ge tVersionJson', task ':extractUserDev', task ':genSrgs', task ':reobf', task ':as semble', task ':check', task ':build'] :compileApiJava (Thread[main,5,main]) started. :compileApiJava Skipping task ':compileApiJava' as it has no source files. :compileApiJava UP-TO-DATE :compileApiJava (Thread[main,5,main]) completed. Took 0.024 secs. :processApiResources (Thread[main,5,main]) started. :processApiResources Skipping task ':processApiResources' as it has no source files. :processApiResources UP-TO-DATE :processApiResources (Thread[main,5,main]) completed. Took 0.007 secs. :apiClasses (Thread[main,5,main]) started. :apiClasses Skipping task ':apiClasses' as it has no actions. :apiClasses UP-TO-DATE :apiClasses (Thread[main,5,main]) completed. Took 0.007 secs. :sourceMainJava (Thread[main,5,main]) started. :sourceMainJava Skipping task ':sourceMainJava' as it is up-to-date (took 0.07 secs). :sourceMainJava UP-TO-DATE :sourceMainJava (Thread[main,5,main]) completed. Took 0.08 secs. :compileJava (Thread[main,5,main]) started. :compileJava Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https://libraries.min ecraft.net//forgeSrc/1.7.10-10.13.2.1291/forgeSrc-1.7.10-10.13.2.1291.pom] Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https://libraries.min ecraft.net/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combi nators_2.11-1.0.1.pom] Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https://libraries.min ecraft.net/org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.pom] Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https://libraries.min ecraft.net/org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.pom] file or directory 'C:\Users\Marius\Desktop\1.7.10\libs', not found Skipping task ':compileJava' as it is up-to-date (took 1.134 secs). :compileJava UP-TO-DATE :compileJava (Thread[main,5,main]) completed. Took 1.145 secs. :processResources (Thread[main,5,main]) started. :processResources Skipping task ':processResources' as it is up-to-date (took 0.068 secs). :processResources UP-TO-DATE :processResources (Thread[main,5,main]) completed. Took 0.079 secs. :classes (Thread[main,5,main]) started. :classes Skipping task ':classes' as it has no actions. :classes UP-TO-DATE :classes (Thread[main,5,main]) completed. Took 0.006 secs. :jar (Thread[main,5,main]) started. :jar Skipping task ':jar' as it is up-to-date (took 0.038 secs). :jar UP-TO-DATE :jar (Thread[main,5,main]) completed. Took 0.048 secs. :compileTestJava (Thread[main,5,main]) started. :compileTestJava Skipping task ':compileTestJava' as it has no source files. :compileTestJava UP-TO-DATE :compileTestJava (Thread[main,5,main]) completed. Took 0.006 secs. :processTestResources (Thread[main,5,main]) started. :processTestResources Skipping task ':processTestResources' as it has no source files. :processTestResources UP-TO-DATE :processTestResources (Thread[main,5,main]) completed. Took 0.007 secs. :testClasses (Thread[main,5,main]) started. :testClasses Skipping task ':testClasses' as it has no actions. :testClasses UP-TO-DATE :testClasses (Thread[main,5,main]) completed. Took 0.006 secs. :test (Thread[main,5,main]) started. :test file or directory 'C:\Users\Marius\Desktop\1.7.10\build\classes\test', not found Skipping task ':test' as it has no source files. :test UP-TO-DATE :test (Thread[main,5,main]) completed. Took 0.008 secs. :extractMcpData (Thread[main,5,main]) started. :extractMcpData Skipping task ':extractMcpData' as it is up-to-date (took 0.004 secs). :extractMcpData UP-TO-DATE :extractMcpData (Thread[main,5,main]) completed. Took 0.01 secs. :getVersionJson (Thread[main,5,main]) started. :getVersionJson Executing task ':getVersionJson' (up-to-date check took 0.001 secs) due to: Task has not declared any outputs. :getVersionJson (Thread[main,5,main]) completed. Took 0.324 secs. :extractUserDev (Thread[main,5,main]) started. :extractUserDev Failed to get resource: GET. [HTTP HTTP/1.1 403 Forbidden: https://libraries.min ecraft.net/net/minecraftforge/forge/1.7.10-10.13.2.1291/forge-1.7.10-10.13.2.129 1.pom] Skipping task ':extractUserDev' as it is up-to-date (took 0.542 secs). :extractUserDev UP-TO-DATE :extractUserDev (Thread[main,5,main]) completed. Took 0.554 secs. :genSrgs (Thread[main,5,main]) started. :genSrgs Skipping task ':genSrgs' as task onlyIf is false. :genSrgs SKIPPED :genSrgs (Thread[main,5,main]) completed. Took 0.239 secs. :reobf (Thread[main,5,main]) started. :reobf Executing task ':reobf' (up-to-date check took 0.003 secs) due to: Output file C:\Users\Marius\Desktop\1.7.10\build\libs\modid-1.0.jar has change d. Output file C:\Users\Marius\Desktop\1.7.10\build\libs\modid-1.0.jar has change d. :reobf FAILED :reobf (Thread[main,5,main]) completed. Took 0.582 secs. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':reobf'. > MALFORMED * Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. BUILD FAILED Total time: 10.01 secs
  5. Hey can someone say what i did wrong here? ServerTickHandler.java int count = 0; int delay = 0; private void onPlayerTick(EntityPlayer player) { if(player.inventory.hasItem(BetterArmourAndTools.FlyRing) && player.capabilities.isCreativeMode == false && this.count < 100 && this.delay == 0) { player.capabilities.allowFlying = true; if(player.capabilities.isFlying){ this.count++; } if(this.count > 0 && !player.capabilities.isFlying){ count = 100; } System.out.println("We should be flying"); } else { this.count = 0; this.delay++; if (this.delay >= 320) { this.delay = 0; } player.capabilities.allowFlying = false; System.out.println("We should NOT be flying"); } System.out.println(this.count); System.out.println(this.delay); } FlyRing.java package com.BetterArmourAndTools.blocksitems; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.event.entity.player.PlayerEvent; public class FlyRing extends Item{ public FlyRing(int id) { super(); this.setCreativeTab(BetterArmourAndTools.rubyTab); this.setMaxStackSize(1); } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister reg){ this.itemIcon = reg.registerIcon("BetterArmourAndTools:FlyRing"); } }
  6. I know but this is my path Path C:\ProgramData\Oracle\Java\javapath\java.exe;C:\Program Files\Java\jdk1.8.0_11\bin\java.exe;.......
  7. Hey why this not work my path is at C:\ProgramData\Oracle\java\javapath\java.exe http://gyazo.com/7593aeb411625b3b0b0ba0c12e2c3427
  8. I know i know i gonna stop modding :'(
  9. Yeah Yeah its not the first time you say it . i have readed alot of java things but i really dont understand it better so im sorry about thet *Sad face PANDA!* :'(
  10. I know but this dont work http://gyazo.com/49f32b5a20327815d126115cb69b4f3d player.inventory and player.capabilities i try to use the easy fix but nothing pop up
  11. package com.BetterArmourAndTools.blocksitems; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.event.entity.player.PlayerEvent; public class FlyRing extends Item{ public FlyRing(int id){ super(); this.setCreativeTab(BetterArmourAndTools.rubyTab); this.setMaxStackSize(1); if(player.inventory.getCurrentItem() != null && player.inventory.getCurrentItem().ItemID == BetterArmourAndTools.FlyRing) { System.out.println("CALL"); player.capabilities.allowFlying = true; } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister reg){ this.itemIcon = reg.registerIcon("BetterArmourAndTools:FlyRing"); } } dont think this is the best thing to doo
  12. idk i found a annother code here on the forum and its from 1.6.4 just copy it and try making it work for i trying to Check if he have FLyRing in inventory he be allowed to have CreativeFly How i check for BetterArmourAndTools.FlyRing = true then player.capabilities.allowFlying how
  13. this really dont help http://gyazo.com/24c8b987a40c4e592f2b7ca0c9bbdd88
  14. the under ItemStack flyRIngItemStack is red and a fail whats wrong?
  15. What i do wrong? package com.BetterArmourAndTools.blocksitems; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.event.entity.player.PlayerEvent; public class FlyRing extends Item{ public FlyRing(int id){ super(); this.setCreativeTab(BetterArmourAndTools.rubyTab); this.setMaxStackSize(1); } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister reg){ this.itemIcon = reg.registerIcon("BetterArmourAndTools:FlyRing"); } public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5) { super.onUpdate(par1ItemStack, par2World, par3Entity, par4, par5); EntityPlayer player = (EntityPlayer) par3Entity; ItemStack flyingRingItemStack = new ItemStack(BetterArmourAndTools.FlyRing, 1, 0); for(i = 0; i <= 8; i++) { if(player.inventory.mainInventory[i] != null &amp;&amp; player.inventory.mainInventory[i].isItemEqual(flyingRingItemStack)) { player.capabilities.allowFlying = true; }else{ player.capabilites.allowFlying = false; } if(i == { i = 0; } } } }
  16. ehm no i dident have a other topic
  17. okey but then i get thes ugly stripes when have more glass together http://gyazo.com/19ea7a07209731fa636a7fb80d073884
  18. code: package com.BetterArmourAndTools.blocksitems; import java.util.Random; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.world.IBlockAccess; public class ClearGlass extends Block { public ClearGlass(int id, Material mat){ super(mat); this.setCreativeTab(BetterArmourAndTools.rubyTab); this.setHarvestLevel("pickaxe", 2); } public void registerBlockIcons(IIconRegister reg) { this.blockIcon = reg.registerIcon("BetterArmourAndTools:Glass"); } @Override public boolean isOpaqueCube() { return true; } public int quantityDropped(Random p_149745_1_) { return 0; } /** * Returns which pass should this block be rendered on. 0 for solids and 1 for alpha */ @SideOnly(Side.CLIENT) public int getRenderBlockPass() { return 0; } /** * If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc) */ public boolean renderAsNormalBlock() { return false; } /** * Return true if a player with Silk Touch can harvest this block directly, and not its normal drops. */ protected boolean canSilkHarvest() { return true; } } and why this happen: http://gyazo.com/38fe529f481962834cfd1fe38df4b335
  19. Here is a link to all my stuff
  20. I know the basic of C# so i cna make programs but Java there is a bit hard for me still and i cna HTML good so java hard for me still:/ *just saying i have it hard to learn new things*
  21. I know man but im not thet good at coding yet im still learning thing and the code from tinker's consturct is hard to understand for me
  22. you mean like this? package com.BetterArmourAndTools.main; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent; import net.minecraft.client.Minecraft; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; public class ServerTickHandler { @SubscribeEvent public void onPlayerTick(PlayerTickEvent event){ if(event.player.getCurrentArmor(0)!= null){ ItemStack boots = event.player.getCurrentArmor(0); if(boots.getItem() == Items.diamond_boots || boots.getItem() == Items.golden_boots || boots.getItem() == Items.iron_boots || boots.getItem() == Items.leather_boots || boots.getItem() == Items.chainmail_boots){ int j = EnchantmentHelper.getEnchantmentLevel(mainRegistry.speedBoost.effectId, boots); if(j > 0){ event.player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 50, j - 1)); } } } } }
  23. Hello i wonder how i can use my mod on a server for i cant ServerProxy package com.BetterArmourAndTools.main; public class ServerProxy { public void registerRenderThings(){ } } ServerTickHandler package com.BetterArmourAndTools.main; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.TickEvent.PlayerTickEvent; import net.minecraft.client.Minecraft; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; public class ServerTickHandler { private Minecraft mc; public ServerTickHandler(Minecraft mc){ this.mc = mc; } @SubscribeEvent public void onPlayerTick(PlayerTickEvent event){ if(event.player.getCurrentArmor(0)!= null){ ItemStack boots = event.player.getCurrentArmor(0); if(boots.getItem() == Items.diamond_boots || boots.getItem() == Items.golden_boots || boots.getItem() == Items.iron_boots || boots.getItem() == Items.leather_boots || boots.getItem() == Items.chainmail_boots){ int j = EnchantmentHelper.getEnchantmentLevel(mainRegistry.speedBoost.effectId, boots); if(j > 0){ event.player.addPotionEffect(new PotionEffect(Potion.moveSpeed.getId(), 50, j - 1)); } } } } }
  24. ehh? here is a picture of what i doing http://gyazo.com/07f22df1f164bc783c42bbd04b54d779 i want to make it like the Clear Glass form Tinker's Construct please help i really dont understand the getIcon thing here
×
×
  • Create New...

Important Information

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