Minecraft version: 1.12.2 Suggested name: GetMaterials What I want: I would like to a simple plugin that would extract all available materials in game to a yml file. List the materials in orders of the MinecraftID. example: short list stone 1 grass 2 dirt 3 cobblestone 4 wood 5 Code: items.yml stone: grass: dirt: cobblestone: wood: ***I need the file in this format. data type*** Commands: /getmats Permissions: OP only Thank you for reading.
@madtomic yml can't have empty values. So what should be the values? And won't a file be enough instead of a plugin?
@timtower I would imagine he wants something like the following: Code: [id]: [material] Code: [material]: [id] Code: Items: - [material] But yeah, @madtomic, how exactly do you want it? EDIT: Not if he wants a command as well. :7
@KarimAKL this format would work. Code: materials: [material]: [id]:[datavalue] The 2 spaces is needed or I will have a headache adding this for every items. LOL You are right about no plugin or command is needed because it is only a file I need. Thanks for the inputs.
@madtomic Not possible like this. The same material can be used for multiple datavales. See damage values for example.
That would work. Can do this in a couple hours of nobody did it by then. EDIT: Done, see link below. https://pastebin.com/D0hBNib0
@madtomic In case you want it as a plugin, here you go: https://www.dropbox.com/s/blty1ztl8bz5q9w/GetMaterials.jar?dl=0 You didn't explain what the 'getmats' command should do, so i just made it list all the materials. If you want the command to do something else please let me know.