AbandonTech / AbandonTech/siren

Create bindings for vanilla Minecraft commands as of MC 1.20

Aperta
#2 0 commenti 0 reazioni 1 assegnatario Rivendicata da @fisher60 Vedi su GitHub
enhancement
Lingua principale
Python
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Summary

In order to validate commands with our web app, it is useful to have bindings for all Minecraft commands. Having some validation will be helpful. It would be nice for these to already be pydantic models so that they work seamlessly with the existing web app.
 
We can use this [comprehensive list](https://minecraft.fandom.com/wiki/Commands#List_and_summary_of_commands) as our source of truth. We only need to consider commands that are compatible on PC Java edition (JE) for now.

An example implementation of this may use Pydantic models as follows:

```py
# models.py
from pydantic import BaseModel

class Command(BaseModel):
command: str

class GiveArgs(BaseModel):
"""give []"""
target: str
item: str
count: int

```

```py
# commands.py
import .models

class Give(Command):
args: GiveArgs

```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.