use of "_" in normal mods elements

Started by centa on

Topic category: Feature requests and ideas for MCreator

Last seen on 04:58, 3. Feb 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use of "_" in normal mods elements

I know that for many people this is a very silly request, but it seems to me that using the underscore to organize the articles would be fine.
because, as you know in all the mods external to the program and, in fact, also the Minecraft Vanilla uses it to supplant the spaces, and then randomly, you discover that this sign can only be used in duplicate (or copied) mod elements , since if you try to use a new mod element it will not work, this sign can also be used for the division of classes or objects and elements, for example:

iron_ingot
iron_sword

It is marked "type" and then the "subtype", here our "type" is the "iron" and our "subtype" is the "sword" or the "ingot", it is quite simple to use and I found it interesting to see that It can only be applied to duplicate mod elements and not to newly created elements.

for me it would be great to use this and so order the mod elements better.

I don't know if anyone will see this, but it's just an idea (very simple and for people some bit useless)

pt: sorry for my bad english, I'm not very good at this language

You can set registry names…
Sat, 08/24/2019 - 18:16

You can set registry names with underscores, but for mod element names, it is not in Java convention to use underscores. For mod element names, use camel casing convention for naming, for example:

My custom block

becomes

MyCustomBlock

Last seen on 04:58, 3. Feb 2024
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
o thanks you
Sat, 08/24/2019 - 20:42

o thanks you

Last seen on 16:01, 14. May 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i want to use spaces!
Wed, 03/08/2023 - 15:48

i want to use spaces!

Last seen on 16:01, 14. May 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
im nameing my zombie mob…
Wed, 03/08/2023 - 15:49

im nameing my zombie mob corrupted zombie!

 

Last seen on 16:01, 14. May 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for my parasitc corruption…
Wed, 03/08/2023 - 15:51

for my parasitc corruption mod!

Last seen on 16:01, 14. May 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
with infected mobs!
Wed, 03/08/2023 - 15:52

with infected mobs!

Last seen on 16:01, 14. May 2023
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
a new effect two!
Wed, 03/08/2023 - 15:53

a new effect two!