Everything posted by Choonster
-
AL lib: (EE) alc_cleanup: 1 device not closed 1.10.2
Have some bloody patience and stop bumping your threads every five minutes. Answers are rarely instant on any forum. Line 617 is the following: registerRender(leadpaxel); ModItems.leadpaxel is null because you never assign a value to it. Instead, you assign the ModPaxel with the LEAD ToolMaterial and "leadpaxel" as its registry name to the ModItems.titaniumpaxel field. "AL lib: (EE) alc_cleanup: 1 device not closed" is always logged when the client crashes for any reason, it's got nothing to do with what caused the crash.
-
[1.10.2] Forge cause glitched invisible door on server and client.
That looks like a pretty dodgy site, it seems to be showing its own ads with links to the original downloads; eating up the real host site's bandwidth and depriving it of its own ad revenue. I would advise against using it, you should only download mods (and Forge) from their official sources. Most mods have a thread on Minecraft Forum with links to the official downloads, which are often hosted on Curse/CurseForge.
-
Do something if item/items are struck by lightning
If one of the items is your own, create a class that extends EntityItem and overrides Entity#onStruckByLightning to attempt the transformation and then call the super method. Override Item#hasCustomEntity to return true and override Item#createEntity to create an instance of your custom EntityItem class at the same location as the location argument. If none of the items are your own, subscribe to EntityStruckByLightningEvent and check if the entity is an EntityItem containing your item before attempting the transformation. I explained how to do something similar (items transforming when near each other in the world) here, you can see my implementation here.
-
[1.9] TileEntity - Assigne new NBTCompound
The second argument of NBTTagCompound#getTagList is the tag type that the list contains. You should use the constants from the Constants.NBT class instead of an integer literal. I'd also recommend removing the TileEntityChemicalMixer.ID field, there's no reason for it to exist. As I said before, you should be using IItemHandler instead of IInventory .
-
[1.9] TileEntity - Assigne new NBTCompound
The tileentity argument of the ContainerChemicalMixer constructor is null . This is because you override the wrong overload of Block#hasTileEntity . You need to override the one that takes an IBlockState argument instead of the one that takes no arguments. Setting the Block#isBlockContainer field is pointless, it's never used anywhere.
-
[1.9] TileEntity - Assigne new NBTCompound
You accessed a field/method of a null value on line 18 of ContainerChemicalMixer .
-
[1.10.2][AABB][SOLVED]Is there an utility method to rotate an AABB?
I don't think there's any existing method to do this. I created a class to do this, but I don't think it works 100% of the time.
-
[1.9] TileEntity - Assigne new NBTCompound
Again, you're not instantiating it there (and you shouldn't be), you're simply declaring a field and constructor parameter and assigning the constructor parameter to the field. Instantiating means "creating an instance of", i.e. the new operator.
-
[1.10] Actions when player step on entity
Despite being placed by an Item in a block-like manner, the vanilla armor stand is an Entity rather than a Block . I suspect the OP's is the same.
-
[1.9] TileEntity - Assigne new NBTCompound
No you don't. You instantiate the Gui and the Container using the TileEntity you get from the World (which will be null ). Side note: Store each GUI ID in its own field, don't calculate them in the method. Consider using a switch statement instead of an if - else chain.
-
Nothing works
"Nothing works" is extremely vague. We're not psychic, we need to know what's wrong before we can tell you how to fix it. In future, describe exactly what happens and post the FML log (logs/fml-client-latest.log in the game directory) in a spoiler.
-
[1.9] TileEntity - Assigne new NBTCompound
You never instantiate your TileEntity anywhere. Override Block#hasTileEntity(IBlockState) to return true and Block#createTileEntity to create and return an instance of your TileEntity .
-
[SOLVED] Wait (x) seconds *WITHOUT PAUSING GAME*
What Ernio posted was pseudocode, you need to find the appropriate methods in the Queue interface yourself.
-
[1.9] TileEntity - Assigne new NBTCompound
Post your Block class. Side note: I'd recommend using IItemHandler instead of IInventory and exposing it as a Capability if you want to allow automated access to the inventory by things like hoppers. You can see my implementation of a vanilla-style chest using IItemHandler here. All referenced classes are in the linked repository.
-
Entity Spawning question
You should have a class called something like ModEntities (the name doesn't really matter) that registers all of your entity classes, add the spawn from this class.
-
[1.10] Where to place logging configuration file ?
That doc comment is outdated, the logging.properties file is never used by any part of Forge. Minecraft and Forge now use log4j, its configuration format is documented here. I'm not sure if there's any way to configure your mod's messages without completely overwriting Forge's configurations.
-
[1.10.2][Textures][SOLVED]I have a block with 7 states, how do I render it?
The blockstates file determines which model is used for each state of a block. Forge has an introduction to blockstates files here. Forge's format is documented here, the vanilla format is documented here. Assuming you're using Forge's blockstates format: Set the model to the connected model in the defaults section For each value of the facing property except "no connection", set the rotation of the model around the x and y axes (in increments of 90 degrees) using the x and y properties For the "no connection" value, set the model to the "no connection" model. Item models (including ItemBlock s) are set with ModelLoader.setCustomModelResourceLocation / setCustomMeshDefinition . The ModelResourceLocation s specified here can either point to item models or blockstates variants.
-
Minecraft Forge 1.10.2 Crashes on Start
The log text tells you exactly what you've done wrong:
-
[1.10] Getting Forge's current loading state
Use Loader#getLoaderState or Loader#isInState . Why do you need to know this, though?
-
Entity Spawning question
I'd recommend using EntityRegistry.addSpawn instead of the event handler, this adds an entry for your mob to the appropriate spawn list of each Biome you specified.
-
Server crash ConcurrentModificationException
You set up a development environment and run the server from your IDE. You don't run the normal server. This page explains how to set up your development environment. If you're using IntelliJ IDEA, follow to set up the IDE project. Breakpoints are a feature of your IDE, use your IDE's help files or your search engine of choice to find more information on them.
-
[SOLVED] [1.10.2] Intercepting block changes in a world
You should post your solution so other people can find it.
-
[SOLVED] [1.10.2] Collection in config
Post the full stack trace.
-
[SOLVED] [1.10.2] Best way for tons of items / blocks?
I don't have any examples of this specific case, but I do have some examples of IBlockColor / IItemColor implementation and registration here. This class gets called in init. For the block models, use StateMap.Builder to create an IStateMapper implementation that ignores the IBlockState and maps to a single blockstates file and variant and register it with ModelLoader.setCustomStateMapper . For the item models, create an ItemMeshDefinition that ignores the metadata and maps to a single ModelResourceLocation and register it with ModelLoader.setCustomMeshDefinition .
-
Minecraft forge 1.7.10 crash
You installed a 1.8.9 version of OptiFine on 1.7.10.
IPS spam blocked by CleanTalk.