Made it so placed mimic blocks replace the block that you place it on unless you hold shift. Also worked on dungeon schematic saving/loading.
This commit is contained in:
parent
61b11a88bf
commit
80bf140ee5
11 changed files with 662 additions and 11 deletions
|
@ -12,12 +12,11 @@ import net.minecraft.util.math.RayTraceResult;
|
|||
import net.minecraft.util.text.ITextComponent;
|
||||
import net.minecraft.util.text.TextComponentTranslation;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.WorldServer;
|
||||
import WayofTime.bloodmagic.api.altar.IBloodAltar;
|
||||
import WayofTime.bloodmagic.api.iface.IAltarReader;
|
||||
import WayofTime.bloodmagic.api.util.helper.NetworkHelper;
|
||||
import WayofTime.bloodmagic.api.util.helper.PlayerHelper;
|
||||
import WayofTime.bloodmagic.structures.DungeonTester;
|
||||
import WayofTime.bloodmagic.entity.mob.EntityMimic;
|
||||
import WayofTime.bloodmagic.tile.TileIncenseAltar;
|
||||
import WayofTime.bloodmagic.util.ChatUtil;
|
||||
import WayofTime.bloodmagic.util.helper.NumeralHelper;
|
||||
|
@ -32,12 +31,26 @@ public class ItemSigilDivination extends ItemSigilBase implements IAltarReader
|
|||
@Override
|
||||
public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand)
|
||||
{
|
||||
if (world instanceof WorldServer)
|
||||
// if (world instanceof WorldServer)
|
||||
// {
|
||||
// System.out.println("Testing...");
|
||||
//// BuildTestStructure s = new BuildTestStructure();
|
||||
//// s.placeStructureAtPosition(new Random(), Rotation.CLOCKWISE_180, (WorldServer) world, player.getPosition(), 0);
|
||||
// DungeonTester.testDungeonElementWithOutput((WorldServer) world, player.getPosition());
|
||||
// }
|
||||
|
||||
if (!world.isRemote)
|
||||
{
|
||||
System.out.println("Testing...");
|
||||
// BuildTestStructure s = new BuildTestStructure();
|
||||
// s.placeStructureAtPosition(new Random(), Rotation.CLOCKWISE_180, (WorldServer) world, player.getPosition(), 0);
|
||||
DungeonTester.testDungeonElementWithOutput((WorldServer) world, player.getPosition());
|
||||
EntityMimic mimic = new EntityMimic(world);
|
||||
|
||||
mimic.setPosition(player.posX, player.posY, player.posZ);
|
||||
world.spawnEntityInWorld(mimic);
|
||||
|
||||
System.out.println("Spawning Mimic");
|
||||
// EntityZombie zombie = new EntityZombie(world);
|
||||
// zombie.setPosition(player.posX, player.posY, player.posZ);
|
||||
// zombie.setItemStackToSlot(EntityEquipmentSlot.HEAD, new ItemStack(Blocks.CHEST));
|
||||
// world.spawnEntityInWorld(zombie);
|
||||
}
|
||||
|
||||
if (!world.isRemote)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue