Skip to content

Commit fd91e47

Browse files
committed
Removed leather drop from deer
1 parent 5ee6095 commit fd91e47

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

scripts/CraftTweaker/Events/EventEntityLivingDeathDrops.zs

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ val others as IItemStack[][IEntityDefinition] = {
117117
<entity:horse_colors:horse_felinoid> : [<minecraft:bone> * 4, <pyrotech:pelt_horse>, <animania:raw_horse> * 4 ],
118118
<entity:horse_colors:mule> : [<minecraft:bone> * 4, <pyrotech:pelt_horse>, <animania:raw_horse> * 4 ],
119119
<entity:minecraft:bat> : [<pyrotech:pelt_bat>],
120+
<entity:mocreatures:deer> : [<minecraft:bone> * 3, <mocreatures:venisonraw>],
120121
};
121122

122123
val sheepPelts as IItemStack[IItemStack] = {
@@ -146,7 +147,11 @@ val sheepPelts as IItemStack[IItemStack] = {
146147
<animania:wool:6> : <pyrotech:pelt_sheep_brown>
147148
};
148149

149-
function addDrops(entities as IItemStack[][IEntityDefinition], event as crafttweaker.event.EntityLivingDeathDropsEvent, removeDrops as bool) as void {
150+
function addDrops(
151+
entities as IItemStack[][IEntityDefinition],
152+
event as crafttweaker.event.EntityLivingDeathDropsEvent,
153+
removeDrops as bool
154+
) as void {
150155
for entity, items in entities {
151156
if (!isNull(event.entity.definition) && event.entity.definition.name == entity.name) {
152157
if (removeDrops) event.drops = [];
@@ -163,7 +168,11 @@ function addDrops(entities as IItemStack[][IEntityDefinition], event as crafttwe
163168
}
164169
}
165170

166-
function dropColoredPelt(pelts as IItemStack[IItemStack], drop as IItemStack, event as crafttweaker.event.EntityLivingDeathDropsEvent) as void {
171+
function dropColoredPelt(
172+
pelts as IItemStack[IItemStack],
173+
drop as IItemStack,
174+
event as crafttweaker.event.EntityLivingDeathDropsEvent
175+
) as void {
167176
for wool, pelt in pelts {
168177
if (wool.name == drop.name) {
169178
event.drops = [];
@@ -173,7 +182,11 @@ function dropColoredPelt(pelts as IItemStack[IItemStack], drop as IItemStack, ev
173182
}
174183
}
175184

176-
function addDropsSheep(entities as IItemStack[][IEntityDefinition], pelts as IItemStack[IItemStack], event as crafttweaker.event.EntityLivingDeathDropsEvent) as void {
185+
function addDropsSheep(
186+
entities as IItemStack[][IEntityDefinition],
187+
pelts as IItemStack[IItemStack],
188+
event as crafttweaker.event.EntityLivingDeathDropsEvent
189+
) as void {
177190
for entity, items in entities {
178191
if (!isNull(event.entity.definition) && event.entity.definition.name == entity.name) {
179192

0 commit comments

Comments
 (0)