• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Thanks for replying, I wanted to use space bar so the player had agency over whether or not he actually wanted to continue jumping and receiving faster movement. I will use the second suggestion, but really that's beside the point as the problem I'm having concerns the AttributeModifier not changing properly. Do you know anything about that?
    • Why don't you use Entity#isAirborne? Also, you should use this to get if a keybind is pressed, Minecraft#gameSetiings#"insert keybind here"#isPressed.
    • So I want to have an item that has Jump Boost when equipped (already working), and I want the movement speed to be faster in the air. Therefore, I want to change the Attribute Modifiers of my ArmorItem programatically, and at runtime. The code below doesn't produce the expected outcome of only applying the speedup when the player holds the space key, instead it only even seems to fire if I hover directly on the item in my armor slot, pressing the space bar. public class JumpBootsItem extends ArmorItem { private AttributeModifier movementSpeed = new AttributeModifier("JumpBootsMovementSpeedModifier", 1, Operation.MULTIPLY_TOTAL); public Minecraft mc = Minecraft.getInstance(); @Override public Multimap<String, AttributeModifier> getAttributeModifiers(EquipmentSlotType slot, ItemStack stack) { Multimap<String, AttributeModifier> output = super.getAttributeModifiers(slot, stack); if (slot == EquipmentSlotType.FEET && stack.getItem().equals(this) && InputMappings.isKeyDown(mc.getMainWindow().getHandle(), mc.gameSettings.keyBindJump.getKey().getKeyCode())) { output.put(SharedMonsterAttributes.MOVEMENT_SPEED.getName(), this.movementSpeed); LOGGER.fatal("I am holding jump, speed should change"); } return output; } How to actually implement what I'm trying to do? Should I maybe instead try to simply add a "clone" of the item with the speed boost applied, then silently change it in the armor slot once the space bar is pressed? Thanks for replies!
    • [06Jun2020 08:22:04.960] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Jazz_MC, --version, 1.15.2-forge-31.2.0, --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.0, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20200515.085601] [06Jun2020 08:22:04.968] [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 08:22:05.041] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver] [06Jun2020 08:22:05.094] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [] [06Jun2020 08:22:05.129] [main/DEBUG] [cpw.mods.modlauncher.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [eventbus,object_holder_definalize,runtime_enum_extender,accesstransformer,capability_inject_definalize,runtimedistcleaner] [06Jun2020 08:22:05.182] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Discovering transformation services [06Jun2020 08:22:05.239] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found additional transformation services from discovery services: [/Users/cecilehart2/Library/Application Support/minecraft/mods/OptiForge-MC1.15.2-0.1.19.jar] [06Jun2020 08:22:05.400] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [fml,optiforge] [06Jun2020 08:22:05.409] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Transformation services loading [06Jun2020 08:22:05.411] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loading service fml [06Jun2020 08:22:05.412] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/]: Injecting tracing printstreams for STDOUT/STDERR. [06Jun2020 08:22:05.418] [main/DEBUG] [net.minecraftforge.fml.loading.LauncherVersion/CORE]: Found FMLLauncher version 31.2 [06Jun2020 08:22:05.418] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML 31.2 loading [06Jun2020 08:22:05.418] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found ModLauncher version : 5.1.0+69+master.79f13f7 [06Jun2020 08:22:05.419] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Initializing modjar URL handler [06Jun2020 08:22:05.424] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found AccessTransformer version : 2.1.1+55+master.08d32b9 [06Jun2020 08:22:05.425] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found EventBus version : 2.2.0+59+master.4f71e48 [06Jun2020 08:22:05.425] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Found Runtime Dist Cleaner [06Jun2020 08:22:05.437] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: FML found CoreMod version : 2.0.3+8+master.ca72757 [06Jun2020 08:22:05.444] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Found ForgeSPI package implementation version 2.1.2+9+master.a8b4d92 [06Jun2020 08:22:05.444] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Found ForgeSPI package specification 3 [06Jun2020 08:22:05.726] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [06Jun2020 08:22:05.727] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loaded service fml [06Jun2020 08:22:05.728] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loading service optiforge [06Jun2020 08:22:05.728] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Loaded service optiforge [06Jun2020 08:22:05.731] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Configuring option handling for services [06Jun2020 08:22:05.748] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Transformation services initializing [06Jun2020 08:22:05.749] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service fml [06Jun2020 08:22:05.749] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/CORE]: Setting up basic FML game directories [06Jun2020 08:22:05.751] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing GAMEDIR directory : /Users/cecilehart2/Library/Application Support/minecraft [06Jun2020 08:22:05.752] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path GAMEDIR is /Users/cecilehart2/Library/Application Support/minecraft [06Jun2020 08:22:05.753] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing MODSDIR directory : /Users/cecilehart2/Library/Application Support/minecraft/mods [06Jun2020 08:22:05.753] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path MODSDIR is /Users/cecilehart2/Library/Application Support/minecraft/mods [06Jun2020 08:22:05.753] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing CONFIGDIR directory : /Users/cecilehart2/Library/Application Support/minecraft/config [06Jun2020 08:22:05.753] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path CONFIGDIR is /Users/cecilehart2/Library/Application Support/minecraft/config [06Jun2020 08:22:05.753] [main/DEBUG] [net.minecraftforge.fml.loading.FMLPaths/CORE]: Path FMLCONFIG is /Users/cecilehart2/Library/Application Support/minecraft/config/fml.toml [06Jun2020 08:22:05.754] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/CORE]: Loading configuration [06Jun2020 08:22:05.887] [main/DEBUG] [net.minecraftforge.fml.loading.FileUtils/CORE]: Found existing default config directory directory : /Users/cecilehart2/Library/Application Support/minecraft/defaultconfigs [06Jun2020 08:22:05.887] [main/DEBUG] [net.minecraftforge.fml.loading.FMLServiceProvider/CORE]: Preparing launch handler [06Jun2020 08:22:05.888] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Using fmlclient as launch service [06Jun2020 08:22:06.917] [main/DEBUG] [net.minecraftforge.fml.loading.FMLLoader/CORE]: Received command line version data : MC Version: '1.15.2' MCP Version: '20200515.085601' Forge Version: '31.2.0' Forge group: 'net.minecraftforge' [06Jun2020 08:22:06.919] [main/DEBUG] [net.minecraftforge.fml.loading.LibraryFinder/CORE]: Found JAR asm at path /Users/cecilehart2/Library/Application Support/minecraft/libraries/org/ow2/asm/asm/7.2/asm-7.2.jar [06Jun2020 08:22:06.919] [main/DEBUG] [net.minecraftforge.fml.loading.LibraryFinder/CORE]: Found probable library path /Users/cecilehart2/Library/Application Support/minecraft/libraries [06Jun2020 08:22:06.920] [main/DEBUG] [net.minecraftforge.fml.loading.LibraryFinder/CORE]: Found forge path /Users/cecilehart2/Library/Application Support/minecraft/libraries/net/minecraftforge/forge/1.15.2-31.2.0/forge-1.15.2-31.2.0-universal.jar is present [06Jun2020 08:22:06.921] [main/DEBUG] [net.minecraftforge.fml.loading.LibraryFinder/CORE]: SRG MC at /Users/cecilehart2/Library/Application Support/minecraft/libraries/net/minecraft/client/1.15.2-20200515.085601/client-1.15.2-20200515.085601-srg.jar is present [06Jun2020 08:22:06.921] [main/DEBUG] [net.minecraftforge.fml.loading.LibraryFinder/CORE]: MC Extras at /Users/cecilehart2/Library/Application Support/minecraft/libraries/net/minecraft/client/1.15.2/client-1.15.2-extra.jar is present [06Jun2020 08:22:06.922] [main/DEBUG] [net.minecraftforge.fml.loading.LibraryFinder/CORE]: Forge patches at /Users/cecilehart2/Library/Application Support/minecraft/libraries/net/minecraftforge/forge/1.15.2-31.2.0/forge-1.15.2-31.2.0-client.jar is present [06Jun2020 08:22:06.949] [main/DEBUG] [net.minecraftforge.fml.loading.LanguageLoadingProvider/CORE]: Found 0 language providers [06Jun2020 08:22:06.952] [main/DEBUG] [net.minecraftforge.fml.loading.LanguageLoadingProvider/CORE]: Adding forge as a language from /Users/cecilehart2/Library/Application Support/minecraft/libraries/net/minecraftforge/forge/1.15.2-31.2.0/forge-1.15.2-31.2.0-universal.jar [06Jun2020 08:22:06.956] [main/DEBUG] [net.minecraftforge.fml.loading.LanguageLoadingProvider/CORE]: Adding file:/Users/cecilehart2/Library/Application%20Support/minecraft/libraries/net/minecraftforge/forge/1.15.2-31.2.0/forge-1.15.2-31.2.0-universal.jar to languageloader classloader [06Jun2020 08:22:07.117] [main/DEBUG] [net.minecraftforge.fml.loading.LanguageLoadingProvider/CORE]: Found 2 language providers [06Jun2020 08:22:07.119] [main/DEBUG] [net.minecraftforge.fml.loading.LanguageLoadingProvider/CORE]: Found language provider javafml, version 31.2 [06Jun2020 08:22:07.126] [main/DEBUG] [net.minecraftforge.fml.loading.LanguageLoadingProvider/CORE]: Found language provider minecraft, version 1 [06Jun2020 08:22:07.191] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initialized transformation service fml [06Jun2020 08:22:07.191] [main/DEBUG] [cpw.mods.modlauncher.TransformationServiceDecorator/MODLAUNCHER]: Initializing transformation service optiforge [06Jun2020 08:22:07.202] [main/ERROR] [io.github.zekerzhayard.optiforge.asm.fml.VersionChecker/]: It looks like you have not put OptiFine itself into the mods folder, you can download it from https://optifine.net/downloads. The game will continue, and run without OptiFine and OptiForge. java.lang.ClassNotFoundException: optifine.Installer 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.checkOptiFineVersion(VersionChecker.java:45) 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)
  • Topics

  • Who's Online (See full list)