Luis_ST
Members-
Posts
5704 -
Joined
-
Last visited
-
Days Won
72
Everything posted by Luis_ST
-
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.
-
java.lang.IllegalStateException: Pose stack not empty
Luis_ST replied to Rottensinho's topic in Support & Bug Reports
Try without OptiFine -
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.
-
[1.20.2] Registering EntityType Problems
Luis_ST replied to chrisicrafter27's topic in Modder Support
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. -
[1.20.1] How do I modify Minecraft classes when my mod is loading
Luis_ST replied to btuh's topic in Modder Support
The method is missing a Callback parameter, if the method has a returntype you have to use CallbackInfoReturnable else CallbackInfo -
Have you read the documentation of GeckLib? The layer should not be added in the render method this should be done in the constructor
-
[1.20.1] How do I modify Minecraft classes when my mod is loading
Luis_ST replied to btuh's topic in Modder Support
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 } // ... } -
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
Luis_ST replied to btuh's topic in Modder Support
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. -
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
Luis_ST replied to Big Bacon Mommy's topic in Support & Bug Reports
Should be an issue with "shcm.shsupercm.forge.citresewn.CITResewn" i guess the mod is called CITResewn -
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.
-
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
-
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]
Luis_ST replied to SermisterOne's topic in Modder Support
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. -
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.
-
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.
-
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.