BindCommands with a datapack

Started by KirnolQ54 replies

  1. KirnolQ

    Hey, is it possible to set up datapack/mod so when they are used together, certain keybinds will be created for each player that joins the server? I am making a dungeon crawler map and I am looking for a way to make custom keybinds for some spells. 1.21.4.
  2. kalucky0Team

    I don't know about a datapack, but you could certainly create a mod. All keybinds are stored in a config file, so you just need to modify it.
  3. KirnolQ

    So I can configure the config file, upload it to the server and then the keybinds will work for everyone?(edited)
  4. kalucky0Team

    Yes
  5. KirnolQ

    Great. Also, do I need to use /trigger command to allow players without OP permissions to run commands using the keybinds?
  6. kalucky0Team

    Then no. It's a client side mod
  7. KirnolQ

    Well, that's a problem
  8. KirnolQ

    Replying toKirnolQGreat. Also, do I need to use /trigger command to allow players without OP permissions…

    So I'm guessing it won't work unless I use trigger
  9. kalucky0Team

    I will figure something out
    • 🔥1
  10. KirnolQ

    Replying tokalucky0also I don't know what you mean by using trigger. Doesn't everything you want run in a…

    The map does not have any mods. I really wanted to just avoid them, so settings up the map by players would be as rasy as just downloading the map and a resource pack without need for downloading Forge or Fabric. But I figured that optional mod for adding just keybinds would be great. And I probably don't need to explain it to you, but normally if you want to run a /function on a server, it won't let you unless you have OP permissions. Just like trying to use /gamemode command. So, if a player sets up a key to run a function of a spell, then it might not work without OP permissions and in that case, players would need to set up a /trigger command that would then trigger the function.
  11. KirnolQ

    And I got no response.
  12. kalucky0Team

    I'm working on it
  13. KirnolQ

    Oh
  14. kalucky0Team

    I managed to load data from the server
  15. kalucky0Team

    Serialization works Only merging configs is left
  16. kalucky0Team

    Done
  17. KirnolQ

    Replying tokalucky0@KirnolQ can you test if this works for you?

    I definetly will. I'm guessing there will be a config file?
  18. kalucky0Team

    Replying toKirnolQI definetly will. I'm guessing there will be a config file?

    It now synchronizes the config file from server with the one from client
    • 🔥1
  19. KirnolQ

    Replying tokalucky0@KirnolQ can you test if this works for you?

    It says it's not compatible with 1.21.4
    Image shared by KirnolQ
  20. kalucky0Team

    Ah sorry, one sec
    • 👍1
  21. KirnolQ

    Incompatible mods found!
    net.fabricmc.loader.impl.FormattedException: Some of your mods are incompatible with the game or each other!
    A potential solution has been determined, this may resolve your problem:
         - Replace mod 'BindCommands' (bind_cmd) 1.7.0-alpha.1 with any version that is compatible with:
             - minecraft 1.21.4
    More details:
         - Mod 'BindCommands' (bind_cmd) 1.7.0-alpha.1 requires any version of fabric-language-kotlin, which is missing!
         - Mod 'BindCommands' (bind_cmd) 1.7.0-alpha.1 requires any version between 1.21.5 (inclusive) and 1.22 (exclusive) of 'Minecraft' (minecraft), but only the wrong version is present: 1.21.4!
         - Mod 'BindCommands' (bind_cmd) 1.7.0-alpha.1 requires any version of modmenu, which is missing!
        at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:51)
        at net.fabricmc.loader.impl.FabricLoaderImpl.load(FabricLoaderImpl.java:196)
        at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:146)
        at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
        at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at crystallauncher.MinecraftConstructor.run(MinecraftConstructor.java:29)
        at crystallauncher.MineClient.start(MineClient.java:201)
        at crystallauncher.MineClient.main(MineClient.java:42)
  22. kalucky0Team

    fabric-bind-cmd-1.7.0-alpha.2-1.21.4.jarJava archive, 51 KB. Not stored in the archive.
  23. KirnolQ

    Thanks, ig
  24. KirnolQ

    Replying tokalucky0an attachment

    Still gives me an error
    message.txtText file, 19 KB. Not stored in the archive.
  25. kalucky0Team

    Ah sorry
  26. kalucky0Team

    Replying toKirnolQStill gives me an error

    fabric-bind-cmd-1.7.0-alpha.3-1.21.4.jarJava archive, 51 KB. Not stored in the archive.
  27. KirnolQ

    Replying tokalucky0Ah sorry

    No problem mate. I tried making some mods myself, so I know how painful it is (I failed obviously)
  28. KirnolQ

    Replying tokalucky0an attachment

    message.txtText file, 19 KB. Not stored in the archive.
  29. kalucky0Team

    Why is ModMenu having a stroke 💀
  30. KirnolQ

    I have no idea.
  31. kalucky0Team

    Yes
  32. KirnolQ

    Replying tokalucky0an attachment

    It showed up as newest version on curseforge
  33. KirnolQ

    It now shows 13.0.3 as the newest
  34. kalucky0Team

    @KirnolQ have you had a chance to test it? I'm currently working on adding also a per-world config
  35. KirnolQ

    Not really. I ended up using a different mod that was made specifically for my case. The one you sent me probably would work for me on a server, but if I ever wanted to upload my map somewhere, some people could use it on singleplayer too (and if they used it in server, they still would need to set up the config file, or copy one provided by me). The mod I'm currently using doesn't have any of those downsides.

Open in DiscordYou'll need to be a member of the server.

Related threads