-
Posts
785 -
Joined
-
Last visited
Converted
-
Gender
Male
-
URL
http://cloudolympus.ca
-
Location
Germany
-
Personal Text
Loading...
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
ItsAMysteriousYT's Achievements
Dragon Slayer (6/8)
7
Reputation
-
This is what im doing in the build.gradle file: /* // For those who want the bleeding edge buildscript { repositories { jcenter() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.0-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' */ // for people who want stable plugins { id "net.minecraftforge.gradle.forge" version "2.0.2" } version = "1.0" group= "de.itsamysterious.mods.reallifemod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "Real Life Mod Alpha" minecraft { version = "1.8-11.14.4.1563" runDir = "run" // the mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not allways work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20141130" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. } 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 // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, // except that these dependencies get remapped to your current MCP mappings //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // 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' } } jar { from zipTree("libs/RenderPlayerAPI-1.8-1.5.jar") } and this is the error i get: That is the stacktrace output with --stacktrace:
-
Don't do the initialization of the item in the item class - create a new class that will hold all your items and set them in the class' constructor. Like this: public class YourModItemClass{ public static Item yourItem,anotherItem,andAnotherItem; public YourModItemClass(){ yourItem=new YourItemClass(); } } [/spoiler] Then you do not have to put that whole init®istering stuff in each of your custom ItemClasses which makes your code much more comfortable
-
Get all Blocks from a tree when player hits a log
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
Yes, how i would destroy the leaves is clear, but i wanna get a list of blocks for each tree when they are generated - isn't this the best way? Cuz when i do with a fixed radius, i will destroy other trees and when i do it with neighbor blocks it will go on forever until there are no leaf blocks anymore -
Get all Blocks from a tree when player hits a log
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
Yea - i thought of that one too, but i need everything of the tree - logs&leaf's. I thought of making a List of all the trees with their logposition and then when a log is destroyed i loop through the list and look for the destroyed log. If it is is in one of the generated trees im gonna loop through the rest of the BlockPos-Array from this tree. All i need is a possibility to get every Block that is generated for a tree from the WorldGenTrees class. Is that possible? Or do i will have to use some class transformers? -
Get all Blocks from a tree when player hits a log
ItsAMysteriousYT replied to ItsAMysteriousYT's topic in Modder Support
A well okay Im pasting it here once ive done it. -
Hey there - i wanna get an array of all blocks belonging to a tree when the player hits/destroys one of the logs of it. I searched for a way but didn't find anything like that in vanilla classes - how can i do that?