mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Add world settings for mobs picking up loot
This commit is contained in:
parent
1245e2a0de
commit
84d13a09ca
@ -1,5 +1,14 @@
|
|||||||
--- a/net/minecraft/world/entity/monster/AbstractSkeleton.java
|
--- a/net/minecraft/world/entity/monster/AbstractSkeleton.java
|
||||||
+++ b/net/minecraft/world/entity/monster/AbstractSkeleton.java
|
+++ b/net/minecraft/world/entity/monster/AbstractSkeleton.java
|
||||||
|
@@ -152,7 +152,7 @@
|
||||||
|
this.populateDefaultEquipmentSlots(randomsource, difficulty);
|
||||||
|
this.populateDefaultEquipmentEnchantments(world, randomsource, difficulty);
|
||||||
|
this.reassessWeaponGoal();
|
||||||
|
- this.setCanPickUpLoot(randomsource.nextFloat() < 0.55F * difficulty.getSpecialMultiplier());
|
||||||
|
+ this.setCanPickUpLoot(this.level().paperConfig().entities.behavior.mobsCanAlwaysPickUpLoot.skeletons || randomsource.nextFloat() < 0.55F * difficulty.getSpecialMultiplier()); // Paper - Add world settings for mobs picking up loot
|
||||||
|
if (this.getItemBySlot(EquipmentSlot.HEAD).isEmpty()) {
|
||||||
|
LocalDate localdate = LocalDate.now();
|
||||||
|
int i = localdate.get(ChronoField.DAY_OF_MONTH);
|
||||||
@@ -209,7 +209,17 @@
|
@@ -209,7 +209,17 @@
|
||||||
Level world = this.level();
|
Level world = this.level();
|
||||||
|
|
||||||
|
@ -264,6 +264,15 @@
|
|||||||
|
|
||||||
if (this.convertVillagerToZombieVillager(world, entityvillager)) {
|
if (this.convertVillagerToZombieVillager(world, entityvillager)) {
|
||||||
flag = false;
|
flag = false;
|
||||||
|
@@ -468,7 +518,7 @@
|
||||||
|
float f = difficulty.getSpecialMultiplier();
|
||||||
|
|
||||||
|
if (spawnReason != EntitySpawnReason.CONVERSION) {
|
||||||
|
- this.setCanPickUpLoot(randomsource.nextFloat() < 0.55F * f);
|
||||||
|
+ this.setCanPickUpLoot(this.level().paperConfig().entities.behavior.mobsCanAlwaysPickUpLoot.zombies || randomsource.nextFloat() < 0.55F * f); // Paper - Add world settings for mobs picking up loot
|
||||||
|
}
|
||||||
|
|
||||||
|
if (object == null) {
|
||||||
@@ -496,7 +546,7 @@
|
@@ -496,7 +546,7 @@
|
||||||
entitychicken1.finalizeSpawn(world, difficulty, EntitySpawnReason.JOCKEY, (SpawnGroupData) null);
|
entitychicken1.finalizeSpawn(world, difficulty, EntitySpawnReason.JOCKEY, (SpawnGroupData) null);
|
||||||
entitychicken1.setChickenJockey(true);
|
entitychicken1.setChickenJockey(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user