mcpyproject / McPy

A open source Minecraft server written 100% in Python
GNU Affero General Public License v3.0
84 stars 15 forks source link

Things to parse with the Parser #39

Open 0ddlyoko opened 3 years ago

0ddlyoko commented 3 years ago

Here is some things we should parse with the Parser:

Geolykt commented 3 years ago

One more thing:

0ddlyoko commented 3 years ago

One more thing:

  • [ ] Translations

Translations ?

Geolykt commented 3 years ago

They'll become somewhat cancerous when we'll work with chat. I doubt we can even parse them automatically, but it's worth trying. It'll also be usefull for the console/logs though as you don't want to see something like

{"translate":"chat.type.text","with":[{"text":"Herobrine","clickEvent":{"action":"suggest_command","value":"/msg Herobrine "},"hoverEvent":{"action":"show_entity","value":"{id:f84c6a79-0a4e-45e0-879b-cd49ebd4c4e2,name:Herobrine}"},"insertion":"Herobrine"},{"text":"I don't exist"}]}

ngi-odoo commented 3 years ago

For now, it only parse json files not json created in memory, I don't think we can do it for now but we can do it with the in build json library