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

A small tutorial/config on how to add mobs to the entity tag #103

Closed
Ricenami opened this issue Sep 14, 2023 · 3 comments
Closed

A small tutorial/config on how to add mobs to the entity tag #103

Ricenami opened this issue Sep 14, 2023 · 3 comments
Labels
type: documentation this issue requests additions or enhancements to documentation type: question this issue asks a question and does not necessarily report a problem

Comments

@Ricenami
Copy link

I hope all is well. I'm not a developer, nor do I have experience in making datapacks. I already have attempted making a datapack to add mobs to to the entity tag so that they drop coins. However, no matter what I try I can't succeed in mobs dropping coins. If it's not too much trouble, I would greatly appreciate if you could implement a config option to allow players to add mobs, or even a wiki on how to add mobs such as your tutorial for villager trades. I'll leave my datapack if anyone is willing to help me.

{
        "replace": false,
        "values": [
          "minecraft:pillager",
          "minecraft:skeleton",
          "minecraft:creeper",
          "minecraft:drowned",
          "minecraft:husk",
          "minecraft:blaze",
          "minecraft:magma_cube",
          "minecraft:vex",
          "minecraft:vindicator",
          "minecraft:ravager",
          "minecraft:evoker",
          "minecraft:zombie_villager",
          "minecraft:slime",
          "minecraft:stray",
          "minecraft:guardian",
          "minecraft:phantom",
          "minecraft:piglin_brute"
    ]
  }
{
    "pack": {
        "pack_format": 10,
        "description": "Mobs drop coins from the Numismatic Overhaul mod"
    }
}

My datapack folder layout:
It is placed in datapack folder, I can see it showing up in the datapacks upon world creation.

numismatic-mob-drops/data/mobdrops/tags/entity_types/the_bourgeoisie.json
numismatic-mob-drops/pack.mcmeta

I appreciate your time

@Noaaan
Copy link
Member

Noaaan commented Sep 14, 2023

You are not using numismatic overhauls namespace when adding values to this tag. As such, numismatic-overhaul:the_bourgeoisie remains unchanged, and a new tag is created named mobdrops:the_bourgeoisie. Changing the namespace here should fix this.

@Ricenami
Copy link
Author

That did the trick, appreciate your help!

@Noaaan
Copy link
Member

Noaaan commented Sep 24, 2023

To close this issue, I will provide the example datapack we have in our Discord which holds the default behaviour of Numismatic Overhaul. Changing the values listed in this tag is enough to let you change what mobs drop coins: https://cdn.discordapp.com/attachments/826144880610115595/1052282992657190912/bourgoisie.zip
Install it in the world of your server manually, or use something like Paxi or Global Datapacks to load it for your modpack.

For more extensive loot table configuration (for example having a boss monster drop a ton of coins) you want to seek out a different mod that can modify loot tables this extensively.

@Noaaan Noaaan closed this as completed Sep 24, 2023
@Noaaan Noaaan added type: documentation this issue requests additions or enhancements to documentation type: question this issue asks a question and does not necessarily report a problem labels Sep 24, 2023
@Noaaan Noaaan pinned this issue Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation this issue requests additions or enhancements to documentation type: question this issue asks a question and does not necessarily report a problem
Projects
None yet
Development

No branches or pull requests

2 participants