Everything posted by Animefan8888
-
New modder what went wrong here
Does the server render things? Anything that has @SideOnly can only be referenced on that side. Then anything that doesn't make sense, such as the server registering models.
-
New modder what went wrong here
Any methods you need to be called on either the Client or the server, IE on the client would be model registry(A method that calls ModelLoader.setCustomModelResourceLocation).
-
[Solved] [1.12.2] Transparent text with shadow only transparent where both overlap
it seems you need to use RenderGameOverlayEvent.Text to render text. So you may need both RenderGameOverlayEvent.Pre to cancel the item tooltips, and RenderGameOverlayEvent.Text to actually render.
-
[Solved] [1.12.2] Transparent text with shadow only transparent where both overlap
Take a look at GuiIngame#renderSelectedItem(ScaledResolution) lines 694-699
-
Why Isn't my texture working?
Problematic Code #14
-
How Items Are Registered.
Every Item has a registry name that is stored in its instance, since Items, Blocks, etc are singletons there is only one instance. The registry name is then mapped to the instance think Map<RegistryName, Item>.
-
My block has no cracking animation [1.12.2]
You will also need to have a FastTESR that renders the appropriate break stage. Or you could not return BlockFaceShape.UNDEFINED in Block#getBlockFaceShape
-
[1.12.2] Is there a way to up the amount of spawned ore (Aluminum) or change its spawn height?
They aren't programmers, they won't know what this is.
-
My block has no cracking animation [1.12.2]
Override hasCustomBreakingProgress(IBlockState) in your Block class.
-
[1.12.2] Is there a way to up the amount of spawned ore (Aluminum) or change its spawn height?
I use notepad++ as a text editor, but as was said just put what I posted under where it says "populate":
-
NoSuchMethodError when there is a method
How did you do this?
-
[1.12.2] Problem with my proxies [Totally solved]
They should not be abstract. No
-
[1.12.2] "Toasts" Documentation [Solved]
On the client when you want the gui to popup...
-
[1.12.2] Problem with my proxies [Totally solved]
This is the name of your field in your main mod class.
-
[1.12.2] Is there a way to up the amount of spawned ore (Aluminum) or change its spawn height?
Correct, changing the cluster-size will change how much is in a vein and changing the cluster-count will change how many clusters in a chunk.
-
[1.12.2] Is there a way to up the amount of spawned ore (Aluminum) or change its spawn height?
I recommend the line after "populate" {
-
[1.12.2] Is there a way to up the amount of spawned ore (Aluminum) or change its spawn height?
Yours doesn't have an aluminum part in it, this is what the aluminum part I have looks like.
-
Anvil durability
If you use the EntityJoinWorldEvent to remove the EntityFallingBlock when it is an anvil and replace it with your own entity that does the same thing, but modifies the chance for breaking.
-
Anvil durability
If you use the EntityJoinWorldEvent to remove the EntityFallingBlock when it is an anvil and replace it with your own entity that does the same thing, but modifies the chance for breaking.
-
[1.12.2] Is there a way to up the amount of spawned ore (Aluminum) or change its spawn height?
Can you post what your 01_thermalfoundation_ores,json looks like?
-
[1.12.2] Is there a way to up the amount of spawned ore (Aluminum) or change its spawn height?
In config/cofh/world you can mess with the ore generation of some mods. Thermal expansion is one of them.
-
[1.12.2] "Toasts" Documentation [Solved]
If you just want to display an achievement-like info box, 1.12.x has now generalized system into so-called toasts. You can implement the IToast interface and display it using MInecraft#getToastGui().add(IToast). This way you do not need this "fake achievement" just to display a box.
-
Forge running, mod isn't
I've never used intelij, but eclipse has a classpath where you can put projects into the run configuration. Is there something like that in intelij, and if so is your project in there.
-
1.12.2 | Desynced Block
Github hasn't changed except for setState and the implementations being changed. shouldRefresh should compare the two IBlockStates parameters past in and return a value from that. aka if the blocks are not the same. Override hasTileEntity(IBlockState) instead of hasTileEntity() Have a good night.
-
1.12.2 | Desynced Block
I can answer this question in their steed if you don't mind. 4 " These classes are legacy vanilla code. " Old unnecessary code. just override hasTileEntity(IBlockState) and createTileEntity(World, IBlockState). 5 Intermod compatibility. IInventory is provided by Minecraft and Forge has provided a system that works much better. The old system has been shipped away since the capability system was first introduced. 10 They can conflict with other mods, however a modid is unique to your mod(hopefully), thus removing the conflict. A good strategy would be to set unlocalized names to the registry name. 14 Static initializers are immpossible to control. You do not know when they are initialized, so therefore forge cannot assign the modid for the registry correctly. There are also other reasons for using the event system, but there are too many and I don't want to type them out. Less code and uses a method in the TileEntity instead of some method in the Block class. Self explanatory, but it saves and loads the blocks metadata/blockstate correctly. Now on to your problem with the de-syncing. If you remove onBlockAdded and onBlockPlacedBy it will fix your issue.
IPS spam blocked by CleanTalk.