Jump to content

themaw

Members
  • Posts

    53
  • Joined

  • Last visited

Recent Profile Visitors

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

themaw's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  1. This is my build.gradlew buildscript { repositories { jcenter() mavenCentral() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } maven { name = "sonatype" url = "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4' classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' } } apply plugin: 'forge' apply plugin: 'com.github.johnrengelman.shadow' version = "1.0" group= "me.mawmanager.mawpi" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "MawModI" minecraft { version = "1.7.10-10.13.4.1558-1.7.10" 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" compile files(fileTree(dir: 'libs', includes: ['*.jar'])) // 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 // https://mvnrepository.com/artifact/commons-net/commons-net compile group: 'commons-net', name: 'commons-net', version: '3.6' // 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 //include(dependency('commons-net:commons-net:3.6')) // 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' } } PS:No file in the libs folder.
  2. I'm trying to use the FTPClient part of the 'apache-common-net.jar' But I don't know how to extract this lib to my build mod. Should I build the jar by MCP and shadow plugin? But I don't know what to do. I had been trouble by this for serveral days.
  3. XD I think I need an example...
  4. There is a file called 'latset.log' at the .minecraft/logs. How do I create a new log record player behavior and output to the '. Minecraft/logs/playerinteract. Log 'file?
  5. There is a problem in my server MOD, a wrong recipe was put in the compositing table. Now just put the glass board into the compositing table, the client will crash. Is there a way to correct its Class or cancel its composite recipe? I don't want to delete this MOD. Apart from this BUG, it's still great.
  6. It's my fault. Now I had fix this by edit the build.gradle I forget to edit the depencies 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" compile files('libs/Ecomoylite.jar') compile files('libs/FlexibleLogin.jar') compile files('libs/SpongeApi.jar') // 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 } (Yeah,they are sponge and plugin,but now I can import them as mod,and with out build error)
  7. This is helpful.But I need more imformation.
  8. I'll try it. If I want to import lib to my mod,what should I do to prevent the error which appeared when the 'gradle build' run?
  9. I want to make my mod use a login mod's API if the mod was exist. What should I do to know whether the class/package of the API mod had been loaded? (And my Mod need works without the API Mod loading, with only a small amount of code enabled)
  10. It looks great. You should create a main guiscreen first. Second,display playes's data at the top hub. Third,design a class of the data which will display at gui as a "BuyingItemTab". Fourth,create a GUIdrawing class to handle the "BuyingItemTab" and display it. You can not creeate a gui like this directly. Or you can find some useful code at the minecraft code about the MODLIST OF MAIN MENU
  11. I had already registered the permission in this way: PermissionAPI.registerNode("permission", DefaultPermissionLevel.OP, "permission"); And how to set players' permission?
  12. How stupid I was... I thought it had to be a subclass of Item to register with the CreativeTab Now I find that someone else's code registers the CreativeTab directly in the Block Thank you for your answers
  13. ItemBlock had been registered,but it do not display in the creativetab
  14. I use this void: public static ItemBlock createItemBlock(Block b) { ItemBlock b2 = new ItemBlock(b); b2 .setRegistryName(b.getRegistryName()) .setUnlocalizedName(b.getUnlocalizedName()) .setCreativeTab(Client.tab1); return b2; } But it do not work
×
×
  • Create New...

Important Information

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