mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Changed some stuff for the debris
This commit is contained in:
parent
1379522918
commit
e29616a83e
@ -121,11 +121,12 @@ public class EntityRBMKDebris extends EntityDebrisBase {
|
||||
}
|
||||
}
|
||||
|
||||
if(this.getType() == DebrisType.FUEL) {
|
||||
List<EntityLivingBase> entities = worldObj.getEntitiesWithinAABB(EntityLivingBase.class, this.boundingBox.expand(10, 10, 10));
|
||||
if(this.getType() == DebrisType.FUEL || this.getType() == DebrisType.GRAPHITE) {
|
||||
List<EntityLivingBase> entities = worldObj.getEntitiesWithinAABB(EntityLivingBase.class, this.boundingBox.expand(2.5, 2.5, 2.5));
|
||||
|
||||
int level = this.getType() == DebrisType.FUEL ? 9 : 4;
|
||||
for(EntityLivingBase e : entities) {
|
||||
e.addPotionEffect(new PotionEffect(HbmPotion.radiation.id, 60 * 20, 9));
|
||||
e.addPotionEffect(new PotionEffect(HbmPotion.radiation.id, 60 * 20, level));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -116,10 +116,11 @@ public class EntityZirnoxDebris extends EntityDebrisBase {
|
||||
}
|
||||
|
||||
if(this.getType() == DebrisType.ELEMENT || this.getType() == DebrisType.GRAPHITE) {
|
||||
List<EntityLivingBase> entities = worldObj.getEntitiesWithinAABB(EntityLivingBase.class, this.boundingBox.expand(10, 10, 10));
|
||||
|
||||
List<EntityLivingBase> entities = worldObj.getEntitiesWithinAABB(EntityLivingBase.class, this.boundingBox.expand(2.5, 2.5, 2.5));
|
||||
|
||||
int level = this.getType() == DebrisType.ELEMENT ? 7 : 4;
|
||||
for(EntityLivingBase e : entities) {
|
||||
e.addPotionEffect(new PotionEffect(HbmPotion.radiation.id, 60 * 20, 4));
|
||||
e.addPotionEffect(new PotionEffect(HbmPotion.radiation.id, 60 * 20, level));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -339,6 +339,7 @@ public class ShredderRecipes {
|
||||
ShredderRecipes.setRecipe(ModItems.debris_exchanger, new ItemStack(ModItems.powder_steel, 3));
|
||||
ShredderRecipes.setRecipe(ModItems.debris_element, new ItemStack(ModItems.scrap_nuclear, 4));
|
||||
ShredderRecipes.setRecipe(ModItems.debris_metal, new ItemStack(ModItems.powder_steel_tiny, 3));
|
||||
ShredderRecipes.setRecipe(ModItems.debris_graphite, new ItemStack(ModItems.powder_coal, 1));
|
||||
|
||||
/*
|
||||
* GC COMPAT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user