Everything posted by Choonster
-
[1.8-11.14.4.1563] How do I implement logging?
I thought I did, but it doesn't seem to be a valid import; Eclips says that " The import org.apache cannot be resolved " I suggest running gradlew setupDecompWorkspace eclipse again to set up the ForgeGradle workspace and recreate the Eclipse project.
-
[1.8-11.14.4.1563] How do I implement logging?
If you've set up your ForgeGradle workspace and IDE properly, you should already have log4j as a dependency. Just delete the java.util.logging.Logger import and replace it with a org.apache.logging.log4j.Logger import.
-
[1.8-11.14.4.1563] How do I implement logging?
Minecraft uses log4j ( org.apache.logging.log4j.Logger ), not java.util.logging.Logger .
-
crashing on start with no other mods
I'm pretty sure this is OptiFine screwing things up. OptiFine is only compatible with specific versions of Forge, but I can't see which version of Forge is needed by OptiFine 1.8 HD U C7. Side note: OptiFine has a very confusing version numbering system.
-
[1.8] Custom armor model
Create a model that extends ModelBiped and override Item#getArmorModel to return an instance of it.
-
[1.8.9] How to use the substitution alias system?
Could you or cpw advise me if my code (in the OP) is correct? Edit: Fixed typo.
-
[1.8.9-11.15.0.1705] Item renders as black and purple cube
Minecraft only loads one model per item by default, the name of this model is the item's registry name (the name passed to GameRegistry.registerItem or Item#setRegistryName ). If you want to load a different model or multiple models, you need to call ModelBakery.registerItemVariants with the locations of those models. I would highly recommend using Forge's ModelLoader.setCustomModelResourceLocation and ModelLoader.setCustomMeshDefinition methods in preInit instead of the vanilla ItemModelMesher#register overloads in init. ModelLoader.setCustomModelResourceLocation will call ModelBakery.registerItemVariants with the model location for you. I would also recommend setting the registry names of your items with Item#setRegistryName and registering them with GameRegistry.registerItem(Item) . You can get an item's registry name in the "modid:name" format from Item#getRegistryName . This also applies to blocks. I have a whole bunch of model registration code for my item models here. I use Forge's blockstates format and Java 8 features quite a lot in my mod.
-
[SOLVED] [1.8] OreDictionary Help
OreDictionary.OreRegisterEvent is fired when an item is registered with the Ore Dictionary.
-
[1.8.9] [SOLVED] UnlistedProperty return null
This is true of the vanilla IBlockState implementation as well, it's immutable.
-
ConcurrentModificationException, no Mods button
Upload the FML log (logs/fml-client-latest.log) to Gist and link it here.
-
[1.8]¿Event fire just oneTime when entityLiving spawn in the world
EntityJoinWorldEvent is fired when an entity is spawned in the world. You can cancel it to prevent the entity from spawning.
-
[1.8.8] Entity not able to spawn
Have you considered extending Entity instead of EntityLiving ? It doesn't seem like your entity is a living entity with AI, equipment, etc. I'm not entirely sure, but I think EntityLivingBase / EntityLiving may apply downward motion to any entity not on the ground.
-
[SOLVED] [1.8] OreDictionary Help
Don't create new Item instances outside of the initial loading process. Each Item should be instantiated and registered once in preInit.
-
[1.8] Strange liquid behavior
I think that's just how BlockFluidFinite flows. If you want a fluid that flows like the vanilla liquids, use BlockFluidClassic .
-
I cant play Minecraft with mods
JARs are just ZIPs with a different extension and some metadata files.
-
[1.8.8] Entity not able to spawn
If you override the method, make sure you call the super method. Or just don't override it.
-
[1.8.8] Entity not able to spawn
The exception is being thrown because it's trying to update an object (the entity's health, index 6) that doesn't exist in the DataWatcher . This is added in EntityLivingBase#entityInit , but you've overridden this to do nothing.
-
I cant play Minecraft with mods
It's possible that your world is corrupt. Does it work if you create a new world and load that?
-
[1.8.8] Entity not able to spawn
Post the crash report.
-
[1.8] Sync List to Server
Unless the list exists in vanilla, you'll need to use your own packet. Forge's Read the Docs site has a section on networking (including the Simple Network Implementation, which you should use) here.
-
[Solved] [1.8.9] Custom slabs have incorrect lighting in world
Thanks, that was indeed the issue. Vanilla sets this for its own slabs, but this is done in Block.registerBlocks before mods are loaded. You'd think it would do this in the constructor of the appropriate classes. My slabs now render properly. Edit: You can see the working code here: BlockSlabTestMod3, BlockColouredSlab
-
Crash presumably caused by outdated mods?
You have a coremod built for 1.8+ installed (OpenComputers).
-
[Solved] [1.8.9] Custom slabs have incorrect lighting in world
Haha, no worries. I tried manually specifying the up , down and side textures (the textures used by the slab models) but nothing changed. I also tried using the vanilla blockstates format with a vanilla model and the issue persisted, so I suspect it's something to do with the Block rather than the model.
-
[Solved] [1.8.9] Custom slabs have incorrect lighting in world
My slabs aren't transparent, they use solid textures on a model that doesn't occupy the whole block. I did try returning each layer from Block#getBlockLayer , but nothing changed. Block#getRenderType already returns 3 and neither BlockSlab or my slab classes override it.
-
[SOLVED][1.7.10] Can't Teleport to Overworld
World#isRemote is false on the server and true on the client.
IPS spam blocked by CleanTalk.