Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 8.42 KB | None | 0 0
  1. if (entity instanceof EntityLivingBase) {
  2.  
  3.             EntityLivingBase living = (EntityLivingBase)entity;
  4.  
  5.             //Ultra Deadly
  6.            
  7.             if (this == ModItems.pellet_hes ||
  8.                     this == ModItems.pellet_les ||
  9.                     this == ModItems.pellet_mes ||
  10.                     this == ModItems.pellet_neptunium ||
  11.                     this == ModItems.pellet_schrabidium) {
  12.                 //Library.applyRadiation(living, 80, 24, 60, 19);
  13.                 Library.applyRadData(living, 50F/20F * mod);
  14.             }
  15.  
  16.             //Strong
  17.            
  18.             if (this == ModItems.ingot_u233 ||
  19.                     this == ModItems.ingot_u235 ||
  20.                     this == ModItems.ingot_pu239 ||
  21.                     this == ModItems.ingot_pu239 ||
  22.                     this == ModItems.ingot_pu240 ||
  23.                     this == ModItems.ingot_uranium_fuel ||
  24.                     this == ModItems.ingot_plutonium_fuel ||
  25.                     this == ModItems.ingot_mox_fuel ||
  26.                     this == ModItems.rod_quad_u233 ||
  27.                     this == ModItems.rod_dual_u233 ||
  28.                     this == ModItems.rod_quad_u235 ||
  29.                     this == ModItems.rod_dual_u235 ||
  30.                     this == ModItems.rod_quad_pu239 ||
  31.                     this == ModItems.rod_dual_pu239 ||
  32.                     this == ModItems.rod_quad_pu240 ||
  33.                     this == ModItems.rod_dual_pu240 ||
  34.                     this == ModItems.rod_quad_uranium_fuel ||
  35.                     this == ModItems.rod_dual_uranium_fuel ||
  36.                     this == ModItems.rod_quad_plutonium_fuel ||
  37.                     this == ModItems.rod_dual_plutonium_fuel ||
  38.                     this == ModItems.rod_quad_mox_fuel ||
  39.                     this == ModItems.rod_dual_mox_fuel ||
  40.                     this == ModItems.rod_quad_uranium_fuel_depleted ||
  41.                     this == ModItems.rod_dual_uranium_fuel_depleted ||
  42.                     this == ModItems.rod_quad_plutonium_fuel_depleted ||
  43.                     this == ModItems.rod_dual_plutonium_fuel_depleted ||
  44.                     this == ModItems.rod_quad_mox_fuel_depleted ||
  45.                     this == ModItems.rod_dual_mox_fuel_depleted ||
  46.                     this == ModItems.boy_bullet ||
  47.                     this == ModItems.boy_target ||
  48.                     this == ModItems.gadget_core ||
  49.                     this == ModItems.man_core ||
  50.                     this == ModItems.nuclear_waste ||
  51.                     this == ModItems.waste_uranium ||
  52.                     this == ModItems.waste_plutonium ||
  53.                     this == ModItems.waste_mox ||
  54.                     this == ModItems.waste_schrabidium) {
  55.                 //Library.applyRadiation(living, 60, 19, 40, 14);
  56.                 Library.applyRadData(living, 5F/20F * mod);
  57.             }
  58.  
  59.             //Strong Fire
  60.            
  61.             if (this == ModItems.waste_uranium_hot ||
  62.                     this == ModItems.waste_plutonium_hot ||
  63.                     this == ModItems.waste_mox_hot ||
  64.                     this == ModItems.waste_schrabidium_hot) {
  65.                 //Library.applyRadiation(living, 60, 19, 40, 14);
  66.                 Library.applyRadData(living, 5F/20F * mod);
  67.                 living.setFire(5);
  68.             }
  69.            
  70.             //Strong Nuggets
  71.            
  72.             if (this == ModItems.nugget_u233 ||
  73.                     this == ModItems.nugget_u235 ||
  74.                     this == ModItems.nugget_pu239 ||
  75.                     this == ModItems.nugget_pu240 ||
  76.                     this == ModItems.nugget_uranium_fuel ||
  77.                     this == ModItems.nugget_plutonium_fuel ||
  78.                     this == ModItems.nugget_mox_fuel ||
  79.                     this == ModItems.rod_u233 ||
  80.                     this == ModItems.rod_u235 ||
  81.                     this == ModItems.rod_pu239 ||
  82.                     this == ModItems.rod_pu240 ||
  83.                     this == ModItems.rod_uranium_fuel ||
  84.                     this == ModItems.rod_plutonium_fuel ||
  85.                     this == ModItems.rod_mox_fuel ||
  86.                     this == ModItems.rod_uranium_fuel_depleted ||
  87.                     this == ModItems.rod_plutonium_fuel_depleted ||
  88.                     this == ModItems.rod_mox_fuel_depleted ||
  89.                     this == ModItems.ingot_thorium_fuel) {
  90.                 //Library.applyRadiation(living, 45, 19, 30, 14);
  91.                 Library.applyRadData(living, 3.5F/20F * mod);
  92.             }
  93.            
  94.             //Medium
  95.  
  96.             if (this == ModItems.ingot_neptunium ||
  97.                     this == ModItems.ingot_pu238 ||
  98.                     this == ModItems.ingot_plutonium ||
  99.                     this == ModItems.pellet_rtg ||
  100.                     this == ModItems.rod_quad_neptunium ||
  101.                     this == ModItems.rod_dual_neptunium ||
  102.                     this == ModItems.rod_quad_pu238 ||
  103.                     this == ModItems.rod_dual_pu238 ||
  104.                     this == ModItems.rod_quad_plutonium ||
  105.                     this == ModItems.rod_dual_plutonium ||
  106.                     this == ModItems.mike_core ||
  107.                     this == ModItems.tsar_core ||
  108.                     this == ModItems.trinitite) {
  109.                 //Library.applyRadiation(living, 30, 14, 15, 9);
  110.                 Library.applyRadData(living, 2.5F/20F * mod);
  111.             }
  112.            
  113.             //Medium Nuggets
  114.  
  115.             if (this == ModItems.nugget_neptunium ||
  116.                     this == ModItems.nugget_pu238 ||
  117.                     this == ModItems.nugget_plutonium ||
  118.                     this == ModItems.rod_neptunium ||
  119.                     this == ModItems.rod_pu238 ||
  120.                     this == ModItems.rod_plutonium ||
  121.                     this == ModItems.pellet_rtg_weak ||
  122.                     this == ModItems.waste_thorium) {
  123.                 //Library.applyRadiation(living, 20, 14, 5, 9);
  124.                 Library.applyRadData(living, 1F/20F * mod);
  125.             }
  126.            
  127.             //Weak
  128.  
  129.             if (this == ModItems.ingot_uranium ||
  130.                     this == ModItems.ingot_u238 ||
  131.                     this == ModItems.rod_quad_uranium ||
  132.                     this == ModItems.rod_dual_uranium ||
  133.                     this == ModItems.rod_quad_u238 ||
  134.                     this == ModItems.rod_dual_u238 ||
  135.                     this == ModItems.rod_quad_pu238 ||
  136.                     this == ModItems.rod_dual_pu238) {
  137.                 //Library.applyRadiation(living, 20, 4, 5, 0);
  138.                 Library.applyRadData(living, 0.5F/20F * mod);
  139.             }
  140.            
  141.             //Weak Nuggets
  142.  
  143.             if (this == ModItems.nugget_uranium ||
  144.                     this == ModItems.nugget_u238 ||
  145.                     this == ModItems.rod_uranium ||
  146.                     this == ModItems.rod_u238 ||
  147.                     this == ModItems.powder_yellowcake) {
  148.                 //Library.applyRadiation(living, 10, 4, 0, 0);
  149.                 Library.applyRadData(living, 0.25F/20F * mod);
  150.             }
  151.            
  152.             //Tritium
  153.  
  154.             if (this == ModItems.cell_tritium ||
  155.                     this == ModItems.rod_tritium ||
  156.                     this == ModItems.rod_dual_tritium ||
  157.                     this == ModItems.rod_quad_tritium ||
  158.                     this == ModItems.nugget_thorium_fuel) {
  159.                 //Library.applyRadiation(living, 10, 4, 0, 0);
  160.                 Library.applyRadData(living, 0.75F/20F * mod);
  161.             }
  162.            
  163.             //Powder
  164.  
  165.             if (this == ModItems.powder_neptunium ||
  166.                     this == ModItems.powder_plutonium) {
  167.                 //Library.applyRadiation(living, 60, 19, 45, 14);
  168.                 Library.applyRadData(living, 2F/20F * mod);
  169.                
  170.                 if(living instanceof EntityPlayer && !Library.checkForHazmat((EntityPlayer)living))
  171.                     living.setFire(5);
  172.             }
  173.  
  174.             if (this == ModItems.powder_uranium) {
  175.                 //Library.applyRadiation(living, 20, 4, 0, 0);
  176.                 Library.applyRadData(living, 1F/20F * mod);
  177.                
  178.                 if(living instanceof EntityPlayer && !Library.checkForHazmat((EntityPlayer)living))
  179.                     living.setFire(5);
  180.             }
  181.            
  182.             //Schrabidic
  183.  
  184.             if (this == ModItems.ingot_schrabidium ||
  185.                     this == ModItems.ingot_solinium ||
  186.                     this == ModItems.ingot_schrabidium_fuel ||
  187.                     this == ModItems.ingot_hes ||
  188.                     this == ModItems.ingot_les ||
  189.                     this == ModItems.cell_sas3 ||
  190.                     this == ModItems.fleija_propellant ||
  191.                     this == ModItems.solinium_core ||
  192.                     this == ModItems.rod_schrabidium ||
  193.                     this == ModItems.rod_dual_schrabidium ||
  194.                     this == ModItems.rod_quad_schrabidium ||
  195.                     this == ModItems.rod_solinium ||
  196.                     this == ModItems.rod_dual_solinium ||
  197.                     this == ModItems.rod_quad_solinium ||
  198.                     this == ModItems.rod_schrabidium_fuel ||
  199.                     this == ModItems.rod_dual_schrabidium_fuel ||
  200.                     this == ModItems.rod_quad_schrabidium_fuel) {
  201.                
  202.                 if(living instanceof EntityPlayer && !Library.checkForHazmat((EntityPlayer)living))
  203.                     living.addPotionEffect(new PotionEffect(MobEffects.BLINDNESS, 60 * 20, 0));
  204.                
  205.                 //Library.applyRadiation(living, 100, 29, 75, 24);
  206.                 Library.applyRadData(living, 7.5F/20F * mod);
  207.             }
  208.  
  209.             if (this == ModItems.nugget_schrabidium ||
  210.                     this == ModItems.nugget_solinium ||
  211.                     this == ModItems.nugget_schrabidium_fuel ||
  212.                     this == ModItems.nugget_hes ||
  213.                     this == ModItems.nugget_les) {
  214.                 //living.addPotionEffect(new PotionEffect(Potion.blindness.id, 60 * 20, 0));
  215.                 Library.applyRadData(living, 5F/20F * mod);
  216.                 //Library.applyRadiation(living, 75, 29, 60, 24);
  217.             }
  218.  
  219.             if (this == ModItems.plate_schrabidium ||
  220.                     this == ModItems.wire_schrabidium) {
  221.                 //living.addPotionEffect(new PotionEffect(Potion.blindness.id, 60 * 20, 0));
  222.                 Library.applyRadData(living, 7.5F/20F * mod);
  223.                 //Library.applyRadiation(living, 80, 29, 60, 24);
  224.             }
  225.  
  226.             if (this == ModItems.powder_schrabidium) {
  227.                 //Library.applyRadiation(living, 100, 29, 75, 24);
  228.                 Library.applyRadData(living, 7.5F/20F * mod);
  229.                
  230.                 if(living instanceof EntityPlayer && !Library.checkForHazmat((EntityPlayer)living)) {
  231.                     living.addPotionEffect(new PotionEffect(MobEffects.BLINDNESS, 60 * 20, 0));
  232.                     living.setFire(5);
  233.                 }
  234.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement