1

Need some more help...

Garfieldwxg55's Avatar Garfieldwxg556/22/20 2:26 am
1 emeralds 184 6
7/1/2020 9:31 pm
Garfieldwxg55's Avatar Garfieldwxg55
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\\\"\"]}}"
}
]
},
{
"type": "minecraft:item",
"weight": 1,
"name": "minecraft:music_disc_11",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{CustomModelData:4, HideFlags:32, display:{Lore:[\"\\\"§7Kevin Kiner - Burying the Dead\\\"\"]}}"
}
]
},
{
"type": "minecraft:item",
"weight": 1,
"name": "minecraft:music_disc_11",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{CustomModelData:5, HideFlags:32, display:{Lore:[\"\\\"§7Toby Fox - Megalovania\\\"\"]}}"
}
]
},
{
"type": "minecraft:item",
"weight": 1,
"name": "minecraft:music_disc_11",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{CustomModelData:6, HideFlags:32, display:{Lore:[\"\\\"§7Koji Kondo - Overworld Theme\\\"\"]}}"
}
]
},

{
"type": "minecraft:item",
"weight": 1,
"name": "minecraft:music_disc_11",
"functions": [
{
"function": "minecraft:set_nbt",
"tag": "{CustomModelData:7, HideFlags:32, display:{Lore:[\"\\\"§7Masato Nakamura - Green Hill Zone\\\"\"]}}"
}
]
}
],
"conditions": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"type": "#minecraft:skeletons"
},
"entity": "killer"
}
]
}
]
}
Any feedback is appreciated!
Posted by Garfieldwxg55's Avatar
Garfieldwxg55
Level 2 : Apprentice Miner
1

Create an account or sign in to comment.

6

3
06/22/2020 11:37 pm
Level 48 : Master Modder
BladeZNick
BladeZNick's Avatar
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.
2
07/01/2020 9:28 pm
Level 2 : Apprentice Miner
Garfieldwxg55
Garfieldwxg55's Avatar
Thank you, might do that!
2
06/22/2020 5:21 am
Level 57 : Grandmaster Hero
One_Nose
One_Nose's Avatar
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
06/22/2020 8:12 pm
Level 2 : Apprentice Miner
Garfieldwxg55
Garfieldwxg55's Avatar
Thanks! I seem to have fixed it, had to change the name: music_discs to name: creeper_drop_music_discs or something!
2
06/22/2020 11:27 pm
Level 57 : Grandmaster Hero
One_Nose
One_Nose's Avatar
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
07/01/2020 9:31 pm
Level 2 : Apprentice Miner
Garfieldwxg55
Garfieldwxg55's Avatar
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!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome