Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Comments on sub nodes #16

Open
ShaneBeee opened this issue Sep 15, 2018 · 0 comments
Open

[Suggestion] Comments on sub nodes #16

ShaneBeee opened this issue Sep 15, 2018 · 0 comments

Comments

@ShaneBeee
Copy link
Contributor

ShaneBeee commented Sep 15, 2018

Hey... sorry if this is the wrong terminology, but it would be awesome if you code add support for comments of sub nodes.
""Comments can only be at root level ie. 'root' not 'root.something'""

As you already know cause you wrote it ... you can only add comments on the root, but it would be even better if we could add comments on the root.something
ie:

# comment for my root
root:
    # comment for my something
    something: true
    # comment for something else
    something else: false

I have seen yaml files for plugins that have had that done, so I would ASSUME its possible
Im working on a huge config for a huge project, and not being able to have comments on "something" part. is really making the yaml look very cluttered.
I would appreciate this so much

Thank you for reading!

Example of what I mean by my config just looking cluttered

# No permanent flames near diamond level (there’s not enough air!)
# Players will have to get creative with their lighting, for example using dimmer redstone torches (spooky!)
# moving lava around with buckets (dangerous!)
# using glowstone (expensive!)
#  
# Players may not attach torches to loose materials like dirt, grass, and sand.
Torches:
    No Placement Under Y: 30
    Break In Rain: true
    No Placement On Soft Materials: true

Example of what I would LOVE to be able to do

Torches:
  # No permanent flames near diamond level (there’s not enough air!)
  # Players will have to get creative with their lighting, for example using dimmer redstone torches (spooky!)
  # moving lava around with buckets (dangerous!)
  # using glowstone (expensive!)
  No Placement Under Y: 30
  #Obvious - Torches will break in the rain
  Break In Rain: true
  # Players may not attach torches to loose materials like dirt, grass, and sand.
  No Placement On Soft Materials: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants