More jsons!
|
@ -14,11 +14,11 @@ public class RegisterItemJsons {
|
|||
}
|
||||
|
||||
private static void registerItems() {
|
||||
register(ModItems.reBattery, "rebattery");
|
||||
register(ModItems.lithiumBattery, "lithiumbattery");
|
||||
register(ModItems.energyCrystal, "energycrystal");
|
||||
register(ModItems.lapotronCrystal, "lapotroncrystal");
|
||||
register(ModItems.lapotronicOrb, "lapotronicorb");
|
||||
register(ModItems.reBattery, "battery/re_battery");
|
||||
register(ModItems.lithiumBattery, "battery/lithium_battery");
|
||||
register(ModItems.energyCrystal, "battery/energy_crystal");
|
||||
register(ModItems.lapotronCrystal, "battery/lapotron_crystal");
|
||||
register(ModItems.lapotronicOrb, "battery/lapotronic_orb");
|
||||
register(ModItems.nanosaber, "nanosaber");
|
||||
|
||||
register(ModItems.frequencyTransmitter, "frequencytransmitter");
|
||||
|
|
|
@ -3,6 +3,7 @@ package techreborn.items.tools;
|
|||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Enchantments;
|
||||
import net.minecraft.item.IItemPropertyGetter;
|
||||
import net.minecraft.item.ItemAxe;
|
||||
|
@ -27,6 +28,7 @@ public class ItemChainsaw extends ItemAxe implements IEnergyItemInfo {
|
|||
public int cost = 250;
|
||||
public float unpoweredSpeed = 2.0F;
|
||||
public double transferLimit = 100;
|
||||
public boolean isBreaking = false;
|
||||
|
||||
public ItemChainsaw(ToolMaterial material, String unlocalizedName, int energyCapacity, int tier,
|
||||
float unpoweredSpeed) {
|
||||
|
@ -46,7 +48,7 @@ public class ItemChainsaw extends ItemAxe implements IEnergyItemInfo {
|
|||
World worldIn,
|
||||
@Nullable
|
||||
EntityLivingBase entityIn) {
|
||||
if (stack != ItemStack.EMPTY && PoweredItem.canUseEnergy(cost, stack) && entityIn != null && entityIn.getHeldItemMainhand().isItemEqual(stack)) {
|
||||
if (stack != ItemStack.EMPTY && PoweredItem.canUseEnergy(cost, stack) && entityIn != null && entityIn.getHeldItemMainhand().equals(stack)) {
|
||||
return 1.0F;
|
||||
}
|
||||
return 0.0F;
|
||||
|
@ -94,6 +96,12 @@ public class ItemChainsaw extends ItemAxe implements IEnergyItemInfo {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onBlockStartBreak(ItemStack itemstack, BlockPos pos, EntityPlayer player) {
|
||||
|
||||
return super.onBlockStartBreak(itemstack, pos, player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getMaxTransfer(ItemStack stack) {
|
||||
return transferLimit;
|
||||
|
|
|
@ -41,7 +41,6 @@ public class ItemNanosaber extends ItemSword implements IEnergyItemInfo {
|
|||
setNoRepair();
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
setMaxStackSize(1);
|
||||
setMaxDamage(1);
|
||||
setUnlocalizedName("techreborn.nanosaber");
|
||||
this.addPropertyOverride(new ResourceLocation("techreborn:active"), new IItemPropertyGetter() {
|
||||
@SideOnly(Side.CLIENT)
|
||||
|
@ -51,6 +50,8 @@ public class ItemNanosaber extends ItemSword implements IEnergyItemInfo {
|
|||
@Nullable
|
||||
EntityLivingBase entityIn) {
|
||||
if (stack != ItemStack.EMPTY && stack.hasTagCompound() && stack.getTagCompound().hasKey("isActive") && stack.getTagCompound().getBoolean("isActive")) {
|
||||
if (PoweredItem.getMaxPower(stack) - PoweredItem.getEnergy(stack) >= 0.9 * PoweredItem.getMaxPower(stack))
|
||||
return 0.5F;
|
||||
return 1.0F;
|
||||
}
|
||||
return 0.0F;
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornitem"
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"parent": "techreborn:item/battery/battery",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/battery/energy_crystal"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:empty": 1
|
||||
},
|
||||
"model": "techreborn:item/battery/override/energy_crystal_empty"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"parent": "techreborn:item/battery/battery",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/battery/lapotron_crystal"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:empty": 1
|
||||
},
|
||||
"model": "techreborn:item/battery/override/lapotron_crystal_empty"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"parent": "techreborn:item/battery/battery",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/battery/lapotronic_orb"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:empty": 1
|
||||
},
|
||||
"model": "techreborn:item/battery/override/lapotronic_orb_empty"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"parent": "techreborn:item/battery/battery",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/battery/lithium_battery"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:empty": 1
|
||||
},
|
||||
"model": "techreborn:item/battery/override/lithium_battery_empty"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "techreborn:item/battery/battery",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/battery/energy_crystal_empty"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "techreborn:item/battery/battery",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/battery/lapotron_crystal_empty"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "techreborn:item/battery/battery",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/battery/lapotronic_orb_empty"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "techreborn:item/battery/battery",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/battery/lithium_battery_empty"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"parent": "techreborn:item/battery/battery",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/battery/re_battery_empty"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"parent": "techreborn:item/battery/battery",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/battery/re_battery"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:empty": 1
|
||||
},
|
||||
"model": "techreborn:item/battery/override/re_battery_empty"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/energyCrystal"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:empty": 1
|
||||
},
|
||||
"model": "techreborn:item/energyCrystalEmpty"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/energyCrystalEmpty"
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/lapotronCrystal"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:empty": 1
|
||||
},
|
||||
"model": "techreborn:item/lapotronCrystalEmpty"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/lapotronCrystalEmpty"
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/lapotronEnergyOrb"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:empty": 1
|
||||
},
|
||||
"model": "techreborn:item/lapotronicOrbEmpty"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/lapotronEnergyOrbEmpty"
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/lithiumBattery"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:empty": 1
|
||||
},
|
||||
"model": "techreborn:item/lithiumBatteryEmpty"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/lithiumBatteryEmpty"
|
||||
}
|
||||
}
|
|
@ -4,6 +4,12 @@
|
|||
"layer0": "techreborn:items/tool/nanosaber_off"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:active": 0.5
|
||||
},
|
||||
"model": "techreborn:item/nanosaberActiveLow"
|
||||
},
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:active": 1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/reBatteryEmpty"
|
||||
"layer0": "techreborn:items/tool/nanosaber_low"
|
||||
}
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/reBattery"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"predicate": {
|
||||
"techreborn:empty": 1
|
||||
},
|
||||
"model": "techreborn:item/reBatteryEmpty"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/advanced_chainsaw"
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/advanced_drill"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/advanced_jackhammer"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/diamond_chainsaw"
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/diamond_drill"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/diamond_jackhammer"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/advanced_chainsaw_animated"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/diamond_chainsaw_animated"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/steel_chainsaw_animated"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/steel_chainsaw"
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/steel_drill"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornItem",
|
||||
"parent": "techreborn:item/tool/tool",
|
||||
"textures": {
|
||||
"layer0": "techreborn:items/tool/steel_jackhammer"
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"parent": "techreborn:item/techrebornitem"
|
||||
}
|
Before Width: | Height: | Size: 794 B After Width: | Height: | Size: 794 B |
Before Width: | Height: | Size: 799 B After Width: | Height: | Size: 799 B |
Before Width: | Height: | Size: 785 B After Width: | Height: | Size: 785 B |
Before Width: | Height: | Size: 767 B After Width: | Height: | Size: 767 B |
Before Width: | Height: | Size: 593 B After Width: | Height: | Size: 593 B |
Before Width: | Height: | Size: 484 B After Width: | Height: | Size: 484 B |
Before Width: | Height: | Size: 577 B After Width: | Height: | Size: 577 B |
Before Width: | Height: | Size: 542 B After Width: | Height: | Size: 542 B |
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 565 B |
Before Width: | Height: | Size: 529 B After Width: | Height: | Size: 529 B |
After Width: | Height: | Size: 690 B |
After Width: | Height: | Size: 665 B |
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"animation": {
|
||||
"frametime": 3,
|
||||
"interpolate": true,
|
||||
"frames": []
|
||||
}
|
||||
}
|