#need help with creating/rewriting a mob equipment loot table
1 messages · Page 1 of 1 (latest)
the equipment a mob spawns with isn't controlled by loot tables. to do what you want you'd need to use a tick function that first puts the equipment you want on every mob and then marks the mob so it knows not to modify them again
iam trying to modify already existing mc datapack, which adds some structures with trialchamber spawners, i want the equipment on to be on the mobs that spawn from those spawners, also if its posible i dont want to create new files and scrips, just edit already existing ones. Can you help me create those "tick functions"?
well that's an entirely different question with an entirely different answer. for that you'd want to modify the structure files and change the trial spawners to spawn mobs with the equipment you want
you may also be able to just change the trial_spawner definitions in the datapack, if it has entries there
{
"loot_tables_to_eject": [
{
"data": "nova_structures:spawners/undead_crypt/normal",
"weight": 1
}
],
"simultaneous_mobs": 3,
"total_mobs": 5,
"simultaneous_mobs_added_per_player": 0.5,
"total_mobs_added_per_player": 1,
"ticks_between_spawn": 4,
"spawn_potentials": [
{
"data": {
"entity": {
"id": "minecraft:zombie",
"Tags": [
"trial_normal"
]
},
"equipment": {
"loot_table": "nova_structures:equipment/normal_mobs/melee",
"slot_drop_chances": {
"body": 0.085,
"chest": 0.085,
"feet": 0.085,
"head": 0.085,
"legs": 0.085,
"mainhand": 0.085,
"offhand": 0.085
}
}
},
"weight": 1
}
]
}
you meant this?