Need help editing loot tables to include numismatics currency.

I have been trying to make wandering traders drop spurs and bevels when killed by the player, but I have failed and would like help. I am assuming creating loottable data packs for modded minecraft is a different process as what I have done is:- Taken the wandering_trader.json and edited it to drop numismatics currency (did not work) The json file is in ".minecraft\saves\table test\datapacks\loottable\data\minecraft\loot_tables\entities" I have attached the edited json file please see if there are any mistakes in it. Please note that I do not possess the knowledge of java and how this works as I was simply following an youtube tutorial.
7 Replies
Steam 'n' Rails Bot
Hello @A human from earth! Someone will help you shortly, please do not ping moderators or other people and just wait for someone to come help.
A human from earth
I have been ignored.
JudgeRinder
JudgeRinder5mo ago
this isnt exactly their problem since its datapack stuff, i'd help but I only know KubeJS sorry
A human from earth
Ah okay well thats unfortunate.
Slimeist
Slimeist5mo ago
@A human from earth Try this:
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "numismatics:bevel",
"weight": 2,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1,
"max": 2
}
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
}
]
},
{
"type": "minecraft:item",
"name": "numismatics:spur",
"weight": 10,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 2,
"max": 4
}
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
}
]
}
]
}
]
}
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "numismatics:bevel",
"weight": 2,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1,
"max": 2
}
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
}
]
},
{
"type": "minecraft:item",
"name": "numismatics:spur",
"weight": 10,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 2,
"max": 4
}
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
}
]
}
]
}
]
}
Here's a very useful tool for datapack gen: https://misode.github.io/loot-table/?share=6HJ2hEHoII also, make sure you have an mc meta file (basically just make sure that your datapack shows up and is enabled when you use the /datapack command)
A human from earth
ah thank you also another question if you do not mind if i were to make modded mobs drop numismatics currency would that follow a similar procedure ?
Slimeist
Slimeist5mo ago
yep. you'd put the file somewhere like .minecraft\saves\table test\datapacks\loottable\data\modid\loot_tables\entities\entity_id.json If your entity has the id modid:entity_id
Want results from more Discord servers?
Add your server