Kade TodoList: Difference between revisions

From ETM
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
<source>
<source>


    protected void dropDeathLoot(boolean flag, int i) {
    OutputHelper.error("Debug: old dropDeathLoot is still in use?" + this); //kade


protected void dropDeathLoot(boolean flag, int i) {<br />  OutputHelper.error("Debug: old dropDeathLoot is still in use?" + this); //kade<br /><br />  if(hasSpecialName || EntityHelper.isPopulationDisabled(this)) return; //kade, dont drop from named entities as they dont age<br />  if(this instanceof EntityGuardian && this.random.nextFloat() < 0.66){ //kade edit, drop way less stuff for guardians<br />  return; <br />  }<br />// if(this instanceof EntityEnderman && this.getWorld().environment == Environment.THE_END && this.random.nextFloat() < 0.90){ //kade edit, drop way less stuff for enderman in the end<br />//   return; <br />/}
    if(hasSpecialName || EntityHelper.isPopulationDisabled(this)) return; //kade, dont drop from named entities as they dont age
    if(this instanceof EntityGuardian && this.random.nextFloat() < 0.66){ //kade edit, drop way less stuff for guardians
    return;  
    }
//   if(this instanceof EntityEnderman && this.getWorld().environment == Environment.THE_END && this.random.nextFloat() < 0.90){ //kade edit, drop way less stuff for enderman in the end
//   return;  
//   } }




</source
</source>

Revision as of 14:44, 3 March 2020

  • DispenseBehaviorShulkerBox allowed?
  • Disable HORSE CarryingChests
  • Recheck dropDeathLoot OutputHelper.error("Debug: old dropDeathLoot is still in use?" + this); //kade
  • Check EntityGuardian drop rate lowered
    protected void dropDeathLoot(boolean flag, int i) {
    	OutputHelper.error("Debug: old dropDeathLoot is still in use?" + this); //kade

	    if(hasSpecialName || EntityHelper.isPopulationDisabled(this)) return; //kade, dont drop from named entities as they dont age
    	if(this instanceof EntityGuardian && this.random.nextFloat() < 0.66){ //kade edit, drop way less stuff for guardians
    		return; 
    	}
//    	if(this instanceof EntityEnderman && this.getWorld().environment == Environment.THE_END && this.random.nextFloat() < 0.90){ //kade edit, drop way less stuff for enderman in the end
//    		return; 
//    	} }