Jump to content

make modded items appear in dungeon chests (1.16.1)


Unkn0wn4all

Recommended Posts

I've already registered my item and it show up the the creative inventory fine but I can't get it to spawn in a dungeon

here's my code:

{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "item",
          "name": "ruby_items:ruby_matter_core",
          "weight": 100
        }
      ]
    }
  ]
}

and the json is in Ruby Items 1.16.1-1.0.0/src/main/recources/data/ruby_items/loot_tables/chests/simple_dungeon.json

was I supposed to write anything in the code? because my class file is empty

package com.mani_cwaf.ruby_items.items;

import com.mani_cwaf.ruby_items.Ruby_Items;
import net.minecraft.item.Item;

public class RubyMatterCore extends Item {
    public RubyMatterCore() {
        super((new Properties().group(Ruby_Items.TAB_RUBY)));
    }
}

 

Edited by Unkn0wn4all
Link to comment
Share on other sites

  • Unkn0wn4all changed the title to make modded items appear in dungeon chests (1.16.1)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.