• Recently Browsing

    No registered users viewing this page.

  • Posts

    • No, you would not be able to remove it then because as soon as the armor is removed, that method is no longer called.   No, you have to apply it directly to the player. Look how the item's modifiers (i.e. Item#getAttributeModifiers) is handled in LivingEntity#tick.
    • [06Jun2020 09:41:30.883] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Jazz_MC, --version, 1.15.2-forge-31.2.8, --gameDir, /Users/cecilehart2/Library/Application Support/minecraft, --assetsDir, /Users/cecilehart2/Library/Application Support/minecraft/assets, --assetIndex, 1.15, --uuid, 677a1f21f8d748aeadcd9204761fe3d5, --accessToken, ❄❄❄❄❄❄❄❄, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 31.2.8, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20200515.085601] [06Jun2020 09:41:30.901] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 5.1.0+69+master.79f13f7 starting: java version 1.8.0_74 by Oracle Corporation [06Jun2020 09:41:31.422] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFineTransformationService.onLoad [06Jun2020 09:41:31.434] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFine ZIP file: /Users/cecilehart2/Library/Application Support/minecraft/mods/preview_OptiFine_1.15.2_HD_U_G1_pre21.jar [06Jun2020 09:41:31.886] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [06Jun2020 09:41:31.932] [main/INFO] [optifine.OptiFineTransformationService/]: OptiFineTransformationService.initialize [06Jun2020 09:41:33.754] [main/ERROR] [io.github.zekerzhayard.optiforge.asm.fml.VersionChecker/]: It looks like you have not install Mixin, you can download it from https://www.curseforge.com/minecraft/mc-mods/mixinbootstrap. The game will continue, and run without OptiFine and OptiForge. java.lang.ClassNotFoundException: org.spongepowered.asm.launch.MixinBootstrap at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at io.github.zekerzhayard.optiforge.asm.fml.VersionChecker.checkMixinVersion(VersionChecker.java:95) at io.github.zekerzhayard.optiforge.asm.fml.OptiForgeTransformationService.initialize(OptiForgeTransformationService.java:92) at cpw.mods.modlauncher.TransformationServiceDecorator.onInitialize(TransformationServiceDecorator.java:68) at cpw.mods.modlauncher.TransformationServicesHandler.lambda$initialiseTransformationServices$7(TransformationServicesHandler.java:107) at java.util.HashMap$Values.forEach(HashMap.java:972) at cpw.mods.modlauncher.TransformationServicesHandler.initialiseTransformationServices(TransformationServicesHandler.java:107) at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:59) at cpw.mods.modlauncher.Launcher.run(Launcher.java:75) at cpw.mods.modlauncher.Launcher.main(Launcher.java:65)
    • Post the installer log file.
    • Thanks for answering, I will try to implement this with my limited knowledge 😇 Would it be sufficient to apply the modifier in the onArmorTick class, since it only really needs to be checked when I have the armor on. Also, how to apply the modifier? Should I put and remove from the Multimap provided by getAttributeModifiers?
  • Topics

  • Who's Online (See full list)