1

Need some more help...

Garfieldwxg55 6/22/20 2:26 am history
233
7/1/2020 9:31 pm
Hi everyone, around a week ago I posted a question regarding a data pack I am editing, it is a data pack that adds custom music discs to the game. It works fine in 1.14 and 1.15, but the new Pigstep Music Disc in 1.16 creates a problem. The data pack adds a new loot table to the creeper that allows the new music discs to drop, but in 1.16 this causes the Pigstep disc to be dropped by creeper, which undermines its rarity.
Here is the loot table:
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 0.0,
"max": 2.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:looting_enchant",
"count": {
"min": 0.0,
"max": 1.0
}
}
],
"name": "minecraft:gunpowder"
}
]
},
{
"rolls": 1,
"entries": [
{
"type": "minecraft:tag",
"weight": 1,
"name": "minecraft:music_discs",
"expand": true
},
{
"type": "minecraft:item",
"weight": 1,
"name": "minecraft:music_disc_11",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{CustomModelData:1, HideFlags:32, display:{Lore:[\"\\\"§7Moorziey - Demise\\\"\"]}}"
}
]
},
{
"type": "minecraft:item",
"weight": 1,
"name": "minecraft:music_disc_11",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{CustomModelData:2, HideFlags:32, display:{Lore:[\"\\\"§7worldpeace - Medivo\\\"\"]}}"
}
]
},
{
"type": "minecraft:item",
"weight": 1,
"name": "minecraft:music_disc_11",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{CustomModelData:3, HideFlags:32, display:{Lore:[\"\\\"§7John Williams - Duel of the Fates\\\"\"]}}"
}
]
}
],
"conditions": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"type": "#minecraft:skeletons"
},
"entity": "killer"
}
]
}
]
}
Any feedback is appreciated!
Posted by
Garfieldwxg55
Level 2 : Apprentice Miner
1

  Have something to say?

JoinSign in

6

BladeZNick
06/22/2020 11:37 pm
Level 48 : Master Modder
While I can't help with this, I have a suggestion. Maybe change the custommodeldata to a higher number. I am suggesting this because it is so it is compatible with other resourcepacks and datapacks.
3
Garfieldwxg55
07/01/2020 9:28 pm
Level 2 : Apprentice Miner
Thank you, might do that!
2
One_Nose
06/22/2020 5:21 am
He/Him • Level 59 : Grandmaster Dragonborn Hero
It works fine to me. Maby you've forgotten to /reload. Also, it is still formatted in the old format. I explained how to translate it into 1.16 in another thread of yours.

If it still makes the problem, send me a download link to your data pack (for example upload it to mediafire).
2
Garfieldwxg55
06/22/2020 8:12 pm
Level 2 : Apprentice Miner
Thanks! I seem to have fixed it, had to change the name: music_discs to name: creeper_drop_music_discs or something!
2
One_Nose
06/22/2020 11:27 pm
He/Him • Level 59 : Grandmaster Dragonborn Hero
No. The pigstep is not at creeper_drop_music_discs. Change it back to music_discs, it is surely not the problem. Your creeper doen't drop the pigstep disc now at all.
2
Garfieldwxg55
07/01/2020 9:31 pm
Level 2 : Apprentice Miner
No, what I meant in the article is that when I used the datapack in 1.16 (even though the pack was designed for 1.14) the creeper would drop the Pigstep Disc (which it wouldn't in normal gameplay), I was trying to get the creeper to not drop Pigstep (like in normal gameplay) which I seem to have figured out, many thanks for your support!
2

Welcome