Git Product home page Git Product logo

datapack-editor's Introduction

Minecraft Datapack-Editor

GitHub GitHub repo size Lines of code Hits GitHub all releases


An advanced creator & editor for Minecraft Datapacks for Minecraft 1.20.2 - 1.20.4+ (datapack version 18-23+).

MainWindow1_IMG

Features

  • Code Editing
    • Syntax highlighting
    • Error checking
    • Rich code suggestions and code completion for .mcFunction and .json files
    • Add, rename and delete files and folders via the left-side tree view
  • Project
    • Open or create a new datapack project
    • Validate all files (for .mcFunction and .json files) within a project
    • Multi-root projects
    • supports dependencies between datapacks / projects via dependencies.json
  • Customization
    • custom themes
    • plugin support
  • Navigation:
    • Ctrl-Click to follow symbols (functions & function tags, block tags, ... )
    • Multi-tab & multi-view editor
    • Quickly find and open files with Ctrl+P
    • Search in all files

Keyboard Shortcuts

Action Shortcut
Find in all files Ctrl+Shift+F
Quickly find & open a file Ctrl+P
New (scratch) file Ctrl+N
Save current file Ctrl+S
Save as Ctrl+Shift+S
Action Shortcut
Duplicate line Ctrl+D
Find in current document Ctrl+F
Trigger code suggestions Ctrl+Space
Show call tips Ctrl+K

Download & Install

Current Version <--
Other Versions

Download the zip file, extract it to an empty folder and run the start.cmd file.

If you have any questions, problems or suggestions, feel free to create an Issue.

Screenshots

Main Window Quickly find and open a file

Create New Project Dialog Search Dialog Validate File

Disclaimer

Some contents in the program are from the Minecraft Wiki (see Minecraft Wiki:General disclaimer). This program is not affiliated with Mojang Studios.

datapack-editor's People

Contributors

joachimcoenen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

datapack-editor's Issues

random 0xC0000409 error while editing file

Impossible to reproduce reliably.
It might be caused by the OrderedMultiDict imlpementation.
or by exceptions raised in functions called from PyQt5 (wrap them with @CrashReportWrapped ?)
Affects all versions up to and including 0.6.0-alpha

getBestFAMatch(...) crashes with message "AttributeError: 'BlockState' object has no attribute 'values'"

Affects

  • 0.2.0-alpha

Traceback

Traceback (most recent call last):
  File "D:\Programming\Python\Cat\Cat\CatPythonGUI\utilities.py", line 21, in wrappedSlot
    slot__(*args, **kwargs)
  File "D:\Programming\Python\Cat\Cat\CatPythonGUI\utilities.py", line 145, in call
    return func(*args, **kwargs)
  File "D:\Programming\Python\Cat\Cat\CatPythonGUI\GUI\codeEditor.py", line 558, in _onIndicatorClicked
    api.indicatorClicked(Position(line, index), state)
  File "D:\Programming\Python\MinecraftDataPackEditor\gui\mcFunctionLexer.py", line 276, in indicatorClicked
    handler.onIndicatorClicked(match, position, window)
  File "D:\Programming\Python\MinecraftDataPackEditor\model\commands\argumentHandlersImpl.py", line 229, in onIndicatorClicked
    onIndicatorClickedForFilterArgs(argument.value, position, window)
  File "D:\Programming\Python\MinecraftDataPackEditor\model\commands\filterArgs.py", line 216, in onIndicatorClickedForFilterArgs
    if (match := getBestFAMatch(filterArgs, position.index)) is not None:
  File "D:\Programming\Python\MinecraftDataPackEditor\model\commands\filterArgs.py", line 106, in getBestFAMatch
    for fa in fas.values():
AttributeError: 'BlockState' object has no attribute 'values'

SerializableContainer -> dataclass

  • for ParsedNode
  • for CommandNode
  • for Position & Span
  • for ArgumentType
  • in file argumentValues.py
  • in file tokenizer.py
  • for NBTTag
  • for Gamerule
  • GeneralParsingError

Setup dialog for plugins

  • give plugins the ability to define a setup dialog gui.
  • remember whether setup has been done for each plugin (using a counter, for when the update of a plugin requires the setup to be redone.
  • Allow setup dialog to show only necessary setup steps, with option to see full setup dialog.

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.