-
Posts
5160 -
Joined
-
Last visited
-
Days Won
76
Everything posted by Choonster
-
The volume you play the sound at using World#playSoundEffect determines how far around the position the sound can be heard. If you look at WorldManager#playSound (the server-side IWorldAccess implementation called by World#playSoundEffect ), you'll see that the S29PacketSoundEffect (the packet that plays the sound on the client) is sent to all players in a radius of 16 * volume blocks around the target position (minimum radius is 16).
-
ConcurrentModificationException, no Mods button
Choonster replied to m.e's topic in Support & Bug Reports
Is this message printed in the launcher log? If so, post that using Gist. When linking a Gist, either copy the URL from the address bar or select Share in the dropdown menu next to the URL textbox and copy that URL. The Embed URL is for embedding the Gist into a webpage. -
Custom sound not heard by other players
Choonster replied to Mooshmooshmodder's topic in Modder Support
World#playSound does nothing on the server and plays the sound on the client. World#playSoundAtEntity , World#playSoundToNearExcept and World#playSoundEffect send a packet to the appropriate clients telling them to play the sound and do nothing on the client. -
Modded Minecraft 1.7.10 crashes during loading
Choonster replied to kriv02's topic in Support & Bug Reports
Minecraft ran out of memory. Give it more by increasing the number in -Xmx1G (1G = 1 GB) in your launcher's JVM arguments. -
[1.8-11.14.4.1563] How do I implement logging?
Choonster replied to paradoxbomb's topic in Modder Support
I'm not too sure what's going wrong. Can you access classes from other referenced libraries (e.g. com.google.common.collect.ImmutableSet from Guava or org.apache.commons.lang3.ArrayUtils from Apache Commons)? -
Is your event handler being called? Is your cave generator being called?
-
[1.8-11.14.4.1563] How do I implement logging?
Choonster replied to paradoxbomb's topic in Modder Support
Run it in the directory where build.gradle is. -
[Solved] [1.8.9] addinformation() and getSubItems() name clash issue
Choonster replied to ChaKha's topic in Modder Support
1.8.8 added generics to vanilla code. The OP has the correct method signatures. Edit: The title says 1.8.9, but the OP is actually using 1.8; so there aren't any generics. -
[1.8-11.14.4.1563] How do I implement logging?
Choonster replied to paradoxbomb's topic in Modder Support
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?
Choonster replied to paradoxbomb's topic in Modder Support
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?
Choonster replied to paradoxbomb's topic in Modder Support
Minecraft uses log4j ( org.apache.logging.log4j.Logger ), not java.util.logging.Logger . -
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.
-
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?
Choonster replied to Choonster's topic in Modder Support
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
Choonster replied to whizvox's topic in Modder Support
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. -
OreDictionary.OreRegisterEvent is fired when an item is registered with the Ore Dictionary.
-
[1.8.9] [SOLVED] UnlistedProperty return null
Choonster replied to feldim2425's topic in Modder Support
This is true of the vanilla IBlockState implementation as well, it's immutable. -
ConcurrentModificationException, no Mods button
Choonster replied to m.e's topic in Support & Bug Reports
Upload the FML log (logs/fml-client-latest.log) to Gist and link it here. -
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.
-
Don't create new Item instances outside of the initial loading process. Each Item should be instantiated and registered once in preInit.
-
I think that's just how BlockFluidFinite flows. If you want a fluid that flows like the vanilla liquids, use BlockFluidClassic .
-
JARs are just ZIPs with a different extension and some metadata files.
-
If you override the method, make sure you call the super method. Or just don't override it.
-
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.