Talk:Resource location

Name of article
I'm not sure if this ("Namespaced ID") is the right name. I don't know if there is a right name, though. is the name used by most mappings (unless you're being all spigot in which case you get ). I used "Identifier" on wiki.vg (but that's easy enough to change at some point). But there's just generally a large variety of names. I kinda like "Namespaced ID" but I don't think it's perfect... do you have any thoughts? (I figure it's best to have this conversation before adding links in a bunch of places). --Pokechu22 (talk) 06:03, 12 April 2019 (UTC)


 * I chose the name because this is used in Villager/ED for the in  tag. This does not really map to a resource location, as in vanilla code, the initial given id in methods is later transformed again to have prefix (advancement, textures, etc.) and suffix (.png, .json, etc.) "Identifier" is what I like as well, but this might conflict with bedrock. liach (talk) 06:08, 12 April 2019 (UTC)
 * The  class is used for all of those; the villager profession and type both come from registries (  and  ) which are accessed using the same type as advancements and all that.  It is silly to use the word "resource", but that is what is used.  (Speaking of which, it's important to note that those are from registries, just like with blocks and such, and are exposed in the registries report.  It's probably out of scope for this article/the wiki in general, though, since registries don't matter without mod stuff for the most part.) --Pokechu22 (talk) 06:21, 12 April 2019 (UTC)
 * In vanilla data fixers, this is called "NamespacedString", I believe. Resource location is coined by the Mod Coder Pack, which is not always accurate. I do deobfuscate the game in projects like fabric yarn, and I believe "Namespaced ID" is definitely better than "Resource Location". liach (talk) 07:07, 12 April 2019 (UTC)
 * I'm pretty sure that at some point in the past, mojang also used ResourceLocation within their code (and MCP used that name as such); however, I have no idea where I heard that and it would have been 3 or 4 years ago. The use of NamespacedStringType in datafixerupper convinces me that they've since renamed it.  So I'm mostly convinced, though it still might make sense to add conjecture though. --Pokechu22 (talk) 16:02, 12 April 2019 (UTC)
 * Template added. liach (talk) 04:06, 13 April 2019 (UTC)
 * "Namespace" is also used in . – Nixinova Nixinova sig1.png Nixinova sig2.png 06:10, 12 April 2019 (UTC)
 * The word "namespace" is definitely correct for the first part... but that article also has "Names of... things..." to describe the second part and also doesn't give a term for the whole structure. So it's a bit more complicated. --Pokechu22 (talk) 06:21, 12 April 2019 (UTC)
 * I guess I just have to rename "path" to "name", and things should be fine. liach (talk) 07:07, 12 April 2019 (UTC)