Code Monkey home page Code Monkey logo

Comments (4)

FlashyReese avatar FlashyReese commented on July 28, 2024

Nice catch, apparently Minecraft throws an error internally if your inventory is empty and you run the clear command. I have fixed this in 1208fd1, you can try this GitHub Actions build for the meanwhile, just click and download build-artifacts.

  1. Command feedback only occurs if the user is OP, I will have an option in the future to turn this off for OPs as well.
  2. When you define "type": "CLIENT", the player tries to execute the command. Defining it as "type": "SERVER", the server will try to execute the command(it is like the console and it will try to run the command).

If this command is meant for OP only then it should be define as "type": "CLIENT".

Also you should use COMMAND_REASSIGN_AND_CUSTOM, although this isn't updated in the wiki, it works on the latest release.

  {
    "commandMode": "COMMAND_REASSIGN_AND_CUSTOM",
    "command": "clear", //This line will not be necessary in the next release.
    "reassignTo": "minecraft:clear",
    "customCommand": {
      "parent": "clear",
      "type": "literal",
      "permission": 1, //Only for OPs
      "actions": [
        {
          "command": "minecraft:clear",
          "commandType": "CLIENT"
        },
        {
          "command": "replaceitem entity @s hotbar.0 minecraft:wooden_sword",
          "commandType": "CLIENT"
        }
      ]
    }
  }

I will leave my Discord server here(it's work in progress), if you have any issues/questions feel free to ask me there.

from commandaliases.

barraIhsan avatar barraIhsan commented on July 28, 2024
When you define "type": "CLIENT", the player tries to execute the command. Defining it as "type": "SERVER", the server will try to execute the command(it is like the console and it will try to run the command).

So its mean we can run it in any server as long we have the permission. For example anyone can run /trigger so its mean that I can enter the commandAliases for /trigger at any server?

from commandaliases.

FlashyReese avatar FlashyReese commented on July 28, 2024

So its mean we can run it in any server as long we have the permission. For example anyone can run /trigger so its mean that I can enter the commandAliases for /trigger at any server?

Well no, Command Aliases is server sided(internal server/dedicated server), if you use Command Aliases on your client, it only works on your single player worlds. The dev branch does support client sided commands, but it's heavily work in progress as well.

from commandaliases.

barraIhsan avatar barraIhsan commented on July 28, 2024

oh ok

from commandaliases.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.