im using lootjs
trying to make all mobs drop their spawn eggs an am wondering if i can use a variable that gets the entity type
LootJS.modifiers((event) => {
event
.addEntityLootModifier("minecraft:creeper")
.addWeightedLoot(
[3, 10],
[Item.of("minecraft:gunpowder").withChance(95), Item.of("minecraft:creeper_spawn_egg").withChance(5)]
);
});