Jump to content

Luis_ST

Members
  • Posts

    5704
  • Joined

  • Last visited

  • Days Won

    72

Everything posted by Luis_ST

  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.
  2. Remove Rubidium. Magic performance mods such as Rubidium are not recommended as they increase performance by breaking the game.
  3. 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.
  4. Remove the #get call for all vanilla Items then post the log and the full class. Please use the code feature of the forum.
  5. 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.
  6. Vanilla Items are directly Item instances you do not need to call #get like for your Mod Items (which are RegistryObjects)
  7. The LazyOptional should be final, why does this line exists?
  8. The method is missing a Callback parameter, if the method has a returntype you have to use CallbackInfoReturnable else CallbackInfo
  9. Post the content of your pack.mcmeta file
  10. Have you read the documentation of GeckLib? The layer should not be added in the render method this should be done in the constructor
  11. The exception is thrown because your LazyOptional is null here try to use debugger to find the reaseon
  12. 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 } // ... }
  13. 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.
  14. 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.
  15. 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.
  16. Your are doing nothing in the render method of the LayerRenderer, take a look at the GeckLib documentation about how to render a model
  17. Should be an issue with "shcm.shsupercm.forge.citresewn.CITResewn" i guess the mod is called CITResewn
  18. 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.
  19. 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
  20. Can you please explain in more detail what you mean by that?
  21. 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.
  22. 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.
  23. 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.
  24. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.