Skip to content

Commit

Permalink
feat(jei): 🧻Add Spawn Egg in addition to Mob Soul icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Krutoy242 committed May 27, 2024
1 parent 8f8f2ef commit ea5ef60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/jei/entity_drop.zs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import mods.requious.SlotVisual;
// -----------------------------------------------------------------------
var x = <assembly:entity_drop>;
x.addJEICatalyst(<minecraft:wooden_sword>);
scripts.jei.requious.addInsOuts(x, [[0,0]], [
scripts.jei.requious.addInsOuts(x, [[0,0],[0,1]], [
[2,0],[3,0],[4,0],[5,0],[6,0],[7,0],[8,0],
[2,1],[3,1],[4,1],[5,1],[6,1],[7,1],[8,1],
]);
Expand All @@ -32,7 +32,9 @@ function add(entity as IEntityDefinition, dropList as IItemStack[], percent as b
} else {
fixedList = dropList;
}
scripts.jei.requious.add(<assembly:entity_drop>, {[Soul(entity.id)] as IIngredient[] : fixedList});
scripts.jei.requious.add(<assembly:entity_drop>, {[
Soul(entity.id), <minecraft:spawn_egg>.withTag({EntityTag: {id: entity.id}})
] as IIngredient[] : fixedList});
}

/*Inject_js{
Expand Down

0 comments on commit ea5ef60

Please sign in to comment.