Add VTweaks update
This commit is contained in:
parent
455dd44b31
commit
b8559e0e30
9 changed files with 70 additions and 14 deletions
|
|
@ -83,17 +83,3 @@ onEvent('recipes', event => {
|
|||
S: '#forge:ingots/steel',
|
||||
});
|
||||
});
|
||||
|
||||
onEvent('entity.drops', event => {
|
||||
const entity = event.getEntity();
|
||||
|
||||
if (entity.getType() !== 'minecraft:enderman') {
|
||||
return;
|
||||
}
|
||||
|
||||
const comp = entity.minecraftEntity.getPersistentData();
|
||||
const isChallengerMob = comp.func_74764_b('challenger_mob_data'); // contains()
|
||||
if (isChallengerMob) {
|
||||
event.addDrop(Item.of('1x powah:ender_core'));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue