mojira.dev
MC-195871

Configured features within datapacks are broken (FIXED – see comments)

The Bug:

In the newest snapshot, all instances of the name field within worldgen json files (datapacks) have been renamed to type. However, the game log returns an error stating {color:#de350b}Feature: No key name in MapLike{color} when name is renamed to type, and returns {color:#de350b}Feature: Input does not contain a key [type]{color} if I don't rename the name fields to type.

 

To Reproduce:

  1. Add the attached datapack to a new world

  2. Teleport to anywhere in custom:test

What should happen: the terrain should generate with custom birch trees from minecraft/worldgen/configured_feature/custom/trees_birch.

What actually happens: the custom trees do not generate and instead the following error is returned in the game log:

Feature: No key name in MapLike[{"config":{"feature":"custom:birch_bees_0002","decorator":{"config":{"outer":{"config":{},"type":"minecraft:square"},"inner":{"config":{},"type":"minecraft:heightmap"}},"type":"minecraft:decorated"}},"type":"minecraft:decorated"}]

 

Important Notes:

This configured feature is taken directly from Slicedlime's vanilla worldgen folder https://t.co/cm3pJcAHcy?amp=1 and has not been modified except for path names.

I also got this error when adding a datapack which listed individual structures in the dimension json file.

Attachments

Comments 3

OK so I've found that both of these issues are not bugs but changes that just weren't mentioned for some reason ('key name' is not referring to the "name" tags which were renamed to "type"):

To ressolve the error, configured features now need to include a name tag for the name of the feature as of 20w30a e.g. "name": "custom_feature_name_here".

 

{
 "config": {
  "feature": {
   "name": "grand_pine_tree",
   "config": {
    "feature": {
     "config": {
 
      "max_water_depth": 0,
      "ignore_vines": true,

To fix files in the dimension folder which produce this same error, you need to include a "name" tag within the "Settings" field of the json file e.g. "name": "custom_dimension" or "name": "custom_settings".

"settings": {
 "name": "white_concrete_forest",
 "structures": {
  "stronghold": {
   "distance": 32,

Thank you for your report!
We're tracking this issue in MC-195407, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automagically! Please report any issues in Discord or Reddit

Ethan Wilson

(Unassigned)

Unconfirmed

customized-world, data-pack, world-generation

20w30a

Retrieved