Skip to content

Minecraft Command Helper for Minecraft Bedrock Edition.

License

Notifications You must be signed in to change notification settings

Yancey2023/CHelper

Repository files navigation

CHelper

I want to make a command helper for Minecraft Bedrock Edition, so here is CHelper, which means Command Helper.

Clone Project

git clone --recursive https://github.com/Yancey2023/CHelper
# if you clone it without --recursive, you should run the following:
cd CHelper-Core
git submodule update --init --recursive --progress

Multi-platform

project description
CHelper-Core CHelper-Core is the core of CHelper, written in c++
CHelper-Android CHelper-Android is the Android version of the app
CHelper-Web CHelper-Web is the web version of the app
CHelper-Qt maintain in CHelper-Core for development and debugging purpose

Usage

Help in editing command

When you are editing command, the app will show you command structure, param hint, command structure, and auto suggestions. It also supports syntax highlight.

Help in converting old version command to new version command

Dur to the Minecraft updates, some command has been changed.

It supports convert block data value to block state, and so on.

old command example:

execute @a ~ ~-1 ~ detect ~ ~-1 ~ stone 2 setblock ~ ~ ~ command_block 2

new command example:

execute as @a at @s positioned ~ ~-1 ~ if block ~ ~-1 ~ stone["stone_type"="granite_smooth"] run setblock ~ ~ ~ command_block["facing_direction"=2,"conditional_bit"=false]

Try it

Note: This app is mainly aimed at Chinese users, so the language is Chinese. You can help me support more languages.

CHelper-Web: https://yancey2023.github.io/CHelper/

CHelper-Web lacks some function. To experience more complete functions, please use CHelper-Android.

Plan

The desired function has been completed, and the new function to be developed is yet to be determined.

  • CPack - a resource pack containing IDs and commands
  • Lexer - transforms command strings into a token list
  • Parser - builds an Abstract Syntax Tree (AST) and find structural errors
  • Linter - finds errors based on the AST
  • Description - get the description of the currently written command param based on the AST
  • Auto Suggestion - get auto completion suggestions based on the AST
  • Command Structure - get command structure string based on the AST
  • Old 2 New - convert old command to new command
  • Syntax Highlight - get the syntax tokens for syntax highlight

Document

see: https://www.yanceymc.cn/chelper_doc/

Third-party

CHelper-Core

project description license
fmt formatting library MIT license
spdlog Fast C++ logging library MIT license
rapidjson a JSON parser and generator for C++ MIT license
utfcpp UTF-8 with C++ in a Portable Way BSL-1.0 license
xxHash Extremely fast non-cryptographic hash algorithm BSD-2-Clause
GoogleTest Google's C++ test framework BSD 3-Clause "New" or "Revised" License
Qt desktop application framework LGPL license

CHelper-Android

project description license
androidx a suite of libraries, tools, and guidance to help developers write high-quality apps easier Apache-2.0 license
Gson a Java library that can be used to convert Java Objects into their JSON representation Apache-2.0 license
RxJava Java VM implementation of Reactive Extensions Apache-2.0 license
RxAndroid RxJava bindings for Android Apache-2.0 license
okhttp Square’s meticulous HTTP client for the JVM, Android, and GraalVM Apache-2.0 license
retrofit A type-safe HTTP client for Android and the JVM Apache-2.0 license
DeviceCompat Device Compatibility Framework Apache-2.0 license
XXPermissions Android Permission Framework Apache-2.0 license
Toaster Android Toast Framework Apache-2.0 license
EasyWindow Android Floating Window Framework Apache-2.0 license
tabler-icons A set of free MIT-licensed high-quality SVG icons MIT License
Crunch The fastest Java expression compiler/evaluator MIT license
junit A programmer-oriented testing framework for Java Eclipse Public License 1.0

Special Thanks

project description license
caidlist provide IDs and descriptions for Minecraft Bedrock Edition GPL-3.0 license
chinese minecraft wiki provide information in Minecraft CC BY-NC-SA 3.0
  • JetBrains License for Open Source Development

    JetBrains Logo (Main) logo

About

Minecraft Command Helper for Minecraft Bedrock Edition.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •