Comments (4)
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
.
- 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.
- 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.
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.
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.
oh ok
from commandaliases.
Related Issues (20)
- Keep getting Unsupported Schema Version message HOT 1
- Tellraw JSON keeps failing HOT 3
- [SERVER] COMMAND_REDIRECT_NOARG - Could not find existing command "gamemode creative" HOT 3
- "gamemode survival" not working HOT 2
- Aliases loading order HOT 2
- trigger command not aliasing correctly HOT 2
- Feature Request: Fabric PlaceholderAPI HOT 5
- NoClassDefFoundError: org/yaml/snakeyaml/error/YAMLException HOT 1
- PlaceholderAPI Implementation HOT 2
- Unsupported schema version error HOT 3
- MySQL error after enabling mysql database HOT 1
- Better Command Action Scheduling System HOT 2
- Unable to create suggestion provider using JSON_LIST option / documentation does not exist HOT 3
- Command not working HOT 3
- Backup Mods HOT 3
- Doesn't load at all if there is an error in the configuration
- Add formatting support in "message" for other symbols, not just ยง
- Can be marked as 1.20.2 compatible
- Cannot assign "trigger" command HOT 1
- Running any Command in 1.20.4 crashes the server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commandaliases.