3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00
Paper/nms-patches/LootContextParameters.patch

11 Zeilen
669 B
Diff

2019-04-23 04:00:00 +02:00
--- a/net/minecraft/server/LootContextParameters.java
+++ b/net/minecraft/server/LootContextParameters.java
2020-06-25 02:00:00 +02:00
@@ -13,6 +13,7 @@
2019-04-23 04:00:00 +02:00
public static final LootContextParameter<TileEntity> BLOCK_ENTITY = a("block_entity");
public static final LootContextParameter<ItemStack> TOOL = a("tool");
public static final LootContextParameter<Float> EXPLOSION_RADIUS = a("explosion_radius");
+ public static final LootContextParameter<Integer> LOOTING_MOD = new LootContextParameter<>(new MinecraftKey("bukkit:looting_mod")); // CraftBukkit
private static <T> LootContextParameter<T> a(String s) {
return new LootContextParameter<>(new MinecraftKey(s));