-
Add client side only effect
Im trying to add an outline to some entities in 1.8.9, I know this forum doesn't want people talking about older versions, but 1.8 modding is still pretty popular so, maybe that rule could use some changes?
-
Add client side only effect
Is it even possible to give some entities on a server some effects but only the client can see them?
-
Get scoreboard contents
Because I am making a 1.8.9 mod, I don't know how to set the IDE's autocomplete version.
-
Get scoreboard contents
Solved, borrowed some code from skyblockaddons
-
Get scoreboard contents
I did not find that in javadocs (https://skmedix.github.io/ForgeJavaDocs/javadoc/forge/1.9.4-12.17.0.2051/net/minecraft/client/gui/Gui.html), can you give me a working example please? I think if I can see the code I can understand what im doing wrong, ty.
-
Get scoreboard contents
Objective.getDisplayName only gets the title for some reason, i want each line in the sidebar for example if I do for (int i = 0; i < 11; i++) { ScoreObjective objective = scoreboard.getObjectiveInDisplaySlot(i); if (objective == null) Utils.sendPrivateMessage(i + "null"); else Utils.sendPrivateMessage(i + objective.getDisplayName()); none of the lines gets sent to chat, only the scoreboard title and "null"s
-
Get scoreboard contents
Yes I tried scoreboard.getObjectiveNames() but its still the last three characters of each line, can I get a working example? ty Edit actually its not 3 characters if I do `new ArrayList<>(scoreboard.getObjectiveNames())`, instead its the last half of each line. for example "Games in this lobby are " will be "s lobby are"
-
Get scoreboard contents
How can I get the entire content of the scoreboard? Rn i'm using this code https://gist.github.com/anonymous/a96d876851d637bad91ad0aa9b161097 but I'm only getting the last 3 characters of each line. Because I didn't find any solutions anywhere and I don't understant those two functions that much im sort of stuck
-
Give all entities of a certain type in a world outlines
I'm not sure how to do that, I want only the player to see this taking effect, not the other players on the server.
-
Set -source level in Intellij
// 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.1-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' /* // for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot plugins { id "net.minecraftforge.gradle.forge" version "2.0.2" } */ version = "1.0" group = "io.github.kirk-kd.skyblockmod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "skyblockmod" minecraft { version = "1.8.9-11.15.1.2318-1.8.9" 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_20150617" // 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' } } This is my build.gradle, the error pops up when I build the project under :complieJava
-
Set -source level in Intellij
When I try to compile my mod it keeps giving me this error: switch (args[0]) { ^ (use -source 7 or higher to enable strings in switch) But in my project settings I set the language level to 8 and my sdk is corretto-1.8 version 1.8.0_322, but the error is still there when I try to compile. Anyone know how to fix this?
IPS spam blocked by CleanTalk.