feather-rs / feather

A Minecraft server implementation in Rust
Apache License 2.0
2.59k stars 143 forks source link

Rewrite generators in Rust #384

Open ambeeeeee opened 3 years ago

ambeeeeee commented 3 years ago

The motivation for this issue is the fact that I am going to have to redo a few of them, so I figured I might as well rewrite them all in Rust so that they can be easier to update and use. I've already rewritten the Inventory generator and created a small framework to rewrite the rest, and I'm hoping to have that done by the end of the weekend.

ambeeeeee commented 3 years ago

Implement #395

Masplus commented 3 years ago

I was planning to implement an effects struct, but i need the enum of effect types. Could you add it in your generators?

Miro-Andrin commented 3 years ago

I am eventually going to need a generator for minecraft command syntax. The one i wrote in python was never merged, although i was able to add a generator for Prismarine/minecraft-data, so that we don't require the minecraft.jar

Defman commented 3 years ago

List of generators

  1. Blocks
  2. Items
  3. Loot tables
  4. Recipes
  5. Block collision shapes
  6. Effects
  7. Foods
  8. Noteblock/instrument
  9. Language embedded as a AHashMap<String, String>
  10. Windows
PauMAVA commented 3 years ago

Should enchantments with their max levels and incompatible enchantments/items be generated too?

ambeeeeee commented 3 years ago

Probably a good idea.

zNoctum commented 3 years ago

are all the generators implemented?

Miro-Andrin commented 2 years ago

I have started a library for modelling the data from PrismarineJs in rust. It's slow going but eventually we can have a single library for loading and combining their data. Contributions are welcome.

Miro-Andrin commented 2 years ago

Small update, we have added structs for every type of data in Prismarine, and we are able to generate the biomes.