APDevTeam / Movecraft

The original movement plugin for Paper. Reloaded. Again.
GNU General Public License v3.0
122 stars 79 forks source link

Regarding Block Name Formatting in .craft Files #522

Closed TDLF8 closed 2 years ago

TDLF8 commented 2 years ago

Switching from Movecraft 7 to Movecraft 8 to run on a 1.18.2 server.

The format of craft files was changed from the "all_[block type] format to the "#[block type]" format. I don't fully understand the conventions of it, and am having difficulty converting old craft files to work with the new version.

I don't know, for example, if it is "#terracottas" or "#terracota", and it is far to tedious to go in and check the format of every single variation of every single block that is used in the craft file. Is there an easier way to do this? Is there a list of blocks and how to format them? A conversion tool?

galacticwarrior9 commented 2 years ago

Wasn't the all_ material prefix a feature of eirikh's fork, not this version?

Regardless, the way I converted from the all_ format to using the new tags was by simply using the "Replace in Files" feature of Notepad++, which is a free program.

TDLF8 commented 2 years ago

Yes, but I switched over to this fork for compatibility.

Replacing isn't really the issue, it's more what to replace with. What are the correct formats for the names of certain blocks? Is there a list or a general rule that they follow?

TylerS1066 commented 2 years ago

All of the vanilla provided tags can be found here, in the spigot API docs: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Tag.html

In addition, Movecraft has its own datapack to supplement these with some commonly used tags. You can find the list here: https://github.com/APDevTeam/Movecraft/tree/main/modules/datapack/src/main/resources/movecraft-data/data/minecraft/tags/blocks

TDLF8 commented 2 years ago

Perfect. Exactly what I needed, thank you.