
Everything posted by Cadiboo
-
My IDE and forge setup is being slow
Gradle Arguments: the arguments passed to the setup scripts that create your workspace Launch Arguments: arguments passed to Minecraft. This includes the ram to be used, your username, etc. jvisualvm: a profiling tool to inspect Java applications command line: The command line on your computer. Terminal on Mac and PowerShell -> cmd on Windows.
-
My IDE and forge setup is being slow
jvisualvm is a profiling tool. As of Java 6 it is shipped with the JDK. You can launch it by running `jvisualvm` in the command line of your java installation is properly set up
-
[1.10.2]"Machine" crache on activated
A BlockState is not a block. It is a combination of Block + metadata + other values. Are you using an IDE to write your mod? Do you know Java?
-
[1.13.2] Use events
What you’re doing is extending a class. To subscribe to an event you need to have an event subscribing class and have a method that accepts an event as it’s only parameter. There is info about EventSubscribers in this tutorial https://cubicoder.github.io/tutorials/1-12-2/2018-06-20-first-item/. If you have problems with the event subscribing method not being called refer to this image before asking for help.
-
My IDE and forge setup is being slow
Your gradle arguments don’t have anything to do with your launch arguments. You can set your launch arguments to use more ram in your run configurations. You could also profile or sample the program (with jvisualvm for example) to see what’s actually causing the slowness
-
[1.12.2] [Solved] Trying to understand (Fast)TESR
That would be your problem. All FastTESRs are given the same buffer that is already setup properly. You need to draw at the position, currently you’re drawing near 0, 0, 0 Yes. The vertex format BLOCK requires a lightmap. Lightmap values are from 0-240 with 240 being max brightness. You can use IBlockState#getPackedLightmapCoords to get packed coordinates. You can then use packed >> 16 & 0xFFFF to get the skylight which is stored in the upper bytes and packed & 0xFFFF to get the block light which is stored in the lower bytes. You might want to look at https://github.com/Cadiboo/Example-Mod/blob/5fe80fde8a41cd571593c02897b06b5822e9a738/src/main/java/io/github/cadiboo/examplemod/client/ClientUtil.java#L240 as it is very well commented. Also note the offset (x, y, z) that is added to the quad in the renderFast method.
-
Minecraft Crashing upon Launch
That doesn’t seem to contain any normal errors, can you please post your debug.log (if it exists). It should be right next to your latest.log in the .minecraft/logs/ folder
-
[Solved] [1.12.2] Rendering 3D model in GUI
Look at the ItemRenderer. Specifically renderStack
-
[SOLVED] [1.12.2] Rendering custom layers on players
Have you looked at the code that handles rendering a sneaking player? You can probably copy some code from there
-
How to interact with chest
if (gui instanceof GuiChest)?
-
[1.12.2] @Config not found [SOLVED]
Also don’t call it ModConfig, cause that’s what the Forge config class is called in 1.13. I suggest ModNameConfig or ModOptions or ModConfiguration or even ModSettings.
-
[1.12.2] [Solved] Trying to understand (Fast)TESR
I think that you’re 1) drawing at block pos (1, 0, 1) instead of the actual pos and 2) not adding all the elements of your vertex. Example of FastTESR: https://github.com/Cadiboo/Example-Mod/blob/master/src/main/java/io/github/cadiboo/examplemod/client/render/tileentity/RenderExampleTileEntity.java Example of using the BufferBuilder to render faces (might not be what you want to achieve, but it’s useful for seeing the parameters and uses of them). https://github.com/Cadiboo/NoCubes/blob/cb5ece4525faba7e44a3bb4bbb80328848c11647/src/main/java/io/github/cadiboo/nocubes/client/render/MeshRenderer.java#L385
-
[1.12.2] Creating New World-Bound Items After Initilization
Not quite correct. Registries events (where you should be making your items) are fired right after preInit. But yes, after these events finish firing, you can’t add any objects to any registries.
-
[1.12.2] Item with lost durability can't be used in crafting
Add “data”: “32,767” to allow a stack with any damage to be used.
-
rendering problem with projectiles
Does your entity exist on the client? Does it’s bouding box show up when you enable AABB debugging?
-
[1.13.2] New to this, Help required
Learning with 1.12.2 will be easier. Forge is in public beta, and many more players are using 1.12.2 than 1.13.2
-
how do i save animations of an entity-model in blockbench
You need to render them. Entity models aren’t like blocks or items, if you use json models you’ll need to load the models yourself
-
How do i put this in a method?
You can also use RenderRed::new instead of the lambda
-
[1.12] How do I make a scrollable list in a gui?
The same way as the ModList GUI or the Config GUI?
-
[Solved] modid:name#inventory on texture?
Follow the way vanilla does it™️
-
[Solved][1.13.2] Object did not get ID it asked for
If you change the order or add a new entry, you need to make a new world to see the changes in the creative tab, because registry entries and registry entry order is saved in the world file
-
[1.12.2] Issue with block colors
Use a FastTESR at least
-
How do i make a block colorable exactly like the leather-armour?
Your
-
[1.12.2] Issue with block colors
Post your code
-
How to add another mod to his workspace on Eclipse? (a mod dependency)
Yes What do you mean by this? Any dependencies downloaded by gradle or in /libs/ will be available when you compile your mod in a dev environment or build your mod for release. If you mean packaging the dependency inside your mod's jar, you need to get permission from the mod's author first.
IPS spam blocked by CleanTalk.