Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

938 profile views

Leronus's Achievements

Stone Miner

Stone Miner (3/8)



  1. It works in singleplayer yes, but not on a server. That's when they keep spawning over and over.
  2. 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
  3. My bad sorry. I solved it by using the accesstransformers for PlayerEntity as well. Thanks though!
  4. 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?
  5. 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.
  6. 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
  7. 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.
  8. I couldn't find any, the textures are in the correct location with the correct names
  9. 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
  10. Yeah it is, just added the .json as well, it still doesn't work Image as reference: https://imgur.com/a/9Drf5PT
  11. 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
  12. You seem to be actively disregarding our answers. Please read our previous posts, the explanation has already been given.
  13. 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.
  14. 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.
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.