fix commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#modloaded thaumcraft techreborn
|
||||
#loader mixin
|
||||
|
||||
import native.net.minecraft.item.Item;
|
||||
import native.net.minecraft.item.ItemStack;
|
||||
|
||||
import native.techreborn.items.ingredients.ItemPlates as TRPlates;
|
||||
|
||||
/*
|
||||
Unify plate drops for arcane bore.
|
||||
|
||||
Created by ChaosStrikez for Thaumcraft v6.1.BETA-26.
|
||||
*/
|
||||
#mixin {targets: "thaumcraft.common.entities.construct.EntityArcaneBore"}
|
||||
zenClass mixinEntityArcaneBore {
|
||||
#mixin Redirect
|
||||
#{
|
||||
# method: "func_70628_a",
|
||||
# at: {
|
||||
# value: "NEW",
|
||||
# target: "(Lnet/minecraft/item/Item;)Lnet/minecraft/item/ItemStack;",
|
||||
# ordinal: 5
|
||||
# }
|
||||
#}
|
||||
function mbc_unifyBrassPlate(original as Item) as ItemStack {
|
||||
return TRPlates.getPlateByName("brass");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
#modloaded thaumcraft techreborn thermalfoundation
|
||||
#loader mixin
|
||||
|
||||
import native.net.minecraft.item.Item;
|
||||
import native.net.minecraft.item.ItemStack;
|
||||
|
||||
import native.cofh.thermalfoundation.item.ItemMaterial as ThermalPlates;
|
||||
import native.techreborn.items.ingredients.ItemPlates as TRPlates;
|
||||
|
||||
/*
|
||||
Unify plate drops for advanced crossbow turret.
|
||||
|
||||
Created by ChaosStrikez for Thaumcraft v6.1.BETA-26.
|
||||
*/
|
||||
#mixin {targets: "thaumcraft.common.entities.construct.EntityTurretCrossbowAdvanced"}
|
||||
zenClass MixinEntityTurretCrossbowAdvanced {
|
||||
#mixin Redirect
|
||||
#{
|
||||
# method: "func_70628_a",
|
||||
# at: {
|
||||
# value: "NEW",
|
||||
# target: "(Lnet/minecraft/item/Item;II)Lnet/minecraft/item/ItemStack;",
|
||||
# ordinal: 4
|
||||
# }
|
||||
#}
|
||||
function mbc_unifyBrassPlate(original as Item, amount as int, meta as int) as ItemStack {
|
||||
return TRPlates.getPlateByName("brass");
|
||||
}
|
||||
|
||||
#mixin Redirect
|
||||
#{
|
||||
# method: "func_70628_a",
|
||||
# at: {
|
||||
# value: "NEW",
|
||||
# target: "(Lnet/minecraft/item/Item;II)Lnet/minecraft/item/ItemStack;",
|
||||
# ordinal: 5
|
||||
# }
|
||||
#}
|
||||
function mbc_unifyIronPlate1(original as Item, amount as int, meta as int) as ItemStack {
|
||||
return ThermalPlates.plateIron.copy();
|
||||
}
|
||||
|
||||
#mixin Redirect
|
||||
#{
|
||||
# method: "func_70628_a",
|
||||
# at: {
|
||||
# value: "NEW",
|
||||
# target: "(Lnet/minecraft/item/Item;II)Lnet/minecraft/item/ItemStack;",
|
||||
# ordinal: 6
|
||||
# }
|
||||
#}
|
||||
function mbc_unifyIronPlate2(original as Item, amount as int, meta as int) as ItemStack {
|
||||
return ThermalPlates.plateIron.copy();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user