Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Awesome_Spider

Forge Modder
  • Posts

    892
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Awesome_Spider

  1. Oh, I forgot, do you have a block for your tile entity? The only way I know to spawn a tile entity is with a block that extends BlockContainer.

     

    In your tile entity, you would want to make it tickable, and in your update method scan the world for the right blocks.

     

    When your TileEntity finds the blocks, what would you want to happen? A texture change or something?

  2. When I click on the dependencies task in IntelliJ it finds my library (it says successful in the log below), it just doesn't appear in my External Libraries in IntelliJ.

     

    Is there something else I should be doing to get it to be usable?

     

     
    
    3:34:20 PM: Executing external task 'dependencies'...
    :dependencies
    
    ------------------------------------------------------------
    Root project
    ------------------------------------------------------------
    
    apiCompile - Dependencies for source set 'api'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    apiCompileClasspath - Compile classpath for source set 'api'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    apiCompileOnly - Compile dependencies for source set 'api'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    apiRuntime - Runtime dependencies for source set 'api'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    archives - Configuration for archive artifacts.
    No dependencies
    
    compile - Dependencies for source set 'main'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    compileClasspath - Compile classpath for source set 'main'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    compileOnly - Compile dependencies for source set 'main'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    default - Configuration for default artifacts.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    deobfCompile
    No dependencies
    
    deobfProvided
    No dependencies
    
    forgeGradleFfiDeps
    No dependencies
    
    forgeGradleGradleStart
    No dependencies
    
    forgeGradleMc
    \--- net.minecraftforge:forgeSrc:1.11-13.19.1.2189
    
    forgeGradleMcDeps
    +--- com.google.code.findbugs:jsr305:3.0.1
    +--- com.mojang:netty:1.6
    +--- oshi-project:oshi-core:1.1
    |    +--- net.java.dev.jna:jna:3.4.0
    |    \--- net.java.dev.jna:platform:3.4.0
    +--- net.java.dev.jna:jna:3.4.0
    +--- net.java.dev.jna:platform:3.4.0
    +--- com.ibm.icu:icu4j-core-mojang:51.2
    +--- net.sf.jopt-simple:jopt-simple:4.6
    +--- io.netty:netty-all:4.0.23.Final
    +--- com.google.guava:guava:17.0
    +--- org.apache.commons:commons-lang3:3.3.2
    +--- commons-io:commons-io:2.4
    +--- commons-codec:commons-codec:1.9
    +--- net.java.jutils:jutils:1.0.0
    +--- com.google.code.gson:gson:2.2.4
    +--- com.mojang:authlib:1.5.24
    |    +--- com.google.code.findbugs:jsr305:2.0.1 -> 3.0.1
    |    +--- com.google.guava:guava:17.0
    |    +--- org.apache.logging.log4j:log4j-core:2.0-beta9
    |    |    \--- org.apache.logging.log4j:log4j-api:2.0-beta9
    |    +--- commons-io:commons-io:2.4
    |    +--- org.apache.commons:commons-lang3:3.3.2
    |    +--- org.apache.logging.log4j:log4j-api:2.0-beta9
    |    +--- com.google.code.gson:gson:2.2.4
    |    \--- commons-codec:commons-codec:1.9
    +--- com.mojang:realms:1.10.4
    |    +--- org.apache.httpcomponents:httpcore:4.3.2
    |    +--- org.apache.httpcomponents:httpclient:4.3.3
    |    |    +--- org.apache.httpcomponents:httpcore:4.3.2
    |    |    +--- commons-logging:commons-logging:1.1.3
    |    |    \--- commons-codec:commons-codec:1.6 -> 1.9
    |    +--- org.apache.commons:commons-compress:1.8.1
    |    \--- commons-logging:commons-logging:1.1.3
    +--- org.apache.commons:commons-compress:1.8.1
    +--- org.apache.httpcomponents:httpclient:4.3.3 (*)
    +--- commons-logging:commons-logging:1.1.3
    +--- org.apache.httpcomponents:httpcore:4.3.2
    +--- it.unimi.dsi:fastutil:7.0.12_mojang
    +--- org.apache.logging.log4j:log4j-api:2.0-beta9
    +--- org.apache.logging.log4j:log4j-core:2.0-beta9 (*)
    +--- net.minecraft:launchwrapper:1.12
    |    +--- org.ow2.asm:asm-debug-all:5.0.3
    |    +--- org.apache.logging.log4j:log4j-core:2.0-beta9 (*)
    |    +--- net.sf.jopt-simple:jopt-simple:4.5 -> 4.6
    |    +--- org.lwjgl.lwjgl:lwjgl:2.9.1 -> 2.9.4-nightly-20150209
    |    |    +--- org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209
    |    |    \--- net.java.jinput:jinput:2.0.5
    |    |         +--- net.java.jutils:jutils:1.0.0
    |    |         \--- net.java.jinput:jinput-platform:2.0.5
    |    \--- org.apache.logging.log4j:log4j-api:2.0-beta9
    +--- jline:jline:2.13
    |    \--- org.fusesource.jansi:jansi:1.11
    +--- com.google.code.findbugs:jsr305:1.3.9 -> 3.0.1
    +--- org.ow2.asm:asm-debug-all:5.0.3
    +--- com.typesafe.akka:akka-actor_2.11:2.3.3
    |    +--- org.scala-lang:scala-library:2.11.1
    |    \--- com.typesafe:config:1.2.1
    +--- com.typesafe:config:1.2.1
    +--- org.scala-lang:scala-actors-migration_2.11:1.1.0
    |    +--- org.scala-lang:scala-library:2.11.0 -> 2.11.1
    |    +--- org.scala-lang:scala-actors:2.11.0
    |    |    \--- org.scala-lang:scala-library:2.11.0 -> 2.11.1
    |    \--- org.scala-lang.plugins:scala-continuations-library_2.11:1.0.1 -> 1.0.2
    |         \--- org.scala-lang:scala-library:2.11.1
    +--- org.scala-lang:scala-compiler:2.11.1
    |    +--- org.scala-lang:scala-library:2.11.1
    |    +--- org.scala-lang:scala-reflect:2.11.1
    |    |    \--- org.scala-lang:scala-library:2.11.1
    |    +--- org.scala-lang.modules:scala-xml_2.11:1.0.2
    |    |    \--- org.scala-lang:scala-library:2.11.1
    |    \--- org.scala-lang.modules:scala-parser-combinators_2.11:1.0.1
    |         \--- org.scala-lang:scala-library:2.11.0 -> 2.11.1
    +--- org.scala-lang.plugins:scala-continuations-library_2.11:1.0.2 (*)
    +--- org.scala-lang.plugins:scala-continuations-plugin_2.11.1:1.0.2
    |    +--- org.scala-lang:scala-compiler:2.11.1 (*)
    |    \--- org.scala-lang:scala-library:2.11.1
    +--- org.scala-lang:scala-library:2.11.1
    +--- org.scala-lang.modules:scala-parser-combinators_2.11:1.0.1 (*)
    +--- org.scala-lang:scala-reflect:2.11.1 (*)
    +--- org.scala-lang.modules:scala-swing_2.11:1.0.1
    |    \--- org.scala-lang:scala-library:2.11.0 -> 2.11.1
    +--- org.scala-lang.modules:scala-xml_2.11:1.0.2 (*)
    +--- lzma:lzma:0.0.1
    +--- net.sf.trove4j:trove4j:3.0.3
    +--- com.paulscode:codecjorbis:20101023
    |    \--- com.paulscode:soundsystem:20120107
    +--- com.paulscode:codecwav:20101023
    |    \--- com.paulscode:soundsystem:20120107
    +--- com.paulscode:libraryjavasound:20101123
    |    \--- com.paulscode:soundsystem:20120107
    +--- com.paulscode:librarylwjglopenal:20100824
    |    +--- com.paulscode:soundsystem:20120107
    |    \--- org.lwjgl.lwjgl:lwjgl:2.8.3 -> 2.9.4-nightly-20150209 (*)
    +--- com.paulscode:soundsystem:20120107
    +--- net.java.jinput:jinput:2.0.5 (*)
    +--- org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209 (*)
    +--- org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209
    |    \--- org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209 (*)
    \--- java3d:vecmath:1.5.2
    
    forgeGradleMcDepsClient
    +--- com.paulscode:codecjorbis:20101023
    |    \--- com.paulscode:soundsystem:20120107
    +--- com.paulscode:codecwav:20101023
    |    \--- com.paulscode:soundsystem:20120107
    +--- com.paulscode:libraryjavasound:20101123
    |    \--- com.paulscode:soundsystem:20120107
    +--- com.paulscode:librarylwjglopenal:20100824
    |    +--- com.paulscode:soundsystem:20120107
    |    \--- org.lwjgl.lwjgl:lwjgl:2.8.3 -> 2.9.4-nightly-20150209
    |         +--- org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209
    |         \--- net.java.jinput:jinput:2.0.5
    |              +--- net.java.jutils:jutils:1.0.0
    |              \--- net.java.jinput:jinput-platform:2.0.5
    +--- com.paulscode:soundsystem:20120107
    +--- net.java.jinput:jinput:2.0.5 (*)
    +--- org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209 (*)
    +--- org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209
    |    \--- org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209 (*)
    \--- java3d:vecmath:1.5.2
    
    forgeGradleMcNatives
    +--- org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209
    \--- net.java.jinput:jinput-platform:2.0.5
    
    forgeGradleMcpData
    \--- de.oceanlabs.mcp:mcp:1.11
    
    forgeGradleMcpMappings
    \--- de.oceanlabs.mcp:mcp_snapshot:20170127-1.11
    
    forgeGradleResolvedDeobfCompile
    No dependencies
    
    forgeGradleResovledDeobfProvided
    No dependencies
    
    forgeGradleUserDevPackage
    \--- net.minecraftforge:forge:1.11-13.19.1.2189
    
    provided
    No dependencies
    
    runtime - Runtime dependencies for source set 'main'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    testCompile - Dependencies for source set 'test'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    testCompileClasspath - Compile classpath for source set 'test'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    testCompileOnly - Compile dependencies for source set 'test'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    testRuntime - Runtime dependencies for source set 'test'.
    \--- wiseowl5.owlcore:owlcore:1.11-1.0.0
    
    BUILD SUCCESSFUL
    
    Total time: 2.388 secs
    3:34:23 PM: External task execution finished 'dependencies'.

     

  3. I've tried creating a maven repository on my computer and referencing it using this code in my build.gradle:

    repositories {
            maven {
                name = "OwlCore Repository"
                url = "file://C:\\Maven\\Repository"
            }
    }
    
    ...
    
    dependencies {
    	compile "wiseowl5.owlcore:owlcore:1.11-1.0.0:deobf"
    }

     

    Then I ran the gradle task dependencies (wasn't sure what else to run) and refreshed gradle.

     

    My library isn't appearing however, I'm probably doing this WAY wrong, but I couldn't find very much resources on this topic.

  4. I think this is the right place to post this, if it goes in Modder support you are welcome to move it there. I was experimenting with Gradle in an attempt a CoreMod (a library essentially) I made a dependency so I can reference some of its classes in my mod's code. So far I've had no luck with finding how to do this. Would I do this with my build.gradle somehow?

  5. Apparently they are trying to point us towards a website called xtu843. I haven't clicked on it, but when I search it on google is seems other forums have been targeted too. Just something interesting I've noticed.

     

    Btw keep up the good work on the forum software!

  6. 11 minutes ago, Awesome_Spider said:

    Edit: Sorry, I had to edit that picture real quick. It revealed confidential info.

    Sorry about that. I forgot I had edited my program arguments to use my minecraft account.

     

    Edit: I hadn't circled where it is, I've updated it again.

  7. 41 minutes ago, Animefan8888 said:

    Why are you separating EnumFacing.UP and EnumFacing.DOWN from the horizontals?

    I think I did because I didn't want it to accept power from the bottom or top. Not sure why I would have done that.

     

    44 minutes ago, Animefan8888 said:

    And in your PurifierMessageHandler handles powerRecieved as the power and not the change in power.

    I've looked at that. It is passed to updateProgressBar which calls setField which has this check:

     

    if(id == 2) {
    	if(value > 0){
    		energyStorage.receiveEnergy(value, false);
    	} else {
    		energyStorage.extractEnergy(Math.abs(value), false);
    	}
    
    	markDirty();
    }

     

    Is this a wrong way of doing it?

  8. I switched from the RF API to Forges power system recently, that's not a problem anymore. But I was optimizing/fixing errors in my code and I broke it again. I was trying to make a block that grabs power from generator blocks and it worked partially before trying to fix it. Before, in the gui it showed the power rising, but then it stopped gathering power before it was full. After changing the code the power does not rise at all visually.

     

    The following are the classes I changed:

     

    TileEntity:

    http://pastebin.com/RnXveEb8

     

    Container:

    http://pastebin.com/kkpie1AP

     

    MessageHandler:

    http://pastebin.com/Q7sctG4C

     

    Messge:

    http://pastebin.com/JYTnj5QP

     

    If you need anything else let me know.

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.