Jump to content

Leronus

Members
  • Posts

    67
  • Joined

  • Last visited

Everything posted by Leronus

  1. Could you post a screenshot of your .minecraft folder? Which version of Forge are you running? Are you running any other mods? Please post the new crash log if it has changed after deleting Sodium from the mods folder. The only other thing I can think of is an incompatible resourcepack, but I have never had it crash my game not sure if that is possible. I'll need more information to troubleshoot further.
  2. If I'm reading this correctly you are trying to run Sodium which is a fabric mod for 1.16.5 on Forge 1.19.2? You should remove any incompatible mods from your mods folder in .minecraft if you're switching versions.
  3. I am trying to add custom materials to be used as armor trim. In this case I am trying to apply a bronze armor trim to my custom sapphire boots from the bronze ingot. The model is working correctly (sapphire with bronze armor trim) but the item model appears as the amethyst armor trim. I believe this is due to the item_model_index defaulting to 1.0 instead of 1.1 which leads to this issue. Clearly I'm doing this wrong but I'm unsure of how to correctly load the item model for the custom armor trim materials. Item model: https://github.com/Leronus/mOres/blob/1.20.1/src/main/resources/assets/mores/models/item/sapphire_boots.json ModArmorTrimMaterials.java: https://github.com/Leronus/mOres/blob/1.20.1/src/main/java/mod/leronus/mores/item/custom/trims/ModArmorTrimMaterials.java
  4. I have managed to get the configuration file working using CommentedFileConfig but the order is completely random when generating a new config file everytime. How do I make sure the config file is in the order as defined in the Config.java class? Relevant file: https://github.com/Leronus/mOres/blob/1.19.2/src/main/java/mod/leronus/mores/config/Config.java
  5. Problem: The changed values in the 'mores.toml' configuration file for my mod aren't working ingame. Example: The default value for Copper Shield is 240 The value in 'mores.toml' was changed to 280 The value ingame is still 240 after restarting the game in IntelliJ IDEA. Repository: https://github.com/Leronus/mOres/tree/1.19.2 Relevant files: Main mod file - https://github.com/Leronus/mOres/blob/1.19.2/src/main/java/mod/leronus/mores/Mores.java Config files - https://github.com/Leronus/mOres/blob/1.19.2/src/main/java/mod/leronus/mores/config/Config.java https://github.com/Leronus/mOres/blob/1.19.2/src/main/java/mod/leronus/mores/config/MoresConfig.java https://github.com/Leronus/mOres/blob/1.19.2/src/main/java/mod/leronus/mores/config/ConfigHolder.java Request: Could somebody identify the problem for me, I would very much appreciate it! Thank you in advance. Kind regards, Leronus
  6. Did you solve this?
  7. It works in singleplayer yes, but not on a server. That's when they keep spawning over and over.
  8. Locally that seems to have fixed it, but on my modded server they are still spawning A LOT. GitRepo: https://github.com/Leronus/mOres Img: https://imgshare.io/image/2021-10-17-110104.pgUz1y
  9. My bad sorry. I solved it by using the accesstransformers for PlayerEntity as well. Thanks though!
  10. I'm trying to modify the amount of damage blocked. For example, the vanilla shield currently blocks 100% of incoming damage, I would like to change that to 60%. For my other custom shields I want to increase this numbers, which depends on the material the shield is made out of. To do so, I require access to 1. LivingEntity.isDamageSourceBlocked(DamageSource p_184583_1_) 2. LivingEntity.blockUsingShield(LivingEntity p_190629_1_) 3. LivingEntity.hurtCurrentlyUsedShield(float p_184590_1_) When I look at LivingEntity.isDamageSourceBlocked(DamageSource p_184583_1_) it is most definitely private. The other two methods are indeed protected. I am currently using Forge 36.2.6 Any way to accomplish this or should I just accept the vanilla shield functionality?
  11. I forgot to add the shield to my ShieldTileEntityRenderer. I knew it was something obvious. You may consider my problem solved and this thread closed.
  12. public net.minecraft.entity.LivingEntity func_184583_d(Lnet/minecraft/util/DamageSource;)Z # isDamageSourceBlocked public net.minecraft.entity.LivingEntity func_184590_k(F)V # hurtCurrentlyUsedShield public net.minecraft.entity.LivingEntity func_190629_c(Lnet/minecraft/entity/LivingEntity;)V # blockUsingShield I'm trying to use these methods in LivingEntity.java, but I'm getting the following error: "attempting to assign weaker access privileges; was public" I would like to use these methods in my Hooks.java class (location: /src/main/java/mod/mores/util/Hooks.java), so that I can change how much incoming damage my custom shields can block. My question is, why am I getting this error? And also, what would be the correct way of achieving what I want? GitRepository: https://github.com/Leronus/mOres
  13. I think I'm not setting the textures correctly in the model json files, but if that's the case then copper shield shouldn't be working either because the contents are the exact same as the other shields. I am beyond confused.
  14. I couldn't find any, the textures are in the correct location with the correct names
  15. Only my copper shield model loads in properly, the other shield models all look like the vanilla one. Not sure how this is happening? GitRepo: https://github.com/Leronus/mOres
  16. Thanks, I got it working now!
  17. Yeah it is, just added the .json as well, it still doesn't work Image as reference: https://imgur.com/a/9Drf5PT
  18. I do need a custom recipe because I'm using my own ItemShield.java class, which extends ShieldItem.java It does not work as it is now
  19. You seem to be actively disregarding our answers. Please read our previous posts, the explanation has already been given.
  20. What exactly are you trying to accomplish? By using the isBurning() method you are checking if the entity is on fire, which is not what you want to check? You simply had to remove 'static' from the isPetting variable. Like @uSkizzik said, please learn basic Java before modding.
  21. This is done by adding them as a dependency in your build.gradle file Add this above dependencies: repositories { maven { url "https://www.cursemaven.com" } } Then in dependencies add: runtimeOnly fg.deobf("curse.maven:custom_name-project_id:file_id") Replace custom_name with any name you want (I'd recommend just the mod namespace). Replace project_id with the Project ID over on CurseForge. Replace the file_id with the id of the mod file. Read more explanation below. An example of my dependencies, which adds the AttributeFix mod (https://www.curseforge.com/minecraft/mc-mods/attributefix dependencies { implementation 'org.jetbrains:annotations:20.1.0' minecraft 'net.minecraftforge:forge:1.16.5-36.2.6' runtimeOnly fg.deobf("curse.maven:attributefix-280510:3232225") //AttributeFix Mod } The project ID can be found on CurseForge's main mod page of the mod you'd like to add The file ID can be found by clicking the file, it will be the last digits in the URL. E.g. for AttributeFix-1.16.5-10.1.2.jar the URL is: https://www.curseforge.com/minecraft/mc-mods/attributefix/files/3232225 In this case the file ID = 3232225 Be sure to refresh your gradle build before running the client, so the changes are actually applied.
  22. I'm trying to make it so that Minecraft banners can be combined with my custom shields. I have created the ShieldRecipes.java class which extends SpecialRecipe and handles the logic. I have registered this recipe in my main mod class, Mores.java However, when I try to combine them in a crafting table, there is no output item, aka it doesn't work. What am I doing wrong? GitRepo: https://github.com/Leronus/mOres Classes used: mOres/src/main/java/mod/mores/recipe/ShieldRecipes.java mOres/src/main/java/mod/mores/Mores.java
  23. I'm using the biomeLoad event to spawn my duck entity in, but when returning to a biome or standing still in it, the ducks will keep on spawning at the same location on my modded server. How do I prevent this? I only want them to spawn once, at the same rate as chickens, near beaches or rivers. GitRepo: https://github.com/Leronus/mOres Image for reference: https://imgshare.io/image/2021-10-09-182453.pFfbGp Class location: mOres/src/main/java/mod/mores/events/EntityEvent.java
  24. Bro I thought it was that statement too, back in 1.16.3 it was entity.IsHandActive(), but I couldn't find the right replacement. Apparently it's isUsingItem() as you said Thanks a lot man!
  25. Copper shield - Not blocking - Third Person (does not work as intended) https://imgshare.io/image/pFofW8 Vanilla shield - Not blocking - Third Person https://imgshare.io/image/pFozKw Copper shield - Blocking - Third Person (works as intended) https://imgshare.io/image/pFoBOK Vanilla shield - Blocking - Third Person https://imgshare.io/image/pFo1FS Vanilla shield - Not blocking - First Person https://imgshare.io/image/pFogUj Copper shield - Not blocking - First Person (does not work as intended, is being rendered as "blocking") https://imgshare.io/image/pFtrH6 Copper shield - Blocking - First Person (works as intended) https://imgshare.io/image/pFtNwe Vanilla shield - Blocking - First Person https://imgshare.io/image/pFtpIy
×
×
  • Create New...

Important Information

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