Filled GetMaterials

Discussion in 'Plugin Requests' started by madtomic, Jun 1, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    madtomic

    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.
     
    Last edited: Jun 1, 2019
  2. Offline

    KarimAKL

    @madtomic Should be very easy, what does the 'getmats' command do?
     
  3. Offline

    timtower Administrator Administrator Moderator

    @madtomic yml can't have empty values. So what should be the values?
    And won't a file be enough instead of a plugin?
     
  4. Offline

    KarimAKL

    @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
     
  5. Offline

    madtomic

    @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.
     
    Last edited: Jun 2, 2019
  6. Offline

    timtower Administrator Administrator Moderator

    @madtomic Not possible like this.
    The same material can be used for multiple datavales. See damage values for example.
     
  7. Offline

    madtomic

    @timtower

    Would this work then?

    Code:
    materials:
      [material]: [id]
     
    timtower likes this.
  8. Offline

    timtower Administrator Administrator Moderator

    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
     
    Last edited: Jun 2, 2019
    madtomic likes this.
  9. Offline

    KarimAKL

    madtomic likes this.
  10. Offline

    madtomic

    KarimAKL and timtower like this.
Thread Status:
Not open for further replies.

Share This Page