updating before integrating jei
This commit is contained in:
@@ -87,8 +87,8 @@ dependencies {
|
|||||||
// <MINECRAFT-VERSION> and <JEI-VERSION> can be found on CurseForge, check the file name of the version you want.
|
// <MINECRAFT-VERSION> and <JEI-VERSION> can be found on CurseForge, check the file name of the version you want.
|
||||||
//
|
//
|
||||||
// compile against the JEI API
|
// compile against the JEI API
|
||||||
//deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}:api"
|
deobfCompile "mezz.jei:jei_${mc_version}:${jei_version}:api"
|
||||||
//runtime "mezz.jei:jei_${mc_version}:${jei_version}"
|
runtime "mezz.jei:jei_${mc_version}:${jei_version}"
|
||||||
|
|
||||||
deobfCompile "nmd.primal.core:PrimalCore:${primal_version}:dev"
|
deobfCompile "nmd.primal.core:PrimalCore:${primal_version}:dev"
|
||||||
//runtime "nmd.primal.core:PrimalCore:${primal_version}"
|
//runtime "nmd.primal.core:PrimalCore:${primal_version}"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).
|
#By changing the setting below to TRUE you are indicating your agreement to our EULA (https://account.mojang.com/documents/minecraft_eula).
|
||||||
#Mon Mar 13 20:41:32 EDT 2017
|
#Thu Mar 23 22:36:43 EDT 2017
|
||||||
eula=false
|
eula=false
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ forge_version=13.20.0.2226
|
|||||||
mcp_mappings=snapshot_20161220
|
mcp_mappings=snapshot_20161220
|
||||||
mc_version=1.11.2
|
mc_version=1.11.2
|
||||||
|
|
||||||
primal_version=0.3.2
|
primal_version=0.3.10
|
||||||
jei_version=4.0+
|
jei_version=4.2+
|
||||||
waila_version=1.7.0-B3
|
waila_version=1.7.0-B3
|
||||||
apple_version=2.1+
|
apple_version=2.1+
|
||||||
@@ -1,34 +1,12 @@
|
|||||||
package nmd.primal.forgecraft;
|
package nmd.primal.forgecraft;
|
||||||
|
|
||||||
import net.minecraft.block.*;
|
|
||||||
import net.minecraft.block.material.Material;
|
|
||||||
import net.minecraft.block.state.IBlockState;
|
|
||||||
import net.minecraft.enchantment.Enchantment;
|
|
||||||
import net.minecraft.entity.item.EntityItem;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.init.Blocks;
|
|
||||||
import net.minecraft.init.Items;
|
|
||||||
import net.minecraft.inventory.IInventory;
|
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.util.math.BlockPos;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
import net.minecraftforge.common.IShearable;
|
|
||||||
import net.minecraftforge.event.world.BlockEvent;
|
|
||||||
import net.minecraftforge.event.world.WorldEvent;
|
|
||||||
import net.minecraftforge.fml.common.eventhandler.EventPriority;
|
import net.minecraftforge.fml.common.eventhandler.EventPriority;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||||
import net.minecraftforge.fml.common.gameevent.PlayerEvent;
|
import net.minecraftforge.fml.common.gameevent.PlayerEvent;
|
||||||
import nmd.primal.core.api.PrimalBlocks;
|
|
||||||
import nmd.primal.core.api.PrimalItems;
|
|
||||||
import nmd.primal.core.api.PrimalRegistries;
|
|
||||||
import nmd.primal.core.common.init.ModConfig;
|
|
||||||
import nmd.primal.forgecraft.init.ModItems;
|
import nmd.primal.forgecraft.init.ModItems;
|
||||||
import nmd.primal.forgecraft.items.toolparts.ToolPart;
|
import nmd.primal.forgecraft.items.parts.ToolPart;
|
||||||
import nmd.primal.forgecraft.items.tools.CustomPickaxe;
|
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by mminaie on 3/15/17.
|
* Created by mminaie on 3/15/17.
|
||||||
|
|||||||
@@ -9,14 +9,20 @@ import net.minecraft.nbt.NBTTagCompound;
|
|||||||
public interface ToolNBT {
|
public interface ToolNBT {
|
||||||
|
|
||||||
default boolean getHot(ItemStack stack){
|
default boolean getHot(ItemStack stack){
|
||||||
return stack.getSubCompound("tags").getBoolean("hot");
|
if(stack.hasTagCompound()){
|
||||||
|
return stack.getSubCompound("tags").getBoolean("hot");
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
default void setHot(ItemStack stack, Boolean bool){
|
default void setHot(ItemStack stack, Boolean bool){
|
||||||
stack.getSubCompound("tags").setBoolean("hot", bool);
|
stack.getSubCompound("tags").setBoolean("hot", bool);
|
||||||
}
|
}
|
||||||
|
|
||||||
default int getModifiers(ItemStack stack) {
|
default int getModifiers(ItemStack stack) {
|
||||||
return stack.getSubCompound("tags").getInteger("modifiers");
|
if(stack.hasTagCompound()) {
|
||||||
|
return stack.getSubCompound("tags").getInteger("modifiers");
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
default void setModifiers(ItemStack stack, Integer mods){
|
default void setModifiers(ItemStack stack, Integer mods){
|
||||||
stack.getSubCompound("tags").setInteger("modifiers", mods);
|
stack.getSubCompound("tags").setInteger("modifiers", mods);
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import net.minecraft.entity.item.EntityItem;
|
|||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.init.Items;
|
import net.minecraft.init.Items;
|
||||||
import net.minecraft.item.EnumDyeColor;
|
import net.minecraft.item.EnumDyeColor;
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
@@ -21,15 +20,13 @@ import net.minecraft.world.IBlockAccess;
|
|||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.fml.relauncher.Side;
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
import nmd.primal.core.api.PrimalBlocks;
|
|
||||||
import nmd.primal.core.api.PrimalItems;
|
import nmd.primal.core.api.PrimalItems;
|
||||||
import nmd.primal.forgecraft.CommonUtils;
|
import nmd.primal.forgecraft.CommonUtils;
|
||||||
import nmd.primal.forgecraft.ModInfo;
|
import nmd.primal.forgecraft.ModInfo;
|
||||||
import nmd.primal.forgecraft.crafting.AnvilCrafting;
|
import nmd.primal.forgecraft.crafting.AnvilCrafting;
|
||||||
import nmd.primal.forgecraft.init.ModItems;
|
import nmd.primal.forgecraft.init.ModItems;
|
||||||
import nmd.primal.forgecraft.items.toolparts.ToolPart;
|
import nmd.primal.forgecraft.items.parts.ToolPart;
|
||||||
import nmd.primal.forgecraft.tiles.TileAnvil;
|
import nmd.primal.forgecraft.tiles.TileAnvil;
|
||||||
import nmd.primal.forgecraft.tiles.TileForge;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by mminaie on 3/4/17.
|
* Created by mminaie on 3/4/17.
|
||||||
@@ -74,19 +71,20 @@ public class Anvil extends CustomContainerFacing {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz) {
|
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand, EnumFacing facing, float hitx, float hity, float hitz) {
|
||||||
|
|
||||||
if (!player.isSwingInProgress) {
|
/*if (!player.isSwingInProgress) {
|
||||||
player.swingArm(hand);
|
player.swingArm(hand);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
Crafting Anvil Recipes
|
Crafting Anvil Recipes
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
if (!world.isRemote) {
|
if (!world.isRemote) {
|
||||||
if ((player.inventory.getCurrentItem().getItem().equals(PrimalItems.STONE_GALLAGHER)) || (player.inventory.getCurrentItem().getItem() == ModItems.forgehammer)) {
|
ItemStack pItem = player.inventory.getCurrentItem();
|
||||||
TileAnvil tile = (TileAnvil) world.getTileEntity(pos);
|
TileAnvil tile = (TileAnvil) world.getTileEntity(pos);
|
||||||
ItemStack pItem = player.inventory.getCurrentItem();
|
if (tile != null) {
|
||||||
if (tile != null) {
|
if ((player.inventory.getCurrentItem().getItem().equals(PrimalItems.STONE_GALLAGHER)) || (player.inventory.getCurrentItem().getItem() == ModItems.forgehammer)) {
|
||||||
|
|
||||||
|
|
||||||
if ((pItem.getItem().equals(PrimalItems.STONE_GALLAGHER)) || (pItem.getItem() == ModItems.forgehammer)) {
|
if ((pItem.getItem().equals(PrimalItems.STONE_GALLAGHER)) || (pItem.getItem() == ModItems.forgehammer)) {
|
||||||
|
|
||||||
@@ -199,95 +197,91 @@ public class Anvil extends CustomContainerFacing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*****************************************************************************
|
||||||
|
Adding and Removing Inventory With Tongs
|
||||||
|
*****************************************************************************/
|
||||||
/*****************************************************************************
|
|
||||||
Adding and Removing Inventory With Tongs
|
|
||||||
*****************************************************************************/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ((pItem.getItem() != PrimalItems.STONE_GALLAGHER) || (pItem.getItem() != ModItems.forgehammer)) {
|
if ((pItem.getItem() != PrimalItems.STONE_GALLAGHER) || (pItem.getItem() != ModItems.forgehammer)) {
|
||||||
|
if (pItem.getItem().equals(ModItems.stonetongs)) {
|
||||||
|
if ((pItem.getTagCompound().getInteger("type") == 6) || (pItem.getTagCompound().getInteger("type") == 7) ||
|
||||||
|
(pItem.getTagCompound().getInteger("type") == 8) ||
|
||||||
|
(pItem.getTagCompound().getInteger("type") == 9) ||
|
||||||
|
(pItem.getTagCompound().getInteger("type") == 10) ||
|
||||||
|
(pItem.getTagCompound().getInteger("type") == 11) ||
|
||||||
|
(pItem.getTagCompound().getInteger("type") == 0)) {
|
||||||
|
if (state.getValue(FACING) == EnumFacing.NORTH) {
|
||||||
|
int counter = 0;
|
||||||
|
for (int z = 0; z < 5; z++) {
|
||||||
|
for (int x = 0; x < 5; x++) {
|
||||||
|
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
|
||||||
|
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
|
||||||
|
|
||||||
if (state.getValue(FACING) == EnumFacing.NORTH) {
|
doWork(pItem, counter, tile, world, pos, player);
|
||||||
int counter = 0;
|
//System.out.println("Doing work");
|
||||||
for (int z = 0; z < 5; z++) {
|
}
|
||||||
for (int x = 0; x < 5; x++) {
|
}
|
||||||
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
|
counter++;
|
||||||
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
|
|
||||||
|
|
||||||
return doWork(pItem, counter, tile, world, pos, player);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
counter++;
|
|
||||||
}
|
}
|
||||||
}
|
if (state.getValue(FACING) == EnumFacing.SOUTH) {
|
||||||
}
|
int counter = 0;
|
||||||
if (state.getValue(FACING) == EnumFacing.SOUTH) {
|
for (int z = 0; z < 5; z++) {
|
||||||
int counter = 0;
|
for (int x = 0; x < 5; x++) {
|
||||||
for (int z = 0; z < 5; z++) {
|
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
|
||||||
for (int x = 0; x < 5; x++) {
|
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
|
||||||
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
|
|
||||||
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
|
|
||||||
|
|
||||||
return doWork(pItem, counter, tile, world, pos, player);
|
doWork(pItem, counter, tile, world, pos, player);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
counter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
counter++;
|
|
||||||
}
|
}
|
||||||
}
|
if (state.getValue(FACING) == EnumFacing.WEST) {
|
||||||
}
|
int counter = 0;
|
||||||
if (state.getValue(FACING) == EnumFacing.WEST) {
|
for (int x = 0; x < 5; x++) {
|
||||||
int counter = 0;
|
for (int z = 0; z < 5; z++) {
|
||||||
for (int x = 0; x < 5; x++) {
|
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
|
||||||
for (int z = 0; z < 5; z++) {
|
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
|
||||||
if (hitx >= this.getNormalMin(x) && hitx <= this.getNormalMax(x)) {
|
|
||||||
if (hitz >= this.getReverseMin(z) && hitz <= this.getReverseMax(z)) {
|
|
||||||
|
|
||||||
return doWork(pItem, counter, tile, world, pos, player);
|
doWork(pItem, counter, tile, world, pos, player);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
counter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
counter++;
|
|
||||||
}
|
}
|
||||||
}
|
if (state.getValue(FACING) == EnumFacing.EAST) {
|
||||||
}
|
int counter = 0;
|
||||||
if (state.getValue(FACING) == EnumFacing.EAST) {
|
for (int x = 0; x < 5; x++) {
|
||||||
int counter = 0;
|
for (int z = 0; z < 5; z++) {
|
||||||
for (int x = 0; x < 5; x++) {
|
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
|
||||||
for (int z = 0; z < 5; z++) {
|
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
|
||||||
if (hitx >= this.getReverseMin(x) && hitx <= this.getReverseMax(x)) {
|
|
||||||
if (hitz >= this.getNormalMin(z) && hitz <= this.getNormalMax(z)) {
|
|
||||||
|
|
||||||
return doWork(pItem, counter, tile, world, pos, player);
|
doWork(pItem, counter, tile, world, pos, player);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
counter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
counter++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean doWork(ItemStack pItem, Integer counter, TileAnvil tile, World world, BlockPos pos, EntityPlayer player) {
|
private boolean doWork(ItemStack pItem, Integer counter, TileAnvil tile, World world, BlockPos pos, EntityPlayer player) {
|
||||||
if (pItem.getItem().equals(ModItems.stonetongs)) {
|
if (pItem.getItem().equals(ModItems.stonetongs)) {
|
||||||
//System.out.println("Level 1");
|
//System.out.println("Level 1");
|
||||||
if ((pItem.getTagCompound().getInteger("type") == 6) || (pItem.getTagCompound().getInteger("type") == 7) ||
|
|
||||||
(pItem.getTagCompound().getInteger("type") == 8) ||
|
|
||||||
(pItem.getTagCompound().getInteger("type") == 9) ||
|
|
||||||
(pItem.getTagCompound().getInteger("type") == 10) ||
|
|
||||||
(pItem.getTagCompound().getInteger("type") == 11) ||
|
|
||||||
(pItem.getTagCompound().getInteger("type") == 0)) {
|
|
||||||
|
|
||||||
if (!tile.getSlotStack(counter).isEmpty()) {
|
if (!tile.getSlotStack(counter).isEmpty()) {
|
||||||
if (pItem.getTagCompound().getInteger("type") == 0) {
|
if (pItem.getTagCompound().getInteger("type") == 0) {
|
||||||
@@ -385,7 +379,7 @@ public class Anvil extends CustomContainerFacing {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//System.out.println("1" + pItem);
|
//System.out.println("1" + pItem);
|
||||||
|
|
||||||
if (pItem.getItem().equals(Items.AIR) && player.isSneaking()) {
|
if (pItem.getItem().equals(Items.AIR) && player.isSneaking()) {
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import net.minecraft.init.Items;
|
|||||||
import net.minecraft.init.SoundEvents;
|
import net.minecraft.init.SoundEvents;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.*;
|
import net.minecraft.util.*;
|
||||||
import net.minecraft.util.math.AxisAlignedBB;
|
import net.minecraft.util.math.AxisAlignedBB;
|
||||||
@@ -31,8 +30,7 @@ import nmd.primal.core.api.PrimalItems;
|
|||||||
import nmd.primal.forgecraft.CommonUtils;
|
import nmd.primal.forgecraft.CommonUtils;
|
||||||
import nmd.primal.forgecraft.ModInfo;
|
import nmd.primal.forgecraft.ModInfo;
|
||||||
import nmd.primal.forgecraft.init.ModBlocks;
|
import nmd.primal.forgecraft.init.ModBlocks;
|
||||||
import nmd.primal.forgecraft.init.ModItems;
|
import nmd.primal.forgecraft.items.parts.ToolPart;
|
||||||
import nmd.primal.forgecraft.items.toolparts.ToolPart;
|
|
||||||
import nmd.primal.forgecraft.tiles.TileForge;
|
import nmd.primal.forgecraft.tiles.TileForge;
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|||||||
@@ -269,6 +269,18 @@ public class ModCrafting {
|
|||||||
"null"
|
"null"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/*** Temp Iron Sword ***/
|
||||||
|
AnvilCrafting.addRecipe(
|
||||||
|
new String[] {
|
||||||
|
empty,empty,empty,empty,empty,
|
||||||
|
empty,empty,hotChunk,empty,empty,
|
||||||
|
empty,empty,hotChunk,empty,empty,
|
||||||
|
empty,hotChunk,hotChunk,hotChunk,empty,
|
||||||
|
empty,empty,hotChunk,empty,empty },
|
||||||
|
new ItemStack(ModItems.ironsword, 1),
|
||||||
|
"null"
|
||||||
|
);
|
||||||
|
|
||||||
/*** Flaked emerald ***/
|
/*** Flaked emerald ***/
|
||||||
AnvilCrafting.addRecipe(
|
AnvilCrafting.addRecipe(
|
||||||
new String[] {
|
new String[] {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package nmd.primal.forgecraft.init;
|
package nmd.primal.forgecraft.init;
|
||||||
|
|
||||||
import javafx.scene.paint.Material;
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.renderer.ItemMeshDefinition;
|
import net.minecraft.client.renderer.ItemMeshDefinition;
|
||||||
import net.minecraft.client.renderer.block.model.ModelBakery;
|
import net.minecraft.client.renderer.block.model.ModelBakery;
|
||||||
@@ -23,18 +22,19 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
|||||||
import nmd.primal.forgecraft.ModInfo;
|
import nmd.primal.forgecraft.ModInfo;
|
||||||
import nmd.primal.forgecraft.blocks.IngotBall;
|
import nmd.primal.forgecraft.blocks.IngotBall;
|
||||||
import nmd.primal.forgecraft.items.*;
|
import nmd.primal.forgecraft.items.*;
|
||||||
import nmd.primal.forgecraft.items.toolparts.ToolPart;
|
import nmd.primal.forgecraft.items.parts.ToolPart;
|
||||||
import nmd.primal.forgecraft.items.tools.CustomAxe;
|
import nmd.primal.forgecraft.items.tools.CustomAxe;
|
||||||
import nmd.primal.forgecraft.items.tools.CustomHoe;
|
import nmd.primal.forgecraft.items.tools.CustomHoe;
|
||||||
import nmd.primal.forgecraft.items.tools.CustomPickaxe;
|
import nmd.primal.forgecraft.items.tools.CustomPickaxe;
|
||||||
import nmd.primal.forgecraft.items.tools.CustomShovel;
|
import nmd.primal.forgecraft.items.tools.CustomShovel;
|
||||||
|
import nmd.primal.forgecraft.items.weapons.CustomSword;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by kitsu on 11/26/2016.
|
* Created by kitsu on 11/26/2016.
|
||||||
*/
|
*/
|
||||||
public class ModItems {
|
public class ModItems {
|
||||||
|
|
||||||
public static Item test;
|
//public static Item test;
|
||||||
public static Item pistonbellows;
|
public static Item pistonbellows;
|
||||||
public static Item forgehammer = new ForgeHammer("forgehammer");
|
public static Item forgehammer = new ForgeHammer("forgehammer");
|
||||||
public static Item softcrucible;
|
public static Item softcrucible;
|
||||||
@@ -52,6 +52,8 @@ public class ModItems {
|
|||||||
public static Item ironshovel;
|
public static Item ironshovel;
|
||||||
public static Item ironhoe;
|
public static Item ironhoe;
|
||||||
|
|
||||||
|
public static Item ironsword;
|
||||||
|
|
||||||
//public static Item forgingmanual;
|
//public static Item forgingmanual;
|
||||||
|
|
||||||
public static void init() {
|
public static void init() {
|
||||||
@@ -70,8 +72,9 @@ public class ModItems {
|
|||||||
ironshovel = new CustomShovel("ironshovel", Item.ToolMaterial.IRON);
|
ironshovel = new CustomShovel("ironshovel", Item.ToolMaterial.IRON);
|
||||||
ironhoe = new CustomHoe("ironhoe", Item.ToolMaterial.IRON);
|
ironhoe = new CustomHoe("ironhoe", Item.ToolMaterial.IRON);
|
||||||
|
|
||||||
|
ironsword = new CustomSword("ironsword", Item.ToolMaterial.IRON);
|
||||||
//ironingotballcool = new BaseMultiItem("ironingotcool") {};
|
//ironingotballcool = new BaseMultiItem("ironingotcool") {};
|
||||||
//test = new ItemTest();
|
//test = new ItemTest("ironsword");
|
||||||
|
|
||||||
|
|
||||||
ironingotballhot = new BaseMultiItem("ironingothot") {
|
ironingotballhot = new BaseMultiItem("ironingothot") {
|
||||||
@@ -128,6 +131,8 @@ public class ModItems {
|
|||||||
GameRegistry.register(ironshovel);
|
GameRegistry.register(ironshovel);
|
||||||
GameRegistry.register(ironhoe);
|
GameRegistry.register(ironhoe);
|
||||||
|
|
||||||
|
GameRegistry.register(ironsword);
|
||||||
|
|
||||||
//GameRegistry.register(forgingmanual);
|
//GameRegistry.register(forgingmanual);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,6 +153,8 @@ public class ModItems {
|
|||||||
registerRender(ironaxe);
|
registerRender(ironaxe);
|
||||||
registerRender(ironshovel);
|
registerRender(ironshovel);
|
||||||
registerRender(ironhoe);
|
registerRender(ironhoe);
|
||||||
|
|
||||||
|
registerRender(ironsword);
|
||||||
//registerRender(forgingmanual);
|
//registerRender(forgingmanual);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,25 +19,11 @@ import javax.annotation.Nullable;
|
|||||||
*/
|
*/
|
||||||
public class ItemTest extends BaseItem {
|
public class ItemTest extends BaseItem {
|
||||||
|
|
||||||
public ItemTest() {
|
public ItemTest(String string) {
|
||||||
setUnlocalizedName(ModInfo.ForgecraftItems.TEST.getUnlocalizedName());
|
setUnlocalizedName(string);
|
||||||
setRegistryName(ModInfo.ForgecraftItems.TEST.getRegistryName());
|
setRegistryName(string);
|
||||||
|
|
||||||
|
|
||||||
this.addPropertyOverride(new ResourceLocation("test"), new IItemPropertyGetter()
|
|
||||||
{
|
|
||||||
@SideOnly(Side.CLIENT)
|
|
||||||
public float apply(ItemStack stack, @Nullable World worldIn, @Nullable EntityLivingBase entityIn)
|
|
||||||
{
|
|
||||||
if (entityIn == null)
|
|
||||||
{
|
|
||||||
return 0.0F;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return 1.0F;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package nmd.primal.forgecraft.items.toolparts;
|
package nmd.primal.forgecraft.items.parts;
|
||||||
|
|
||||||
import com.mojang.realmsclient.gui.ChatFormatting;
|
import com.mojang.realmsclient.gui.ChatFormatting;
|
||||||
import net.minecraft.enchantment.EnchantmentDigging;
|
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
@@ -19,8 +18,6 @@ import nmd.primal.forgecraft.ToolNBT;
|
|||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static nmd.primal.forgecraft.ToolNBT.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by mminaie on 3/9/17.
|
* Created by mminaie on 3/9/17.
|
||||||
*/
|
*/
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
package nmd.primal.forgecraft.items.weapons;
|
||||||
|
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.item.ItemSword;
|
||||||
|
import net.minecraftforge.fml.relauncher.Side;
|
||||||
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
|
import nmd.primal.forgecraft.ModInfo;
|
||||||
|
import nmd.primal.forgecraft.ToolNBT;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by mminaie on 3/23/17.
|
||||||
|
*/
|
||||||
|
public class CustomSword extends ItemSword {
|
||||||
|
|
||||||
|
public CustomSword(String name, Item.ToolMaterial material) {
|
||||||
|
super(material);
|
||||||
|
this.setUnlocalizedName(name);
|
||||||
|
this.setRegistryName(name);
|
||||||
|
this.setCreativeTab(ModInfo.TAB_FORGECRAFT);
|
||||||
|
this.setMaxStackSize(1);
|
||||||
|
this.setNoRepair();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
@Override
|
||||||
|
public boolean hasEffect(ItemStack stack)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isRepairable()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getItemEnchantability(ItemStack stack)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 141 B |
@@ -0,0 +1,189 @@
|
|||||||
|
{
|
||||||
|
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/e_particle",
|
||||||
|
"texture": "forgecraft:items/iron_ingot"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"__comment": "Cube23",
|
||||||
|
"from": [ 7, -7, 7.5 ],
|
||||||
|
"to": [ 9.5, 0, 8.5 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7, 9, 9, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 9, 9, 16 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 9, 8.5, 16 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 9, 8.5, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube24",
|
||||||
|
"from": [ 6.5, -8, 7 ],
|
||||||
|
"to": [ 10, -7, 9 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 6.5, 7, 9.5, 9 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 6.5, 7, 9.5, 9 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 6.5, 0, 9.5, 1 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 6.5, 0, 9.5, 1 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7, 0, 9, 1 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7, 0, 9, 1 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube25",
|
||||||
|
"from": [ 5, 0, 6.5 ],
|
||||||
|
"to": [ 11.5, 1, 9.5 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 5.5, 6.5, 10.5, 9.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 5.5, 6.5, 10.5, 9.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 5.5, 0, 10.5, 1 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 5.5, 0, 10.5, 1 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 6.5, 0, 9.5, 1 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 6.5, 0, 9.5, 1 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube23",
|
||||||
|
"from": [ 6.5, 1, 7.5 ],
|
||||||
|
"to": [ 10, 22.5, 8.5 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7, 9, 9, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 9, 9, 16 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 9, 8.5, 16 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 9, 8.5, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube28",
|
||||||
|
"from": [ 8, 1, 8.5 ],
|
||||||
|
"to": [ 8.5, 22.5, 8.5011 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7.5, 7, 8.5, 7.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 7.5, 8.5, 8.5, 9 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7.5, 0, 8.5, 15 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7.5, 0, 8.5, 15 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 8.5, 0, 9, 15 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7, 0, 7.5, 15 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube32",
|
||||||
|
"from": [ 7, 22.5, 8 ],
|
||||||
|
"to": [ 9.5, 25, 8.33 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7, 7, 9, 9.5 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 7, 9, 9.5 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 7, 8.5, 9.5 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 7, 8.5, 9.5 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube32",
|
||||||
|
"from": [ 7.5, 25, 8 ],
|
||||||
|
"to": [ 9, 26.5, 8.25 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7, 7, 9, 8 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 7, 9, 8 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 7, 8.5, 8 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 7, 8.5, 8 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube9",
|
||||||
|
"from": [ 8, 26.5, 8 ],
|
||||||
|
"to": [ 8.5, 27.5, 8.165 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 8, 7.5, 8.5, 8 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 8, 8, 8.5, 8.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7.5, 4.5, 8, 5.5 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 8, 4.5, 8.5, 5.5 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 8, 4.5, 8.5, 5.5 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 4.5, 8, 5.5 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube32",
|
||||||
|
"from": [ 7, 22.5, 7.67 ],
|
||||||
|
"to": [ 9.5, 25, 8 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"north": { "uv": [ 7, 7, 9, 9.5 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 7, 9, 9.5 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 7, 8.5, 9.5 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 7, 8.5, 9.5 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube32",
|
||||||
|
"from": [ 7.5, 25, 7.75 ],
|
||||||
|
"to": [ 9, 26.5, 8 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"north": { "uv": [ 7, 7, 9, 8 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 7, 9, 8 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 7, 8.5, 8 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 7, 8.5, 8 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube9",
|
||||||
|
"from": [ 8, 26.5, 7.835 ],
|
||||||
|
"to": [ 8.5, 27.5, 8 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 8, 7.5, 8.5, 8 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"up": { "uv": [ 8, 8, 8.5, 8.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"north": { "uv": [ 8, 4.5, 8.5, 5.5 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7.5, 4.5, 8, 5.5 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 4.5, 8, 5.5 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 8, 4.5, 8.5, 5.5 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube28",
|
||||||
|
"from": [ 8, 1, 7.499 ],
|
||||||
|
"to": [ 8.5, 22.5, 7.5 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7.5, 7, 8.5, 7.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"up": { "uv": [ 7.5, 8.5, 8.5, 9 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"north": { "uv": [ 7.5, 0, 8.5, 15 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7.5, 0, 8.5, 15 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7, 0, 7.5, 15 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 8.5, 0, 9, 15 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"display": {
|
||||||
|
"thirdperson_righthand": {
|
||||||
|
"rotation": [ 0, 90, 0 ],
|
||||||
|
"translation": [ 0, 6.6, 1.33 ],
|
||||||
|
"scale": [ 0.7, 0.75, 0.75 ]
|
||||||
|
},
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"rotation": [ 0, 90, 0 ],
|
||||||
|
"translation": [ 0, 6.6, 1 ],
|
||||||
|
"scale": [ 0.75, 0.75, 0.75 ]
|
||||||
|
},
|
||||||
|
"gui": {
|
||||||
|
"rotation": [ 0, 0, -45 ],
|
||||||
|
"translation": [ -0.4, -0.4, 0 ],
|
||||||
|
"scale": [ 0.5, 0.5, 0.5 ]
|
||||||
|
},
|
||||||
|
"ground": {
|
||||||
|
"rotation": [ 90, 0, 0 ]
|
||||||
|
},
|
||||||
|
"fixed": {
|
||||||
|
"rotation": [ 0, 0, 45 ],
|
||||||
|
"scale": [ 0.66, 0.66, 0.66 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
{
|
||||||
|
"__comment": "Designed by Kitsushadow with Cubik Studio - https://cubik.studio",
|
||||||
|
"textures": {
|
||||||
|
"particle": "blocks/e_particle",
|
||||||
|
"texture": "items/iron_ingot"
|
||||||
|
},
|
||||||
|
"elements": [
|
||||||
|
{
|
||||||
|
"__comment": "Cube23",
|
||||||
|
"from": [ 7, -7, 7.5 ],
|
||||||
|
"to": [ 9.5, 0, 8.5 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7, 9, 9, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 9, 9, 16 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 9, 8.5, 16 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 9, 8.5, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube24",
|
||||||
|
"from": [ 6.5, -8, 7 ],
|
||||||
|
"to": [ 10, -7, 9 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 6.5, 7, 9.5, 9 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 6.5, 7, 9.5, 9 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 6.5, 0, 9.5, 1 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 6.5, 0, 9.5, 1 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7, 0, 9, 1 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7, 0, 9, 1 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube25",
|
||||||
|
"from": [ 5, 0, 6.5 ],
|
||||||
|
"to": [ 11.5, 1, 9.5 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 5.5, 6.5, 10.5, 9.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 5.5, 6.5, 10.5, 9.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 5.5, 0, 10.5, 1 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 5.5, 0, 10.5, 1 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 6.5, 0, 9.5, 1 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 6.5, 0, 9.5, 1 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube23",
|
||||||
|
"from": [ 6.5, 1, 7.5 ],
|
||||||
|
"to": [ 10, 22.5, 8.5 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7, 9, 9, 16 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 9, 9, 16 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 9, 8.5, 16 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 9, 8.5, 16 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube28",
|
||||||
|
"from": [ 8, 1, 8.5 ],
|
||||||
|
"to": [ 8.5, 22.5, 8.5011 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7.5, 7, 8.5, 7.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 7.5, 8.5, 8.5, 9 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7.5, 0, 8.5, 15 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7.5, 0, 8.5, 15 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 8.5, 0, 9, 15 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7, 0, 7.5, 15 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube32",
|
||||||
|
"from": [ 7, 22.5, 8 ],
|
||||||
|
"to": [ 9.5, 25, 8.33 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7, 7, 9, 9.5 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 7, 9, 9.5 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 7, 8.5, 9.5 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 7, 8.5, 9.5 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube32",
|
||||||
|
"from": [ 7.5, 25, 8 ],
|
||||||
|
"to": [ 9, 26.5, 8.25 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7, 7, 9, 8 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 7, 9, 8 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 7, 8.5, 8 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 7, 8.5, 8 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube9",
|
||||||
|
"from": [ 8, 26.5, 8 ],
|
||||||
|
"to": [ 8.5, 27.5, 8.165 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 8, 7.5, 8.5, 8 ], "texture": "#texture" },
|
||||||
|
"up": { "uv": [ 8, 8, 8.5, 8.5 ], "texture": "#texture" },
|
||||||
|
"north": { "uv": [ 7.5, 4.5, 8, 5.5 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 8, 4.5, 8.5, 5.5 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 8, 4.5, 8.5, 5.5 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 4.5, 8, 5.5 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube32",
|
||||||
|
"from": [ 7, 22.5, 7.67 ],
|
||||||
|
"to": [ 9.5, 25, 8 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"north": { "uv": [ 7, 7, 9, 9.5 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 7, 9, 9.5 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 7, 8.5, 9.5 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 7, 8.5, 9.5 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube32",
|
||||||
|
"from": [ 7.5, 25, 7.75 ],
|
||||||
|
"to": [ 9, 26.5, 8 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"up": { "uv": [ 7, 7.5, 9, 8.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"north": { "uv": [ 7, 7, 9, 8 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7, 7, 9, 8 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 7, 8.5, 8 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 7.5, 7, 8.5, 8 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube9",
|
||||||
|
"from": [ 8, 26.5, 7.835 ],
|
||||||
|
"to": [ 8.5, 27.5, 8 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 8, 7.5, 8.5, 8 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"up": { "uv": [ 8, 8, 8.5, 8.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"north": { "uv": [ 8, 4.5, 8.5, 5.5 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7.5, 4.5, 8, 5.5 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7.5, 4.5, 8, 5.5 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 8, 4.5, 8.5, 5.5 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__comment": "Cube28",
|
||||||
|
"from": [ 8, 1, 7.499 ],
|
||||||
|
"to": [ 8.5, 22.5, 7.5 ],
|
||||||
|
"faces": {
|
||||||
|
"down": { "uv": [ 7.5, 7, 8.5, 7.5 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"up": { "uv": [ 7.5, 8.5, 8.5, 9 ], "texture": "#texture", "rotation": 180 },
|
||||||
|
"north": { "uv": [ 7.5, 0, 8.5, 15 ], "texture": "#texture" },
|
||||||
|
"south": { "uv": [ 7.5, 0, 8.5, 15 ], "texture": "#texture" },
|
||||||
|
"west": { "uv": [ 7, 0, 7.5, 15 ], "texture": "#texture" },
|
||||||
|
"east": { "uv": [ 8.5, 0, 9, 15 ], "texture": "#texture" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"display": {
|
||||||
|
"thirdperson_righthand": {
|
||||||
|
"rotation": [ 0, 90, 0 ],
|
||||||
|
"translation": [ 0, 6.6, 1.33 ],
|
||||||
|
"scale": [ 0.7, 0.75, 0.75 ]
|
||||||
|
},
|
||||||
|
"firstperson_righthand": {
|
||||||
|
"rotation": [ 0, 90, 0 ],
|
||||||
|
"translation": [ 0, 6.6, 1 ],
|
||||||
|
"scale": [ 0.75, 0.75, 0.75 ]
|
||||||
|
},
|
||||||
|
"gui": {
|
||||||
|
"rotation": [ 0, 0, -45 ],
|
||||||
|
"translation": [ -0.4, -0.4, 0 ],
|
||||||
|
"scale": [ 0.5, 0.5, 0.5 ]
|
||||||
|
},
|
||||||
|
"ground": {
|
||||||
|
"rotation": [ 90, 0, 0 ]
|
||||||
|
},
|
||||||
|
"fixed": {
|
||||||
|
"rotation": [ 0, 0, 45 ],
|
||||||
|
"scale": [ 0.66, 0.66, 0.66 ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user