Everything posted by GotoLink
-
Minecraft Server terminates without a word (1.6.4, 9.11.0.898)
I needed to update to latest forge to fix a previous issue related to server, so i installed it the same as always. I fixed some code in my mods, run client and everything went fine. But when launching server... 2013-09-28 14:23:59 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.18.898 for Minecraft 1.6.4 loading 2013-09-28 14:23:59 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) Client VM, version 1.7.0_25, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre7 2013-09-28 14:23:59 [FINE] [ForgeModLoader] Java classpath at launch is D:\Modding\1.6.4\forge\mcp\eclipse\Minecraft\bin;D:\Modding\1.6.4\forge\mcp\jars\libraries\org\ow2\asm\asm-debug-all\4.1\asm-debug-all-4.1.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\net\minecraft\launchwrapper\1.8\launchwrapper-1.8.jar;D:\Modding\1.6.4\forge\mcp\jars\versions\1.6.4\1.6.4.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\lzma\lzma\0.0.1\lzma-0.0.1.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\net\sf\jopt-simple\jopt-simple\4.5\jopt-simple-4.5.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\com\paulscode\codecjorbis\20101023\codecjorbis-20101023.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\com\paulscode\codecwav\20101023\codecwav-20101023.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\com\paulscode\libraryjavasound\20101123\libraryjavasound-20101123.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\com\paulscode\librarylwjglopenal\20100824\librarylwjglopenal-20100824.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\com\paulscode\soundsystem\20120107\soundsystem-20120107.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\argo\argo\2.25_fixed\argo-2.25_fixed.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\org\bouncycastle\bcprov-jdk15on\1.47\bcprov-jdk15on-1.47.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\com\google\guava\guava\14.0\guava-14.0.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\commons-io\commons-io\2.4\commons-io-2.4.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\com\google\code\gson\gson\2.2.2\gson-2.2.2.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\org\lwjgl\lwjgl\lwjgl\2.9.0\lwjgl-2.9.0.jar;D:\Modding\1.6.4\forge\mcp\jars\libraries\org\lwjgl\lwjgl\lwjgl_util\2.9.0\lwjgl_util-2.9.0.jar 2013-09-28 14:23:59 [FINE] [ForgeModLoader] Java library path at launch is D:\Modding\1.6.4\forge\mcp\jars\versions\1.6.4\1.6.4-natives 2013-09-28 14:23:59 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation 2013-09-28 14:23:59 [FINE] [ForgeModLoader] Instantiating coremod class FMLCorePlugin 2013-09-28 14:24:00 [FINE] [ForgeModLoader] Loaded coremod FMLCorePlugin 2013-09-28 14:24:00 [FINE] [ForgeModLoader] Instantiating coremod class FMLForgePlugin 2013-09-28 14:24:00 [FINE] [ForgeModLoader] Loaded coremod FMLForgePlugin 2013-09-28 14:24:00 [FINE] [ForgeModLoader] All fundamental core mods are successfully located 2013-09-28 14:24:00 [FINE] [ForgeModLoader] Discovering coremods 2013-09-28 14:24:00 [FINEST] [ForgeModLoader] Registering transformer cpw.mods.fml.common.asm.transformers.AccessTransformer 2013-09-28 14:24:00 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg 2013-09-28 14:24:00 [FINEST] [ForgeModLoader] Registering transformer cpw.mods.fml.common.asm.transformers.MarkerTransformer 2013-09-28 14:24:00 [FINEST] [ForgeModLoader] Registering transformer cpw.mods.fml.common.asm.transformers.SideTransformer 2013-09-28 14:24:00 [FINEST] [ForgeModLoader] Registering transformer net.minecraftforge.transformers.ForgeAccessTransformer 2013-09-28 14:24:00 [iNFO] [sTDOUT] Loaded 109 rules from AccessTransformer config file forge_at.cfg 2013-09-28 14:24:00 [FINEST] [ForgeModLoader] Registering transformer net.minecraftforge.transformers.EventTransformer 2013-09-28 14:24:00 [FINE] [ForgeModLoader] Running coremod plugins 2013-09-28 14:24:00 [FINE] [ForgeModLoader] Running coremod plugin FMLCorePlugin 2013-09-28 14:24:00 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work! 2013-09-28 14:24:00 [FINE] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully 2013-09-28 14:24:00 [FINE] [ForgeModLoader] Running coremod plugin FMLForgePlugin 2013-09-28 14:24:00 [FINE] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully 2013-09-28 14:24:00 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker 2013-09-28 14:24:00 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker 2013-09-28 14:24:00 [FINE] [ForgeModLoader] Validating minecraft 2013-09-28 14:24:37 [FINE] [ForgeModLoader] Minecraft validated, launching... 2013-09-28 14:37:13 [iNFO] [ForgeModLoader] Launching wrapped minecraft {net.minecraft.server.MinecraftServer} It terminates without a warning. I also tried without any of my mods. Enabling the DEBUG fields in FML transformer classes: ...in console, adds a lot of: Removing Method: net/minecraft/stats/Achievement.isAchievement()Z 2013-09-28 14:58:47 [iNFO] [sTDOUT] Removing Method: net/minecraft/stats/Achievement.getDescription()Ljava/lang/String; 2013-09-28 14:58:47 [iNFO] [sTDOUT] Removing Method: net/minecraft/stats/Achievement.setStatStringFormatter(Lnet/minecraft/stats/IStatStringFormat;)Lnet/minecraft/stats/Achievement; 2013-09-28 14:58:47 [iNFO] [sTDOUT] Removing Method: net/minecraft/stats/Achievement.getSpecial()Z ..in the logs: Validating minecraft 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.Loader (cpw.mods.fml.common.Loader): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.Loader (cpw.mods.fml.common.Loader): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.LoaderException (cpw.mods.fml.common.LoaderException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.LoaderException (cpw.mods.fml.common.LoaderException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ICrashCallable (cpw.mods.fml.common.ICrashCallable): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ICrashCallable (cpw.mods.fml.common.ICrashCallable): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.toposort.ModSortingException (cpw.mods.fml.common.toposort.ModSortingException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.toposort.ModSortingException (cpw.mods.fml.common.toposort.ModSortingException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.WrongMinecraftVersionException (cpw.mods.fml.common.WrongMinecraftVersionException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.WrongMinecraftVersionException (cpw.mods.fml.common.WrongMinecraftVersionException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.MissingModsException (cpw.mods.fml.common.MissingModsException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.MissingModsException (cpw.mods.fml.common.MissingModsException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ModContainer (cpw.mods.fml.common.ModContainer): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ModContainer (cpw.mods.fml.common.ModContainer): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ModClassLoader (cpw.mods.fml.common.ModClassLoader): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ModClassLoader (cpw.mods.fml.common.ModClassLoader): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.DuplicateModsFoundException (cpw.mods.fml.common.DuplicateModsFoundException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.DuplicateModsFoundException (cpw.mods.fml.common.DuplicateModsFoundException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.MinecraftDummyContainer (cpw.mods.fml.common.MinecraftDummyContainer): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.MinecraftDummyContainer (cpw.mods.fml.common.MinecraftDummyContainer): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.DummyModContainer (cpw.mods.fml.common.DummyModContainer): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.DummyModContainer (cpw.mods.fml.common.DummyModContainer): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.LoaderState$ModState (cpw.mods.fml.common.LoaderState$ModState): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.LoaderState$ModState (cpw.mods.fml.common.LoaderState$ModState): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.LoaderState (cpw.mods.fml.common.LoaderState): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.LoaderState (cpw.mods.fml.common.LoaderState): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on net.minecraft.crash.CallableMinecraftVersion (net.minecraft.crash.CallableMinecraftVersion): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on net.minecraft.crash.CallableMinecraftVersion (net.minecraft.crash.CallableMinecraftVersion): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.ArtifactVersion (cpw.mods.fml.common.versioning.ArtifactVersion): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.ArtifactVersion (cpw.mods.fml.common.versioning.ArtifactVersion): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ModMetadata (cpw.mods.fml.common.ModMetadata): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ModMetadata (cpw.mods.fml.common.ModMetadata): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.VersionParser (cpw.mods.fml.common.versioning.VersionParser): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.VersionParser (cpw.mods.fml.common.versioning.VersionParser): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.InvalidVersionSpecificationException (cpw.mods.fml.common.versioning.InvalidVersionSpecificationException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.InvalidVersionSpecificationException (cpw.mods.fml.common.versioning.InvalidVersionSpecificationException): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.VersionRange (cpw.mods.fml.common.versioning.VersionRange): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.VersionRange (cpw.mods.fml.common.versioning.VersionRange): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.DefaultArtifactVersion (cpw.mods.fml.common.versioning.DefaultArtifactVersion): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.DefaultArtifactVersion (cpw.mods.fml.common.versioning.DefaultArtifactVersion): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.ComparableVersion (cpw.mods.fml.common.versioning.ComparableVersion): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.ComparableVersion (cpw.mods.fml.common.versioning.ComparableVersion): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.ComparableVersion$Item (cpw.mods.fml.common.versioning.ComparableVersion$Item): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.ComparableVersion$Item (cpw.mods.fml.common.versioning.ComparableVersion$Item): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.ComparableVersion$ListItem (cpw.mods.fml.common.versioning.ComparableVersion$ListItem): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.ComparableVersion$ListItem (cpw.mods.fml.common.versioning.ComparableVersion$ListItem): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.ComparableVersion$IntegerItem (cpw.mods.fml.common.versioning.ComparableVersion$IntegerItem): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.ComparableVersion$IntegerItem (cpw.mods.fml.common.versioning.ComparableVersion$IntegerItem): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.Restriction (cpw.mods.fml.common.versioning.Restriction): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.versioning.Restriction (cpw.mods.fml.common.versioning.Restriction): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.MCPDummyContainer (cpw.mods.fml.common.MCPDummyContainer): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.MCPDummyContainer (cpw.mods.fml.common.MCPDummyContainer): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.MetadataCollection (cpw.mods.fml.common.MetadataCollection): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.MetadataCollection (cpw.mods.fml.common.MetadataCollection): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ModMetadata$JsonStringConverter (cpw.mods.fml.common.ModMetadata$JsonStringConverter): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ModMetadata$JsonStringConverter (cpw.mods.fml.common.ModMetadata$JsonStringConverter): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ModMetadata$JsonArrayConverter (cpw.mods.fml.common.ModMetadata$JsonArrayConverter): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Considering all methods and fields on cpw.mods.fml.common.ModMetadata$JsonArrayConverter (cpw.mods.fml.common.ModMetadata$JsonArrayConverter): false 2013-09-28 15:05:07 [FINE] [ForgeModLoader] Minecraft validated, launching... 2013-09-28 15:06:04 [FINE] [ForgeModLoader] Considering all methods and fields on net.minecraft.server.MinecraftServer (net.minecraft.server.MinecraftServer): true I debugged the thing till the line 48 of ServerLaunchWrapper. I seriously can't tell what is going on.
-
So I've learned Java... How do I learn minecraft?
Forge has docs given next to the sources. Then you can look at Minecraft classes: Block, Item, Entity, World, EntityPlayer. You are probably going to use them a lot. After that, it depends on what you want to do.
-
partialTickTime getting fast
I would go with basic math and try 180 or 360. It is an angle you know...
-
Achievement Page Has White Background
Is your ec block given an icon ?
-
BiomeEvent
This happens with Forge v9.10.1.871. I guess i'll try on 1.6.4. Thanks
-
[solved... nearly] No Particles Spawn!
if(world.isRemote) world.spawnParticle(...
-
Where do you register/input Throwable Entity's texture?
EntitySteamBoat is registered below //Boat comment in Pchan3Mods class ("main" mod class). I tend to register things in the "main" mod class, but any common class would do, actually. I have looked at most generic tutorials so those are fine, but any other i won't comment on. I think it is better to work things on your own, eventually taking examples from similar mods. But do not take other mods as absolute reference material. Anyone can make mistakes.
-
BiomeEvent
I am having an issue for once java.lang.RuntimeException: Attempted to load class net/minecraftforge/event/terraingen/BiomeEvent$BiomeColor for invalid side SERVER @EventHandler public void load(FMLInitializationEvent event){ MinecraftForge.EVENT_BUS.register(this); MinecraftForge.TERRAIN_GEN_BUS.register(this);//crash here if(torch) VillagerRegistry.instance().registerVillageCreationHandler(this); } @ForgeSubscribe public void onSettingGravel(net.minecraftforge.event.terraingen.BiomeEvent.GetVillageBlockID event){ Note that i don't use BiomeEvent.BiomeColor or any other annotated "client side only" event in BiomeEvent. This works on single-player, but crashes on multiplayer. It sounds like the EventBus tries loading a client side event on server side... ? Registering the event specifically on server side doesn't fix it. Making a separate class doesn't work either.
-
3 small & minor bugs
player.inventory.onInventoryChanged() ? You can override mouse events in gui, but...i don't think buttons "double click" that often. Are you sure you are only changing "stage" once ? Entity, Item, Block, all should be registered on both sides. They are not client side only.
-
Reflection error-used Obf helper, works in eclipse, not in minecraft.
FOV also depends on PlayerCapabilities walkSpeed field. Anyway, I think the Searge name is field_75097_g
-
Reflection error-used Obf helper, works in eclipse, not in minecraft.
What about the attribute system ? It works and is expected to continue growing. Better trying to use it now, don't you think ?
-
Telling how long left click is held down
if (weaponAbility == "chakram") { String are immutable. Use .equals(obj) instead. I don't have anything to add to what Mew said.
-
Custom Drop!
In your stone block class: @Override public int idDropped(int par1, Random par2Random, int par3) { return cobblestoneblockid;//Id corresponding to your cobblestone blocks } @Override public int damageDropped(int par1) { return par1; }
-
Multiplayer Mod Question
And you shouldn't do: @NetworkMod(clientSideRequired=true) obviously.
-
Where do you register/input Throwable Entity's texture?
EntityThrowable extends Entity. Basic Java: Throwable entities are entities.
-
Where do you register/input Throwable Entity's texture?
Read the tutorials in the wiki please. Choose one the EntityRegistry method and stick to it. And register on both sides, obviously.
-
Player persistent NBT
The persistent tag is used on the entity nbt, which is returned by getEntityData(). This is the only part of the NBT that will be kept by Minecraft on respawn. Data from IExtendedProperty is copied for loading and changing dimension, but not on respawn.
-
Need help with mod version
NetworkModHandler is searching for a method with String as a parameter. Method checkHandlerMethod = networkModClass.getDeclaredMethod(versionCheckHandlerMethod, String.class); if (checkHandlerMethod.isAnnotationPresent(NetworkMod.VersionCheckHandler.class)) { this.checkHandler = checkHandlerMethod; } And invoking it with "version", which is a String... if (checkHandler != null) { try { return (Boolean)checkHandler.invoke(container.getMod(), version); } catch (Exception e) { FMLLog.log(Level.WARNING, e, "There was a problem invoking the checkhandler method %s for network mod id %s", checkHandler.getName(), container.getModId()); return false; } This should work unless this is actually deprecated. Did you get any warning in your log when you tried with String as only parameter ? I would try with Boolean as return type, just in case.
-
[SOLVED] 1285: Out of memory
I would blame any custom rendering you are doing. Show some code for more help. By the way, it will not help to set Java with more memory than default. The more memory you give to Java, the more likely memory will be screwed up.
-
Some questions about GUI buttons...
In your gui class: protected void actionPerformed(GuiButton guibutton) //change _ to * (use int[] numPressed, increment a "position" variable for this array) //"position" is over array length ? -> send packet with the array, other useful data... In your packet handler class: //receive packet, read data // if array is valid ->close Gui, open new Gui
-
Can I use Entity.isCollidedHorizontally server side?
You right, but is isCollidedHorizontally true when the player is falling ? Which is when the fallDistance will be used...
-
Question about tools
You might also want to use MinecraftForge.setToolClass(Item tool, "hammer", int harvestLevel); For your new "hammer" tool.
-
Making an icon depend on itemstack nbt
Well you have to register the icons at some point. So you have to make "a bunch of icons" anyway. The only thing you can tweak is how to organize them. I would use a HashMap holding custom objects as keys and Icons as values. Those custom objects would hold the nbt data (or equivalent data) and override equals and hash methods to be compared. You may want to organize the textures locations too.
-
Ingame Overlay?
Use RenderGameOverlayEvent. Then check that your data is accurate on client side. Use packets if it is not. There are multiple methods for rendering "bars" or the like. You can decide to render only part of a "full" image depending on the data value, where the "full" image contains image at max value. Another method would be to render "small" image multiple times, as a multiple of the data value. Of course you can use alpha channel, and multiple render passes too. The choice is yours.
-
[Unsolved] 3D Item Renderer Weirdness
Follow the tutorials in forge wiki, not some random shi**y tutorial.
IPS spam blocked by CleanTalk.