Everything posted by Draco18s
-
[Eclipse] Proper way of creating sub-mod addons etc.
I am also interested in this. I know Reika has a gradle.build file that does it for him (I've got a copy, but I can't decipher it in order to use it).
-
[1.8] How to render an item in a block, like the item frame only shelves?
Show your client proxy.
-
[1.8]Mob RenderProblem
RenderManager is a class, not an object instance.
-
[1.7.10]Plant Seed not placing plant.
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) For the love of god, rename those parameters to something meaningful.
-
[1.7.10] Is it Possible to Play a video?
http://www.deitel.com/articles/java_tutorials/20060422/PlayingVideowithJMF/JMF_Page2.html Found via "how to play a video in Java" in google. Left as an exercise to the reader on how to combine that code with a Minecraft gui render handler.
-
[1.7.10][Solved]How to stop my item doing this?
Show your item class. Prediction:
-
[1.7.10][Solved]Getting item that is currently held by player
You can't. http://www.minecraftforge.net/forum/index.php/topic,27370.0.html http://www.minecraftforge.net/forum/index.php?topic=27608.0.html http://www.minecraftforge.net/forum/index.php?topic=14587.0.html
-
[1.7.10][Solved]Getting item that is currently held by player
Called it.
-
[1.7.10][Solved]Getting item that is currently held by player
ItemStack will never equal Item. Also, as soon as the player's hand is empty and that code runs, the game will crash with a Null Pointer Exception.
-
[1.8] How to render an item in a block, like the item frame only shelves?
Also, here's how I rendered a container item. https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/client/ModelPedestal.java#L60-80 It only does one item (intended to be rotated flat against a top surface) but it should give you an idea of the necessary parts.
-
[1.8] How to render an item in a block, like the item frame only shelves?
Its not completely irrelevant.
-
[1.8] How to render an item in a block, like the item frame only shelves?
http://www.minecraftforge.net/wiki/Basic_Tile_Entity
-
[1.8] How to render an item in a block, like the item frame only shelves?
You will need a tile entity for your block that has an inventory. Then you'd render each inventory element in the appropriate place based off its index.
-
[1.7.10] onItemUse transformDamage? SOLVED
itemStack.damageItem(amount, player) ?
-
[1.7.10][Solved]How to stop my item doing this?
To fix that problem, insure that the upload process completes.
-
[SOLVED][1.8] With built JAR, it crashes with NoClassDefFoundError
Why aren't you using the provided item stack and instead creating a new one? @Override public String getItemStackDisplayName(ItemStack parItemStack) { return (MagicBeansUtilities.stringToRainbow(StatCollector.translateToLocal(getUnlocalizedNameInefficiently(new ItemStack(this)) + ".name")).trim()); }
-
Minecraft functions and variables with nondescript names, p_i45853_2 and such
Note: updating some things is a right pain in the arse. Like the javadoc for an already renamed function.
-
[1.8] SOLVED Textures On Tools
You never told the game what texture to use.
-
[SOLVED][1.8] With built JAR, it crashes with NoClassDefFoundError
Question: What the hell is p_77653_1_, why does it have an obfuscated name, and why the hell are you using it to store a string, and why the hell is it always null?
-
[SOLVED][1.8] With built JAR, it crashes with NoClassDefFoundError
Show the ItemMagicBeans class
-
[SOLVED][1.8] With built JAR, it crashes with NoClassDefFoundError
Ok, show your main mod file, as some aspect of your @mod annotation is fucked up
-
[SOLVED][1.8] With built JAR, it crashes with NoClassDefFoundError
Question: Why are you accessing that class with reflection and not wrapping it in a try...catch?
-
[1.7.10]can you use an array in a Configuration?[Solved]
- Show FML Missing Mods Screen
Its not mine, of course, but for some reason their @Mod annotation is missing the version number. The file name contains it, but not the @mod or the mcmod.info file, so Fore assumes the version is 1.0 and given that some changes were made that my mod depends on, I can't directly say "I need Mod X version Y" in my dependencies, because Forge can't tell 1.0 ("1.2.15") apart from 1.0 ("1.2.18"). Because of this, I'm using Reflection to see if the classes I need exist, but I'm not sure how to prevent the game from successfully loading (because as soon as WorldGen happens, it'll crash).- Show FML Missing Mods Screen
Is there a way to show the "You don't have mod X of version Y" screen when loading mods, such that state detection not related to things Forge can see (cough, a mod not reporting a version number) and display a message to the user about the missing requirement? I'd much prefer to do that than throw an IllegalStateException and crash the game. - Show FML Missing Mods Screen
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.