• 0

    posted a message on Please help me, I want to mod with MC 1.9, but error... http://export.mcpbot.bspk.rs/versions.json failed with code 403
    Quote from UpcraftLP»

    And did you delete the .gradle folder (not that one in your workspace)?

    Yes Always.
    Posted in: Modification Development
  • 0

    posted a message on Please help me, I want to mod with MC 1.9, but error... http://export.mcpbot.bspk.rs/versions.json failed with code 403
    Quote from UpcraftLP»

    delete the .gradle folder in %userprofile%.

    Then backup your src folder from your workspace and delete the workspace.

    Download the newest forge MDK for your minecraft version and run the setup command again.

    gradlew setupDecompWorkspace eclipse

    this should take quite some time as it is re-downloading gradle and MinecraftForge.



    Im done this x5 before but its not working...

    Posted in: Modification Development
  • 0

    posted a message on Please help me, I want to mod with MC 1.9, but error... http://export.mcpbot.bspk.rs/versions.json failed with code 403

    Nothing Change...


    C:\Coding\Minecraft 1.9\TestMod>gradlew setupDecomWorkspace --refresh-dependenci
    es
    Etag download for http://export.mcpbot.bspk.rs/versions.json failed with code 40
    3

    FAILURE: Build failed with an exception.

    * Where:
    Build file 'C:\Coding\Minecraft 1.9\TestMod\build.gradle' line: 36

    * What went wrong:
    A problem occurred evaluating root project 'TestMod'.
    > java.lang.NullPointerException (no error message)

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --d opti
    on to get more log output.

    BUILD FAILED

    Total time: 2 mins 55.803 secs

    C:\Coding\Minecraft 1.9\TestMod>

    Posted in: Modification Development
  • 0

    posted a message on Please help me, I want to mod with MC 1.9, but error... http://export.mcpbot.bspk.rs/versions.json failed with code 403

    New Error


    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>cd C:\Coding\Minecraft 1.9\TestMod

    C:\Coding\Minecraft 1.9\TestMod>gradlew
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:189)
    at java.net.SocketInputStream.read(SocketInputStream.java:121)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:701)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:672)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLCo
    nnection.java:1534)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:1439)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480
    )
    at net.minecraftforge.gradle.common.BasePlugin.getWithEtag(BasePlugin.ja
    va:661)
    at net.minecraftforge.gradle.common.BasePlugin.getRemoteJsons(BasePlugin
    .java:213)
    at net.minecraftforge.gradle.common.BasePlugin.apply(BasePlugin.java:172
    )
    at net.minecraftforge.gradle.common.BasePlugin.apply(BasePlugin.java:89)

    at org.gradle.api.internal.plugins.ImperativeOnlyPluginApplicator.applyI
    mperative(ImperativeOnlyPluginApplicator.java:35)
    at org.gradle.api.internal.plugins.RuleBasedPluginApplicator.applyImpera
    tive(RuleBasedPluginApplicator.java:43)
    at org.gradle.api.internal.plugins.DefaultPluginManager.doApply(DefaultP
    luginManager.java:144)
    at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPlu
    ginManager.java:112)
    at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.appl
    yType(DefaultObjectConfigurationAction.java:112)
    at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.acce
    ss$200(DefaultObjectConfigurationAction.java:35)
    at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.ru
    n(DefaultObjectConfigurationAction.java:79)
    at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.exec
    ute(DefaultObjectConfigurationAction.java:135)
    at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPlu
    ginAware.java:46)
    at org.gradle.api.plugins.PluginAware$apply.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
    teArray.java:45)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
    llSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
    llSite.java:116)
    at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.gro
    ovy:34)
    at org.gradle.api.Script$apply$0.callCurrent(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
    (CallSiteArray.java:49)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
    tractCallSite.java:133)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
    tractCallSite.java:141)
    at build_9htxt9az5r54rgogtqlur46tp.run(C:\Coding\Minecraft 1.9\TestMod\b
    uild.gradle:15)
    at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptR
    unnerImpl.run(DefaultScriptRunnerFactory.java:91)
    at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$
    1.run(DefaultScriptPluginFactory.java:148)
    at org.gradle.configuration.ProjectScriptTarget.addConfiguration(Project
    ScriptTarget.java:72)
    at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.
    apply(DefaultScriptPluginFactory.java:153)
    at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildSc
    riptProcessor.java:38)
    at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildSc
    riptProcessor.java:25)
    at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.eva
    luate(ConfigureActionsProjectEvaluator.java:34)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(L
    ifecycleProjectEvaluator.java:55)
    at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj
    ect.java:491)
    at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj
    ect.java:89)
    at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(Task
    PathProjectEvaluator.java:42)
    at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuil
    dConfigurer.java:35)
    at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLa
    uncher.java:126)
    at org.gradle.internal.Factories$1.create(Factories.java:22)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
    tBuildOperationExecutor.java:90)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
    tBuildOperationExecutor.java:52)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
    GradleLauncher.java:123)
    at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGra
    dleLauncher.java:33)
    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
    eLauncher.java:100)
    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
    eLauncher.java:94)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
    tBuildOperationExecutor.java:90)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
    tBuildOperationExecutor.java:62)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
    Launcher.java:94)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
    cher.java:83)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon
    troller.run(InProcessBuildActionExecuter.java:94)
    at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(Exe
    cuteBuildActionRunner.java:28)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildA
    ctionRunner.java:35)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
    ssBuildActionExecuter.java:43)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
    ssBuildActionExecuter.java:28)
    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
    uousBuildActionExecuter.java:77)
    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
    uousBuildActionExecuter.java:47)
    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
    cute(DaemonUsageSuggestingBuildActionExecuter.java:51)
    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
    cute(DaemonUsageSuggestingBuildActionExecuter.java:28)
    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav
    a:170)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
    execute(CommandLineActionFactory.java:237)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
    execute(CommandLineActionFactory.java:210)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
    meValidationAction.java:35)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
    meValidationAction.java:24)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
    CommandLineActionFactory.java:206)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
    CommandLineActionFactory.java:169)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
    ortingAction.java:33)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
    ortingAction.java:22)
    at org.gradle.launcher.Main.doAction(Main.java:33)
    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots
    trap.java:54)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j
    ava:35)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja
    va:30)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

    FAILURE: Build failed with an exception.

    * Where:
    Build file 'C:\Coding\Minecraft 1.9\TestMod\build.gradle' line: 15

    * What went wrong:
    A problem occurred evaluating root project 'TestMod'.
    > Failed to apply plugin [id 'net.minecraftforge.gradle.forge']
    > Unable to obtain url (http://export.mcpbot.bspk.rs/versions.json) with etag
    !

    * 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: 1 mins 0.813 secs

    C:\Coding\Minecraft 1.9\TestMod>

    Posted in: Modification Development
  • 0

    posted a message on Please help me, I want to mod with MC 1.9, but error... http://export.mcpbot.bspk.rs/versions.json failed with code 403

    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.

    C:\Windows\system32>cd C:\Coding\Minecraft 1.9\TestMod

    C:\Coding\Minecraft 1.9\TestMod>gradlew build --stacktrace
    Etag download for http://export.mcpbot.bspk.rs/versions.json failed with code 40
    3

    FAILURE: Build failed with an exception.

    * Where:
    Build file 'C:\Coding\Minecraft 1.9\TestMod\build.gradle' line: 36

    * What went wrong:
    A problem occurred evaluating root project 'TestMod'.
    > java.lang.NullPointerException (no error message)

    * Try:
    Run with --info or --debug option to get more log output.

    * Exception is:
    org.gradle.api.GradleScriptException: A problem occurred evaluating root project
    'TestMod'.
    at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptR
    unnerImpl.run(DefaultScriptRunnerFactory.java:93)
    at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$
    1.run(DefaultScriptPluginFactory.java:148)
    at org.gradle.configuration.ProjectScriptTarget.addConfiguration(Project
    ScriptTarget.java:72)
    at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.
    apply(DefaultScriptPluginFactory.java:153)
    at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildSc
    riptProcessor.java:38)
    at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildSc
    riptProcessor.java:25)
    at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.eva
    luate(ConfigureActionsProjectEvaluator.java:34)
    at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(L
    ifecycleProjectEvaluator.java:55)
    at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj
    ect.java:491)
    at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProj
    ect.java:89)
    at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(Task
    PathProjectEvaluator.java:42)
    at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuil
    dConfigurer.java:35)
    at org.gradle.initialization.DefaultGradleLauncher$2.run(DefaultGradleLa
    uncher.java:126)
    at org.gradle.internal.Factories$1.create(Factories.java:22)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
    tBuildOperationExecutor.java:90)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
    tBuildOperationExecutor.java:52)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
    GradleLauncher.java:123)
    at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGra
    dleLauncher.java:33)
    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
    eLauncher.java:100)
    at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
    eLauncher.java:94)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
    tBuildOperationExecutor.java:90)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
    tBuildOperationExecutor.java:62)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
    Launcher.java:94)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
    cher.java:83)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon
    troller.run(InProcessBuildActionExecuter.java:94)
    at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(Exe
    cuteBuildActionRunner.java:28)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildA
    ctionRunner.java:35)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
    ssBuildActionExecuter.java:43)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
    ssBuildActionExecuter.java:28)
    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
    uousBuildActionExecuter.java:77)
    at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
    uousBuildActionExecuter.java:47)
    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
    cute(DaemonUsageSuggestingBuildActionExecuter.java:51)
    at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
    cute(DaemonUsageSuggestingBuildActionExecuter.java:28)
    at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
    at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav
    a:170)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
    execute(CommandLineActionFactory.java:237)
    at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
    execute(CommandLineActionFactory.java:210)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
    meValidationAction.java:35)
    at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
    meValidationAction.java:24)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
    CommandLineActionFactory.java:206)
    at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
    CommandLineActionFactory.java:169)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
    ortingAction.java:33)
    at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
    ortingAction.java:22)
    at org.gradle.launcher.Main.doAction(Main.java:33)
    at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots
    trap.java:54)
    at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j
    ava:35)
    at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
    at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja
    va:30)
    at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
    at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
    Caused by: java.lang.NullPointerException
    at net.minecraftforge.gradle.common.BaseExtension.checkMappings(BaseExte
    nsion.java:261)
    at net.minecraftforge.gradle.common.BaseExtension.setMappings(BaseExtens
    ion.java:240)
    at net.minecraftforge.gradle.user.patcherUser.forge.ForgeExtension_Decor
    ated.setMappings(Unknown Source)
    at org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.setPropert
    y(BeanDynamicObject.java:194)
    at org.gradle.api.internal.BeanDynamicObject.setProperty(BeanDynamicObje
    ct.java:111)
    at org.gradle.api.internal.CompositeDynamicObject.setProperty(CompositeD
    ynamicObject.java:104)
    at net.minecraftforge.gradle.user.patcherUser.forge.ForgeExtension_Decor
    ated.setProperty(Unknown Source)
    at build_9htxt9az5r54rgogtqlur46tp$_run_closure1.doCall(C:\Coding\Minecr
    aft 1.9\TestMod\build.gradle:36)
    at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedActi
    on.java:67)
    at org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.con
    figure(ExtensionsStorage.java:145)
    at org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(
    ExtensionsStorage.java:69)
    at org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicOb
    ject.invokeMethod(DefaultConvention.java:207)
    at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(Composite
    DynamicObject.java:150)
    at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:
    79)
    at build_9htxt9az5r54rgogtqlur46tp.run(C:\Coding\Minecraft 1.9\TestMod\b
    uild.gradle:27)
    at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptR
    unnerImpl.run(DefaultScriptRunnerFactory.java:91)
    ... 50 more


    BUILD FAILED

    Total time: 1 mins 0.75 secs

    C:\Coding\Minecraft 1.9\TestMod>

    Posted in: Modification Development
  • 0

    posted a message on Please help me, I want to mod with MC 1.9, but error... http://export.mcpbot.bspk.rs/versions.json failed with code 403

    C:\Coding\Minecraft 1.9\TestMod>gradlew
    Etag download for http://export.mcpbot.bspk.rs/versions.json failed with code 403

    FAILURE: Build failed with an exception.

    * Where:
    Build file 'C:\Coding\Minecraft 1.9\TestMod\build.gradle' line: 36

    * What went wrong:
    A problem occurred evaluating root project 'TestMod'.
    > java.lang.NullPointerException (no error message)

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --d opti
    on to get more log output.

    BUILD FAILED

    Total time: 58.006 secs

    C:\Coding\Minecraft 1.9\TestMod>

    Posted in: Modification Development
  • 0

    posted a message on DimensionalCraft v1.2.6 MC-1.8 [+2 Weapons +6 Dimension +8 Tools +*new Coal Armor] (Updated-8/14/2015) Less "OP" update.

    Update v1.2.6 8/14/2015


    v1.2.6[/b]


    Added Coal Armor

    Posted in: Minecraft Mods
  • 0

    posted a message on DimensionalCraft v1.2.6 MC-1.8 [+2 Weapons +6 Dimension +8 Tools +*new Coal Armor] (Updated-8/14/2015) Less "OP" update.

    Update v1.2.5 8/11/2015


    v1.2.5
    Changed Dimensions is no longer super op
    Changed Dimensions Main filter block is grass
    Changed Dimensions Secondary filter block is stone
    Fixed Emerald Igniter Crafting

    Posted in: Minecraft Mods
  • 0

    posted a message on Help 2 action instead 1

    Need more help please...

    Posted in: Modification Development
  • 0

    posted a message on Help 2 action instead 1

    Ok i fixed it now, thanks for helpers :), but i can't use the item anymore i used it only one time please help...

    Posted in: Modification Development
  • 0

    posted a message on Help 2 action instead 1
    Quote from TechMage66»

    Both methods onItemUse and onItemRightClick should give you a world parameter.

    I checked your code an you have called them worldIn ...


    So you can create a if statement to check if worldIn.isRemote (That should be possible in 1.7.10 and 1.8 aswell)


    TechMage66



    Quote from Alpvax»

    You are also making a pointless check: if(true) is completely unnecessary, the else part will never be called


    Where should i put this in my code part? Eclipse said rename in file...

    Posted in: Modification Development
  • 0

    posted a message on Help 2 action instead 1

    And this GlobalVariables.Usecount = GlobalVariables.Usecount + 1; Result in game is 2 how to fix it please help me....

    There's no world.isRemote in my codes.

    Posted in: Modification Development
  • 0

    posted a message on Help 2 action instead 1

    Please help me ...

    when i right click item, instead only 1 action, 2 action coming.

    example

    action: send message Hello World

    Output:

    1. Hello World

    2. Hello World


    2 action instead 1

    Please help me fix again...


    Code



    package com.jvbtwentyone.trymod.items;

    import java.util.List;

    import com.jvbtwentyone.trymod.GlobalVariables;

    import net.minecraft.client.Minecraft;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.nbt.NBTTagCompound;
    import net.minecraft.util.BlockPos;
    import net.minecraft.util.ChatComponentText;
    import net.minecraft.util.EnumChatFormatting;
    import net.minecraft.util.EnumFacing;
    import net.minecraft.world.World;
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.relauncher.SideOnly;

    public class ItemTry extends Item
    {
    @Override
    public boolean onItemUse(ItemStack stack, EntityPlayer playerIn, World worldIn, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ)
    {
    if(!playerIn.isSneaking())
    {
    if(stack.getTagCompound() == null)
    {
    stack.setTagCompound(new NBTTagCompound());
    }
    if(true){
    GlobalVariables.Usecount = GlobalVariables.Usecount + 1;
    NBTTagCompound nbt = new NBTTagCompound();
    nbt.setInteger("dim", playerIn.dimension);
    nbt.setInteger("posX", pos.getX());
    nbt.setInteger("posY", pos.getY());
    nbt.setInteger("posZ", pos.getZ());
    stack.getTagCompound().setTag("Trys", nbt);
    stack.setStackDisplayName(EnumChatFormatting.AQUA + "Trys Item");
    Minecraft.getMinecraft().thePlayer.sendChatMessage("======Your position======");
    Minecraft.getMinecraft().thePlayer.sendChatMessage("Dim " + playerIn.dimension + " X:" + pos.getX() + " Y:" + pos.getY() + " Z:" + pos.getZ());
    Minecraft.getMinecraft().thePlayer.sendChatMessage("/time set day");
    }
    }
    return false;
    }

    @Override
    public ItemStack onItemRightClick(ItemStack stack, World worldIn, EntityPlayer playerIn)
    {
    if(playerIn.isSneaking())
    {
    if(stack.getTagCompound() != null)
    {
    stack.getTagCompound().removeTag("Trys");
    stack.clearCustomName();
    GlobalVariables.Usecount = 0;
    }
    }
    return stack;
    }

    @Override
    @SideOnly(Side.CLIENT)
    public void addInformation(ItemStack stack, EntityPlayer playerIn, List tooltip, boolean advanced)
    {
    if(stack.getTagCompound() != null)
    {
    if(stack.getTagCompound().hasKey("Trys"))
    {
    NBTTagCompound nbt = (NBTTagCompound) stack.getTagCompound().getTag("Trys");
    int dim = nbt.getInteger("dim");
    int posX = nbt.getInteger("posX");
    int posY = nbt.getInteger("posY");
    int posZ = nbt.getInteger("posZ");
    tooltip.add("Dim " + dim + " X:" + posX + " Y:" + posY + " Z:" + posZ);
    tooltip.add("Usecount:" + GlobalVariables.Usecount);

    }
    }
    }

    @Override
    @SideOnly(Side.CLIENT)
    public boolean hasEffect(ItemStack stack)
    {
    if(stack.getTagCompound() != null)
    {
    return stack.getTagCompound().hasKey("Trys");
    }
    return false;
    }
    }

    Posted in: Modification Development
  • 0

    posted a message on Help me fix my mod
    Quote from DrCyano»

    The problem is that you are using the .getLocalizedName() function to register your block. You shouldn't used getUnlocalizedName() either. Instead, it should look like this: GameRegistry.registerBlock(try_block, "try_block");


    Even better is to initialize your blocks like this:


    Map< String, Block > modBlocks = new HashMap< String, Block >();
    Block try_block;
    private static Block addBlock(Block block, String name ){
    block.setUnlocalizedName(MODID+"."+name);
    GameRegistry.registerBlock(block, name);
    block.setCreativeTab(myItemGroup);
    modBlocks.put(name, block);
    return block;
    }
    //...
    try_block = addBlock(new BlockTry(),"try_block");
    //...
    // (client-side only)
    for(Map.Entry< String, Block > e : modBlocks.entrySet()){
    String name = e.getKey();
    Block block = e.getValue();
    Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
    .register(net.minecraft.item.Item.getItemFromBlock(block), 0,
    new ModelResourceLocation(MODID+":"+name, "inventory"));
    }



    Thank you very much buddy but i found the fix by help from a friend :)


    Fix

    Before:

    public static void register()
    {
    GameRegistry.registerBlock(try_block, try_block.getLocalizedName().substring(5));
    }

    After:

    public static void register()
    {
    GameRegistry.registerBlock(try_block, try_block.getUnlocalizedName().substring(5));
    }


    But your fix is good too :)


    Let me call you for help? maybe, can i?

    Posted in: Modification Development
  • 0

    posted a message on Help me fix my mod

    Please help me fix my mod block when i typed /give @p tm:try_blocks not working but /give @p tm:try_blocks.name working. Help me to remove .name in my block



    Heres the code.


    package com.jvbtwentyone.trymod.init;

    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.resources.model.ModelResourceLocation;
    import net.minecraft.item.Item;
    import net.minecraftforge.fml.common.registry.GameRegistry;

    import com.jvbtwentyone.trymod.Reference;
    import com.jvbtwentyone.trymod.blocks.BlockTry;

    public class TryBlocks {

    public static Block try_block;

    public static void init() {
    try_block = new BlockTry(Material.cloth).setUnlocalizedName("try_block");
    }

    public static void register()
    {
    GameRegistry.registerBlock(try_block, try_block.getLocalizedName().substring(5));
    }

    public static void registerRenders()
    {
    registerRender(try_block);
    }

    public static void registerRender(Block block)
    {
    Item item = Item.getItemFromBlock(block);
    Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
    }
    }

    Posted in: Modification Development
  • To post a comment, please or register a new account.