Everything posted by Luis_ST
-
Repeated Crash Error 1
The log you post does not contains any error which causes the game to crash, ensure you post the full debug log. If it's not the full log, you can use https://gist.github.com/ to upload large log files.
- Trying to play "The Everlasting Fog" modpack by revodragonn and crashing is persistent
- java.lang.IllegalStateException: Pose stack not empty
-
Block Entity recipes not working
That would work, but note the correct .gitignore must be part of the first commit. I would recommend you to learn the basics of Git, it is very helpful for a programmer.
-
[SOLVED] [MC1.20.1] [FORGE MDK 47.2.0] Vanilla Items not working in custom item recipe creation - RecipeProvider.
Remove the #get call for all vanilla Items then post the log and the full class. Please use the code feature of the forum.
-
[1.20.2] Registering EntityType Problems
I have cloned your mod to debug this locally and I have changed the following line in your main mod class: // From ModEntities.register(modEventBus); // To ModEntities.ENTITY_TYPES.register(modEventBus); And you get the following error: java.lang.NullPointerException: Cannot invoke "net.minecraft.client.renderer.entity.EntityRenderer.shouldRender(net.minecraft.world.entity.Entity, net.minecraft.client.renderer.culling.Frustum, double, double, double)" because "entityrenderer" is null at net.minecraft.client.renderer.entity.EntityRenderDispatcher.shouldRender(EntityRenderDispatcher.java:128) ~[forge-1.20.2-48.0.35_mapped_official_1.20.2-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.LevelRenderer.renderLevel(LevelRenderer.java:942) ~[forge-1.20.2-48.0.35_mapped_official_1.20.2-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.GameRenderer.renderLevel(GameRenderer.java:1130) ~[forge-1.20.2-48.0.35_mapped_official_1.20.2-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.GameRenderer.render(GameRenderer.java:910) ~[forge-1.20.2-48.0.35_mapped_official_1.20.2-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.runTick(Minecraft.java:1211) ~[forge-1.20.2-48.0.35_mapped_official_1.20.2-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.run(Minecraft.java:781) ~[forge-1.20.2-48.0.35_mapped_official_1.20.2-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:221) ~[forge-1.20.2-48.0.35_mapped_official_1.20.2-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {} at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {} at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {} at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {} at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:98) ~[fmlloader-1.20.2-48.0.35.jar:?] {} at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.lambda$makeService$0(CommonLaunchHandler.java:82) ~[fmlloader-1.20.2-48.0.35.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:17) ~[modlauncher-10.1.1.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:40) ~[modlauncher-10.1.1.jar:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:58) ~[modlauncher-10.1.1.jar:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:96) ~[modlauncher-10.1.1.jar:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) ~[modlauncher-10.1.1.jar:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:13) ~[modlauncher-10.1.1.jar:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:10) ~[modlauncher-10.1.1.jar:?] {} at net.minecraftforge.bootstrap.BootstrapLauncher.main(BootstrapLauncher.java:126) ~[bootstrap-1.2.0.jar:?] {} I don't know why you get a different error with technically the same code. The error I am getting indicates that your custom entity is missing an EntityRenderer, the crash occurs because Minecraft is unable to render the entity.
-
[SOLVED] [MC1.20.1] [FORGE MDK 47.2.0] Vanilla Items not working in custom item recipe creation - RecipeProvider.
Vanilla Items are directly Item instances you do not need to call #get like for your Mod Items (which are RegistryObjects)
-
[SOLVED][1.20.1]Custom capability getCapability() lazyOptional returns null
The LazyOptional should be final, why does this line exists?
-
[1.20.1] How do I modify Minecraft classes when my mod is loading
The method is missing a Callback parameter, if the method has a returntype you have to use CallbackInfoReturnable else CallbackInfo
-
[SOLVED] [1.19.2] build\resources\main failed to load a valid ResourcePackInfo
Post the content of your pack.mcmeta file
-
Mob Model Changing
Have you read the documentation of GeckLib? The layer should not be added in the render method this should be done in the constructor
-
[SOLVED][1.20.1]Custom capability getCapability() lazyOptional returns null
The exception is thrown because your LazyOptional is null here try to use debugger to find the reaseon
-
[1.20.1] How do I modify Minecraft classes when my mod is loading
The mixin should look like this: @Mixin(Chicken.class) public class ChickenMixin { // ... @Inject(method = "registerGoals", at = @At("HEAD"), cancellable = true) protected void registerGoals(CallbackInfo callback) { // Add all goals of the chick here // The modify them in the way you want callback.cancel(); // Required to prevent vanilla logic from being running } // ... }
-
what do i have to do to load mods that my minecraft world loads better and bes faster
There are a few performance mods you can try, but I don't recommend using them because they increase performance by breaking the game, which can conflict with other mods.
-
How can i make a sword able to block any attacks by holding down right click?
First of all you have to subscribe to InputEvent.MouseButton if the right button is pressed you have to sync a value to the server via a custom NetworkPacket. If the button is released you have to reset the value on server, ideally you send a boolean with the value true when the button is pressed and false when it is released. You must save the value on the server side for the player, it is best to use a capability here. Now to block incomming attacks you have to subscribe to LivingHurtEvent and cancle the Event if your value inside the capability is true.
-
[1.20.1] How do I modify Minecraft classes when my mod is loading
Create an interface with the methods you want to add to the Chicken class. Then implement this interface and all its methods in your ChickenMixin class. If you need to change vanilla methods, use @Inject. If your mixin is properly registered, you can use instanceof to get an instance of your interface from a Chicken object. Note that it is possible that your IDE will show you an error message that Chicken is not an instance of your interface, you can ignore that. I admit the documentation for mixin is a bit more complicated as you need a good understanding of java, if you need help I will be happy to give you an example.
-
Mob Model Changing
Your are doing nothing in the render method of the LayerRenderer, take a look at the GeckLib documentation about how to render a model
- Game Crash whilst rendering overlay
-
Block Entity recipes not working
I am still not able to import your project into my IDE, I would recommend you to remove all files from github that can be found in the .gitignore file. Iedally you create a new branch.
-
Mob Model Changing
The layer is added on game start to the Entity once, you should render the hat you want based on the integer variable in your LayerRenderer. Note the integer (if it's updated on server) should by synced to the client. Show your code
-
[1.20.2] RecipeSerializer Codec requirement
Can you please explain in more detail what you mean by that?
-
Keymappings don't appear in key binds menu [1.20.1, forge 47.1.30]
There are many differnt ways to register an EventHandler: I know that the documents are outdated and do not contain all the necessary information, I am already working on it.
-
[1.19] Render line on screen
You can try to rotate the PoseStack Thats correct, the RenderSytem uses OpenGL vanilla builts thier system on top of that Never done this before, I only have limited knowledge about rendering. Sorry that I can't really help you further.
-
Block Entity recipes not working
I cloned your git repo to debug your mod locally on my PC, but it seems to be broken. The project is missing some important gradle files because you are using a java .gitignore file, you should use the file which comes with the mdk.
-
Animate Block between different states
Sounds like you want to create a block simliar to the ShulkerBox? If yes you can take a look at the Block for an vanilla example.
IPS spam blocked by CleanTalk.