Jump to content

PutoPug

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by PutoPug

  1. package com.putopug.combat7.gui; import com.putopug.combat7.Combat7Stuff; import org.lwjgl.opengl.GL11; import net.minecraftforge.items.SlotItemHandler; import net.minecraftforge.items.ItemStackHandler; import net.minecraftforge.items.IItemHandler; import net.minecraftforge.items.CapabilityItemHandler; import net.minecraftforge.fml.network.NetworkEvent; import net.minecraftforge.fml.network.IContainerFactory; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.fml.DeferredWorkQueue; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.api.distmarker.Dist; import net.minecraft.world.World; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.math.BlockPos; import net.minecraft.util.ResourceLocation; import net.minecraft.tileentity.TileEntity; import net.minecraft.network.PacketBuffer; import net.minecraft.item.ItemStack; import net.minecraft.inventory.container.Slot; import net.minecraft.inventory.container.ContainerType; import net.minecraft.inventory.container.Container; import net.minecraft.entity.player.ServerPlayerEntity; import net.minecraft.entity.player.PlayerInventory; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.Entity; import net.minecraft.client.gui.screen.inventory.ContainerScreen; import net.minecraft.client.gui.ScreenManager; import net.minecraft.client.Minecraft; import java.util.function.Supplier; import java.util.Map; import java.util.HashMap; import com.putopug.combat7.Combat7Stuff; import com.putopug.combat7.combat7; import com.mojang.blaze3d.matrix.MatrixStack; @Combat7Stuff.ModElement.Tag public class CraftoxUIGui extends Combat7Stuff.ModElement { public static HashMap guistate = new HashMap(); private static ContainerType<GuiContainerMod> containerType = null; public CraftoxUIGui(Combat7Stuff instance) { super(instance, 6); elements.addNetworkMessage(ButtonPressedMessage.class, ButtonPressedMessage::buffer, ButtonPressedMessage::new, ButtonPressedMessage::handler); elements.addNetworkMessage(GUISlotChangedMessage.class, GUISlotChangedMessage::buffer, GUISlotChangedMessage::new, GUISlotChangedMessage::handler); containerType = new ContainerType<>(new GuiContainerModFactory()); FMLJavaModLoadingContext.get().getModEventBus().register(new ContainerRegisterHandler()); } private static class ContainerRegisterHandler { @SubscribeEvent public void registerContainer(RegistryEvent.Register<ContainerType<?>> event) { event.getRegistry().register(containerType.setRegistryName("craftox_ui")); } } @OnlyIn(Dist.CLIENT) public void initElements() { DeferredWorkQueue.runLater(() -> ScreenManager.registerFactory(containerType, GuiWindow::new)); } public static class GuiContainerModFactory implements IContainerFactory { public GuiContainerMod create(int id, PlayerInventory inv, PacketBuffer extraData) { return new GuiContainerMod(id, inv, extraData); } } public static class GuiContainerMod extends Container implements Supplier<Map<Integer, Slot>> { private World world; private PlayerEntity entity; private int x, y, z; private IItemHandler internal; private Map<Integer, Slot> customSlots = new HashMap<>(); private boolean bound = false; public GuiContainerMod(int id, PlayerInventory inv, PacketBuffer extraData) { super(containerType, id); this.entity = inv.player; this.world = inv.player.world; this.internal = new ItemStackHandler(17); BlockPos pos = null; if (extraData != null) { pos = extraData.readBlockPos(); this.x = pos.getX(); this.y = pos.getY(); this.z = pos.getZ(); } if (pos != null) { if (extraData.readableBytes() == 1) { // bound to item byte hand = extraData.readByte(); ItemStack itemstack; if (hand == 0) itemstack = this.entity.getHeldItemMainhand(); else itemstack = this.entity.getHeldItemOffhand(); itemstack.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null).ifPresent(capability -> { this.internal = capability; this.bound = true; }); } else if (extraData.readableBytes() > 1) { extraData.readByte(); // drop padding Entity entity = world.getEntityByID(extraData.readVarInt()); if (entity != null) entity.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null).ifPresent(capability -> { this.internal = capability; this.bound = true; }); } else { // might be bound to block TileEntity ent = inv.player != null ? inv.player.world.getTileEntity(pos) : null; if (ent != null) { ent.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null).ifPresent(capability -> { this.internal = capability; this.bound = true; }); } } } this.customSlots.put(0, this.addSlot(new SlotItemHandler(internal, 0, 7, 26) { })); this.customSlots.put(1, this.addSlot(new SlotItemHandler(internal, 1, 7, 44) { })); this.customSlots.put(2, this.addSlot(new SlotItemHandler(internal, 2, 25, 26) { @Override public boolean isItemValid(ItemStack stack) { return false; } })); this.customSlots.put(3, this.addSlot(new SlotItemHandler(internal, 3, 25, 44) { })); this.customSlots.put(4, this.addSlot(new SlotItemHandler(internal, 4, 43, 26) { })); this.customSlots.put(5, this.addSlot(new SlotItemHandler(internal, 5, 43, 44) { })); this.customSlots.put(6, this.addSlot(new SlotItemHandler(internal, 6, 61, 26) { })); this.customSlots.put(7, this.addSlot(new SlotItemHandler(internal, 7, 61, 44) { })); this.customSlots.put(8, this.addSlot(new SlotItemHandler(internal, 8, 7, 62) { })); this.customSlots.put(9, this.addSlot(new SlotItemHandler(internal, 9, 25, 62) { })); this.customSlots.put(10, this.addSlot(new SlotItemHandler(internal, 10, 43, 62) { })); this.customSlots.put(11, this.addSlot(new SlotItemHandler(internal, 11, 61, 62) { })); this.customSlots.put(12, this.addSlot(new SlotItemHandler(internal, 12, 124, 44) { @Override public boolean isItemValid(ItemStack stack) { return false; } })); this.customSlots.put(13, this.addSlot(new SlotItemHandler(internal, 13, 79, 26) { })); this.customSlots.put(14, this.addSlot(new SlotItemHandler(internal, 14, 79, 62) { })); this.customSlots.put(15, this.addSlot(new SlotItemHandler(internal, 15, 79, 44) { })); this.customSlots.put(16, this.addSlot(new SlotItemHandler(internal, 16, 142, 44) { @Override public boolean isItemValid(ItemStack stack) { return false; } })); int si; int sj; for (si = 0; si < 3; ++si) for (sj = 0; sj < 9; ++sj) this.addSlot(new Slot(inv, sj + (si + 1) * 9, 0 + 8 + sj * 18, 0 + 84 + si * 18)); for (si = 0; si < 9; ++si) this.addSlot(new Slot(inv, si, 0 + 8 + si * 18, 0 + 142)); } public Map<Integer, Slot> get() { return customSlots; } @Override public boolean canInteractWith(PlayerEntity player) { return true; } @Override public ItemStack transferStackInSlot(PlayerEntity playerIn, int index) { ItemStack itemstack = ItemStack.EMPTY; Slot slot = (Slot) this.inventorySlots.get(index); if (slot != null && slot.getHasStack()) { ItemStack itemstack1 = slot.getStack(); itemstack = itemstack1.copy(); if (index < 17) { if (!this.mergeItemStack(itemstack1, 17, this.inventorySlots.size(), true)) { return ItemStack.EMPTY; } slot.onSlotChange(itemstack1, itemstack); } else if (!this.mergeItemStack(itemstack1, 0, 17, false)) { if (index < 17 + 27) { if (!this.mergeItemStack(itemstack1, 17 + 27, this.inventorySlots.size(), true)) { return ItemStack.EMPTY; } } else { if (!this.mergeItemStack(itemstack1, 17, 17 + 27, false)) { return ItemStack.EMPTY; } } return ItemStack.EMPTY; } if (itemstack1.getCount() == 0) { slot.putStack(ItemStack.EMPTY); } else { slot.onSlotChanged(); } if (itemstack1.getCount() == itemstack.getCount()) { return ItemStack.EMPTY; } slot.onTake(playerIn, itemstack1); } return itemstack; } @Override /** * Merges provided ItemStack with the first avaliable one in the * container/player inventor between minIndex (included) and maxIndex * (excluded). Args : stack, minIndex, maxIndex, negativDirection. /!\ the * Container implementation do not check if the item is valid for the slot */ protected boolean mergeItemStack(ItemStack stack, int startIndex, int endIndex, boolean reverseDirection) { boolean flag = false; int i = startIndex; if (reverseDirection) { i = endIndex - 1; } if (stack.isStackable()) { while (!stack.isEmpty()) { if (reverseDirection) { if (i < startIndex) { break; } } else if (i >= endIndex) { break; } Slot slot = this.inventorySlots.get(i); ItemStack itemstack = slot.getStack(); if (slot.isItemValid(itemstack) && !itemstack.isEmpty() && areItemsAndTagsEqual(stack, itemstack)) { int j = itemstack.getCount() + stack.getCount(); int maxSize = Math.min(slot.getSlotStackLimit(), stack.getMaxStackSize()); if (j <= maxSize) { stack.setCount(0); itemstack.setCount(j); slot.putStack(itemstack); flag = true; } else if (itemstack.getCount() < maxSize) { stack.shrink(maxSize - itemstack.getCount()); itemstack.setCount(maxSize); slot.putStack(itemstack); flag = true; } } if (reverseDirection) { --i; } else { ++i; } } } if (!stack.isEmpty()) { if (reverseDirection) { i = endIndex - 1; } else { i = startIndex; } while (true) { if (reverseDirection) { if (i < startIndex) { break; } } else if (i >= endIndex) { break; } Slot slot1 = this.inventorySlots.get(i); ItemStack itemstack1 = slot1.getStack(); if (itemstack1.isEmpty() && slot1.isItemValid(stack)) { if (stack.getCount() > slot1.getSlotStackLimit()) { slot1.putStack(stack.split(slot1.getSlotStackLimit())); } else { slot1.putStack(stack.split(stack.getCount())); } slot1.onSlotChanged(); flag = true; break; } if (reverseDirection) { --i; } else { ++i; } } } return flag; } @Override public void onContainerClosed(PlayerEntity playerIn) { super.onContainerClosed(playerIn); if (!bound && (playerIn instanceof ServerPlayerEntity)) { if (!playerIn.isAlive() || playerIn instanceof ServerPlayerEntity && ((ServerPlayerEntity) playerIn).hasDisconnected()) { for (int j = 0; j < internal.getSlots(); ++j) { playerIn.dropItem(internal.extractItem(j, internal.getStackInSlot(j).getCount(), false), false); } } else { for (int i = 0; i < internal.getSlots(); ++i) { playerIn.inventory.placeItemBackInInventory(playerIn.world, internal.extractItem(i, internal.getStackInSlot(i).getCount(), false)); } } } } private void slotChanged(int slotid, int ctype, int meta) { if (this.world != null && this.world.isRemote()) { combat7.PACKET_HANDLER.sendToServer(new GUISlotChangedMessage(slotid, x, y, z, ctype, meta)); handleSlotAction(entity, slotid, ctype, meta, x, y, z); } } } @OnlyIn(Dist.CLIENT) public static class GuiWindow extends ContainerScreen<GuiContainerMod> { private World world; private int x, y, z; private PlayerEntity entity; public GuiWindow(GuiContainerMod container, PlayerInventory inventory, ITextComponent text) { super(container, inventory, text); this.world = container.world; this.x = container.x; this.y = container.y; this.z = container.z; this.entity = container.entity; this.xSize = 176; this.ySize = 166; } private static final ResourceLocation texture = new ResourceLocation("combat7:textures/craftox_ui.png"); @Override public void render(MatrixStack ms, int mouseX, int mouseY, float partialTicks) { this.renderBackground(ms); super.render(ms, mouseX, mouseY, partialTicks); this.renderHoveredTooltip(ms, mouseX, mouseY); } @Override protected void drawGuiContainerBackgroundLayer(MatrixStack ms, float par1, int par2, int par3) { GL11.glColor4f(1, 1, 1, 1); Minecraft.getInstance().getTextureManager().bindTexture(texture); int k = (this.width - this.xSize) / 2; int l = (this.height - this.ySize) / 2; this.blit(ms, k, l, 0, 0, this.xSize, this.ySize, this.xSize, this.ySize); } @Override public boolean keyPressed(int key, int b, int c) { if (key == 256) { this.minecraft.player.closeScreen(); return true; } return super.keyPressed(key, b, c); } @Override public void tick() { super.tick(); } @Override protected void drawGuiContainerForegroundLayer(MatrixStack ms, int mouseX, int mouseY) { this.font.drawString(ms, "Craftox", 6, 7, -12829636); } @Override public void onClose() { super.onClose(); Minecraft.getInstance().keyboardListener.enableRepeatEvents(false); } @Override public void init(Minecraft minecraft, int width, int height) { super.init(minecraft, width, height); minecraft.keyboardListener.enableRepeatEvents(true); } } public static class ButtonPressedMessage { int buttonID, x, y, z; public ButtonPressedMessage(PacketBuffer buffer) { this.buttonID = buffer.readInt(); this.x = buffer.readInt(); this.y = buffer.readInt(); this.z = buffer.readInt(); } public ButtonPressedMessage(int buttonID, int x, int y, int z) { this.buttonID = buttonID; this.x = x; this.y = y; this.z = z; } public static void buffer(ButtonPressedMessage message, PacketBuffer buffer) { buffer.writeInt(message.buttonID); buffer.writeInt(message.x); buffer.writeInt(message.y); buffer.writeInt(message.z); } public static void handler(ButtonPressedMessage message, Supplier<NetworkEvent.Context> contextSupplier) { NetworkEvent.Context context = contextSupplier.get(); context.enqueueWork(() -> { PlayerEntity entity = context.getSender(); int buttonID = message.buttonID; int x = message.x; int y = message.y; int z = message.z; handleButtonAction(entity, buttonID, x, y, z); }); context.setPacketHandled(true); } } public static class GUISlotChangedMessage { int slotID, x, y, z, changeType, meta; public GUISlotChangedMessage(int slotID, int x, int y, int z, int changeType, int meta) { this.slotID = slotID; this.x = x; this.y = y; this.z = z; this.changeType = changeType; this.meta = meta; } public GUISlotChangedMessage(PacketBuffer buffer) { this.slotID = buffer.readInt(); this.x = buffer.readInt(); this.y = buffer.readInt(); this.z = buffer.readInt(); this.changeType = buffer.readInt(); this.meta = buffer.readInt(); } public static void buffer(GUISlotChangedMessage message, PacketBuffer buffer) { buffer.writeInt(message.slotID); buffer.writeInt(message.x); buffer.writeInt(message.y); buffer.writeInt(message.z); buffer.writeInt(message.changeType); buffer.writeInt(message.meta); } public static void handler(GUISlotChangedMessage message, Supplier<NetworkEvent.Context> contextSupplier) { NetworkEvent.Context context = contextSupplier.get(); context.enqueueWork(() -> { PlayerEntity entity = context.getSender(); int slotID = message.slotID; int changeType = message.changeType; int meta = message.meta; int x = message.x; int y = message.y; int z = message.z; handleSlotAction(entity, slotID, changeType, meta, x, y, z); }); context.setPacketHandled(true); } } private static void handleButtonAction(PlayerEntity entity, int buttonID, int x, int y, int z) { World world = entity.world; // security measure to prevent arbitrary chunk generation if (!world.isBlockLoaded(new BlockPos(x, y, z))) return; } private static void handleSlotAction(PlayerEntity entity, int slotID, int changeType, int meta, int x, int y, int z) { World world = entity.world; // security measure to prevent arbitrary chunk generation if (!world.isBlockLoaded(new BlockPos(x, y, z))) return; } }
  2. package com.putopug.combat7.objects.blocks; import com.putopug.combat7.init.items.itemGroups; import net.minecraft.item.BlockItemUseContext; import net.minecraft.state.DirectionProperty; import net.minecraft.state.StateContainer; import net.minecraft.state.properties.BlockStateProperties; import net.minecraft.util.*; import net.minecraft.util.math.shapes.IBooleanFunction; import net.minecraft.util.math.shapes.ISelectionContext; import net.minecraft.util.math.shapes.VoxelShape; import net.minecraft.util.math.shapes.VoxelShapes; import net.minecraft.world.IWorld; import net.minecraftforge.registries.ObjectHolder; import net.minecraftforge.items.wrapper.SidedInvWrapper; import net.minecraftforge.items.IItemHandler; import net.minecraftforge.items.CapabilityItemHandler; import net.minecraftforge.fml.network.NetworkHooks; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.common.util.LazyOptional; import net.minecraftforge.common.capabilities.Capability; import net.minecraftforge.common.ToolType; import net.minecraft.world.World; import net.minecraft.world.IBlockReader; import net.minecraft.util.text.StringTextComponent; import net.minecraft.util.text.ITextComponent; import net.minecraft.util.math.BlockRayTraceResult; import net.minecraft.util.math.BlockPos; import net.minecraft.tileentity.TileEntityType; import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.LockableLootTileEntity; import net.minecraft.network.play.server.SUpdateTileEntityPacket; import net.minecraft.network.PacketBuffer; import net.minecraft.network.NetworkManager; import net.minecraft.nbt.CompoundNBT; import net.minecraft.loot.LootContext; import net.minecraft.item.ItemStack; import net.minecraft.item.Item; import net.minecraft.item.BlockItem; import net.minecraft.inventory.container.INamedContainerProvider; import net.minecraft.inventory.container.Container; import net.minecraft.inventory.ItemStackHelper; import net.minecraft.inventory.InventoryHelper; import net.minecraft.inventory.ISidedInventory; import net.minecraft.entity.player.ServerPlayerEntity; import net.minecraft.entity.player.PlayerInventory; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.block.material.Material; import net.minecraft.block.SoundType; import net.minecraft.block.BlockState; import net.minecraft.block.Block; import javax.annotation.Nullable; import java.util.HashMap; import java.util.Map; import java.util.stream.IntStream; import java.util.List; import java.util.Collections; import java.util.stream.Stream; import io.netty.buffer.Unpooled; import com.putopug.combat7.gui.CraftoxUIGui; import com.putopug.combat7.Combat7Stuff; @Combat7Stuff.ModElement.Tag public class CraftoxBlock extends Combat7Stuff.ModElement { @ObjectHolder("combat7:craftox") public static final Block block = null; @ObjectHolder("combat7:craftox") public static final TileEntityType<CraftoxTI> tileEntityType = null; public CraftoxBlock(Combat7Stuff instance) { super(instance, 5); FMLJavaModLoadingContext.get().getModEventBus().register(new CraftoxTIRegHandler()); } @Override public void initElements() { elements.blocks.add(() -> new BlockCus()); elements.items.add(() -> new BlockItem(block, new Item.Properties().group(itemGroups.BLOCKS)).setRegistryName(block.getRegistryName())); } private static class CraftoxTIRegHandler { @SubscribeEvent public void registerTileEntity(RegistryEvent.Register<TileEntityType<?>> event) { event.getRegistry().register(TileEntityType.Builder.create(CraftoxTI::new, block).build(null).setRegistryName("craftox")); } } public static class BlockCus extends Block { public static final DirectionProperty HOR_FACE = BlockStateProperties.HORIZONTAL_FACING; protected static final Map<Direction, VoxelShape> SHAPES = new HashMap<Direction,VoxelShape>(); public BlockCus() { super(Block.Properties.create(Material.WOOD).sound(SoundType.CHAIN).hardnessAndResistance(1.05f, 10.5f).setLightLevel(s -> 1) .harvestLevel(1).harvestTool(ToolType.AXE).slipperiness(0.7f)); setRegistryName("craftox"); this.setDefaultState(this.stateContainer.getBaseState().with(HOR_FACE, Direction.NORTH)); runCalc(Stream.of( Block.makeCuboidShape(0, 14, 0, 16, 17, 16), Block.makeCuboidShape(0, 0, 0, 16, 1, 16), Block.makeCuboidShape(13, 1, 0, 16, 14, 3), Block.makeCuboidShape(0, 1, 0, 3, 14, 3), Block.makeCuboidShape(0, 1, 13, 3, 14, 16), Block.makeCuboidShape(13, 1, 13, 16, 14, 16) ).reduce((v1, v2) -> {return VoxelShapes.combineAndSimplify(v1, v2, IBooleanFunction.OR);}).get()); } @SuppressWarnings("deprecation") @Override public BlockState mirror(BlockState state, Mirror mirrorIn) { return state.rotate(mirrorIn.toRotation(state.get(HOR_FACE))); } @Override public BlockState rotate(BlockState state, IWorld world, BlockPos pos, Rotation direction) { return state.with(HOR_FACE, direction.rotate(state.get(HOR_FACE))); } @Nullable @Override public BlockState getStateForPlacement(BlockItemUseContext context) { return this.getDefaultState().with(HOR_FACE, context.getPlacementHorizontalFacing().getOpposite()); } @Override protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder) { super.fillStateContainer(builder); builder.add(HOR_FACE); } @Override public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) { return SHAPES.get(state.get(HOR_FACE)); } protected static void calculateShapes(Direction to, VoxelShape shape) { VoxelShape[] buffer = new VoxelShape[] { shape, VoxelShapes.empty() }; int times = (to.getHorizontalIndex() - Direction.NORTH.getHorizontalIndex() + 4) % 4; for (int i = 0; i < times; i++) { buffer[0].forEachBox((minX, minY, minZ, maxX, maxY, maxZ) -> buffer[1] = VoxelShapes.or(buffer[1], VoxelShapes.create(1 - maxZ, minY, minX, 1 - minZ, maxY, maxX))); buffer[0] = buffer[1]; buffer[1] = VoxelShapes.empty(); } SHAPES.put(to, buffer[0]); } protected void runCalc(VoxelShape shape) { for (Direction direction : Direction.values()) { calculateShapes(direction, shape); } } @Override public List<ItemStack> getDrops(BlockState state, LootContext.Builder builder) { List<ItemStack> dropsOriginal = super.getDrops(state, builder); if (!dropsOriginal.isEmpty()) return dropsOriginal; return Collections.singletonList(new ItemStack(this, 1)); } @Override public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity entity, Hand hand, BlockRayTraceResult hit) { super.onBlockActivated(state, world, pos, entity, hand, hit); int x = pos.getX(); int y = pos.getY(); int z = pos.getZ(); if (entity instanceof ServerPlayerEntity) { NetworkHooks.openGui((ServerPlayerEntity) entity, new INamedContainerProvider() { @Override public ITextComponent getDisplayName() { return new StringTextComponent("Craftox"); } @Override public Container createMenu(int id, PlayerInventory inventory, PlayerEntity player) { return new CraftoxUIGui.GuiContainerMod(id, inventory, new PacketBuffer(Unpooled.buffer()).writeBlockPos(new BlockPos(x, y, z))); } }, new BlockPos(x, y, z)); } return ActionResultType.SUCCESS; } @Override public INamedContainerProvider getContainer(BlockState state, World worldIn, BlockPos pos) { TileEntity tileEntity = worldIn.getTileEntity(pos); return tileEntity instanceof INamedContainerProvider ? (INamedContainerProvider) tileEntity : null; } @Override public boolean hasTileEntity(BlockState state) { return true; } @Override public TileEntity createTileEntity(BlockState state, IBlockReader world) { return new CraftoxTI(); } @Override public boolean eventReceived(BlockState state, World world, BlockPos pos, int eventID, int eventParam) { super.eventReceived(state, world, pos, eventID, eventParam); TileEntity tileentity = world.getTileEntity(pos); return tileentity == null ? false : tileentity.receiveClientEvent(eventID, eventParam); } @Override public void onReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean isMoving) { if (state.getBlock() != newState.getBlock()) { TileEntity tileentity = world.getTileEntity(pos); if (tileentity instanceof CraftoxTI) { InventoryHelper.dropInventoryItems(world, pos, (CraftoxTI) tileentity); world.updateComparatorOutputLevel(pos, this); } super.onReplaced(state, world, pos, newState, isMoving); } } @Override public boolean hasComparatorInputOverride(BlockState state) { return true; } @Override public int getComparatorInputOverride(BlockState blockState, World world, BlockPos pos) { TileEntity tileentity = world.getTileEntity(pos); if (tileentity instanceof CraftoxTI) return Container.calcRedstoneFromInventory((CraftoxTI) tileentity); else return 0; } } public static class CraftoxTI extends LockableLootTileEntity implements ISidedInventory { private NonNullList<ItemStack> stacks = NonNullList.<ItemStack>withSize(0, ItemStack.EMPTY); protected CraftoxTI() { super(tileEntityType); } @Override public void read(BlockState blockState, CompoundNBT compound) { super.read(blockState, compound); if (!this.checkLootAndRead(compound)) { this.stacks = NonNullList.withSize(this.getSizeInventory(), ItemStack.EMPTY); } ItemStackHelper.loadAllItems(compound, this.stacks); } @Override public CompoundNBT write(CompoundNBT compound) { super.write(compound); if (!this.checkLootAndWrite(compound)) { ItemStackHelper.saveAllItems(compound, this.stacks); } return compound; } @Override public SUpdateTileEntityPacket getUpdatePacket() { return new SUpdateTileEntityPacket(this.pos, 0, this.getUpdateTag()); } @Override public CompoundNBT getUpdateTag() { return this.write(new CompoundNBT()); } @Override public void onDataPacket(NetworkManager net, SUpdateTileEntityPacket pkt) { this.read(this.getBlockState(), pkt.getNbtCompound()); } @Override public int getSizeInventory() { return stacks.size(); } @Override public boolean isEmpty() { for (ItemStack itemstack : this.stacks) if (!itemstack.isEmpty()) return false; return true; } @Override public ITextComponent getDefaultName() { return new StringTextComponent("craftox"); } @Override public int getInventoryStackLimit() { return 64; } @Override public Container createMenu(int id, PlayerInventory player) { return new CraftoxUIGui.GuiContainerMod(id, player, new PacketBuffer(Unpooled.buffer()).writeBlockPos(this.getPos())); } @Override public ITextComponent getDisplayName() { return new StringTextComponent("Craftox"); } @Override protected NonNullList<ItemStack> getItems() { return this.stacks; } @Override protected void setItems(NonNullList<ItemStack> stacks) { this.stacks = stacks; } @Override public boolean isItemValidForSlot(int index, ItemStack stack) { return true; } @Override public int[] getSlotsForFace(Direction side) { return IntStream.range(0, this.getSizeInventory()).toArray(); } @Override public boolean canInsertItem(int index, ItemStack stack, @Nullable Direction direction) { return this.isItemValidForSlot(index, stack); } @Override public boolean canExtractItem(int index, ItemStack stack, Direction direction) { return true; } private final LazyOptional<? extends IItemHandler>[] handlers = SidedInvWrapper.create(this, Direction.values()); @Override public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction facing) { if (!this.removed && facing != null && capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) return handlers[facing.ordinal()].cast(); return super.getCapability(capability, facing); } @Override public void remove() { super.remove(); for (LazyOptional<? extends IItemHandler> handler : handlers) handler.invalidate(); } } }
  3. @samjviana Here @Override public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity entity, Hand hand, BlockRayTraceResult hit) { super.onBlockActivated(state, world, pos, entity, hand, hit); int x = pos.getX(); int y = pos.getY(); int z = pos.getZ(); if (entity instanceof ServerPlayerEntity) { NetworkHooks.openGui((ServerPlayerEntity) entity, new INamedContainerProvider() { @Override public ITextComponent getDisplayName() { return new StringTextComponent("Craftox"); } @Override public Container createMenu(int id, PlayerInventory inventory, PlayerEntity player) { return new CraftoxUIGui.GuiContainerMod(id, inventory, new PacketBuffer(Unpooled.buffer()).writeBlockPos(new BlockPos(x, y, z))); } }, new BlockPos(x, y, z)); } return ActionResultType.SUCCESS; }
  4. I made a GUI, it worked fine until yesterday but today i get error AL lib: (EE) alc_cleanup: 1 device not closed when i open my GUI. It seems like a sound related issue. Latest.log- [06Mar2021 14:45:55.522] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20201102.104115, --fml.mcVersion, 1.16.4, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 35.1.4, --version, MOD_DEV, --assetIndex, 1.16, --assetsDir, C:\Users\Murali\.gradle\caches\forge_gradle\assets, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}] [06Mar2021 14:45:55.530] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.6+85+master.325de55 starting: java version 1.8.0_261 by Oracle Corporation [06Mar2021 14:45:58.401] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [06Mar2021 14:45:58.499] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/Murali/.gradle/caches/modules-2/files-2.1/org.spongepowered/mixin/0.8.2/1cf212283d26f706fd3074318870bebd14d2a9ed/mixin-0.8.2.jar Service=ModLauncher Env=CLIENT [06Mar2021 14:46:04.519] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmluserdevclient' with arguments [--version, MOD_DEV, --gameDir, ., --assetsDir, C:\Users\Murali\.gradle\caches\forge_gradle\assets, --assetIndex, 1.16, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}] [06Mar2021 14:46:30.984] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [06Mar2021 14:46:33.501] [Render thread/ERROR] [net.minecraft.client.Minecraft/]: Failed to verify authentication com.mojang.authlib.exceptions.AuthenticationUnavailableException: null at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.checkPrivileges(YggdrasilSocialInteractionsService.java:97) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService.<init>(YggdrasilSocialInteractionsService.java:40) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.createSocialInteractionsService(YggdrasilAuthenticationService.java:152) ~[authlib-2.1.28.jar:?] at net.minecraft.client.Minecraft.func_244735_a(Minecraft.java:556) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.Minecraft.<init>(Minecraft.java:388) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.main.Main.main(Main.java:149) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_261] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_261] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_261] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_261] at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] [06Mar2021 14:46:33.540] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Dev [06Mar2021 14:46:34.543] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.2.2 build 10 [06Mar2021 14:46:40.786] [modloading-worker-1/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 35.1.4, for MC 1.16.4 with MCP 20201102.104115 [06Mar2021 14:46:40.794] [modloading-worker-1/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v35.1.4 Initialized [06Mar2021 14:46:45.781] [Render thread/WARN] [net.minecraftforge.fml.DeferredWorkQueue/LOADING]: Mod 'combat7' took 1.436 s to run a deferred task. [06Mar2021 14:47:10.604] [Render thread/INFO] [com.mojang.text2speech.NarratorWindows/]: Narrator library for x64 successfully loaded [06Mar2021 14:47:12.277] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, Mod Resources [06Mar2021 14:47:13.362] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [combat7] Starting version check at https://raw.githubusercontent.com/PugsMods/Combat7/master/src/main/java/com/putopug/combat7/update/update.json [06Mar2021 14:47:14.619] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [combat7] Found status: UP_TO_DATE Current: 1.2.3 Target: null [06Mar2021 14:47:14.680] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [06Mar2021 14:47:16.247] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: UP_TO_DATE Current: 35.1.4 Target: null [06Mar2021 14:47:54.144] [Worker-Main-12/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: combat7:blockstates/speed_block.json: java.io.FileNotFoundException: combat7:blockstates/speed_block.json [06Mar2021 14:47:54.145] [Worker-Main-12/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'combat7:blockstates/speed_block.json' missing model for variant: 'combat7:speed_block#' [06Mar2021 14:47:54.146] [Worker-Main-12/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: combat7:blockstates/dirtee_block.json: java.io.FileNotFoundException: combat7:blockstates/dirtee_block.json [06Mar2021 14:47:54.146] [Worker-Main-12/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Exception loading blockstate definition: 'combat7:blockstates/dirtee_block.json' missing model for variant: 'combat7:dirtee_block#' [06Mar2021 14:48:00.311] [Worker-Main-12/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'combat7:speed_block#inventory' referenced from: combat7:speed_block#inventory: java.io.FileNotFoundException: combat7:models/item/speed_block.json [06Mar2021 14:48:01.166] [Worker-Main-12/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to resolve texture reference: #missing in combat7:block/craftox [06Mar2021 14:48:01.166] [Worker-Main-12/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to resolve texture reference: #missing in combat7:item/craftox [06Mar2021 14:48:09.883] [Render thread/INFO] [net.minecraft.client.audio.SoundSystem/]: OpenAL initialized. [06Mar2021 14:48:09.884] [Render thread/INFO] [net.minecraft.client.audio.SoundEngine/SOUNDS]: Sound engine started [06Mar2021 14:48:10.233] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x128x0 jei:textures/atlas/gui.png-atlas [06Mar2021 14:48:10.235] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas [06Mar2021 14:48:10.295] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x128x4 minecraft:textures/atlas/signs.png-atlas [06Mar2021 14:48:10.296] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas [06Mar2021 14:48:10.298] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas [06Mar2021 14:48:10.300] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas [06Mar2021 14:48:10.301] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas [06Mar2021 14:48:10.303] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas [06Mar2021 14:48:11.425] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas [06Mar2021 14:48:11.430] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas [06Mar2021 14:48:11.431] [Render thread/INFO] [net.minecraft.client.renderer.texture.AtlasTexture/]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas [06Mar2021 14:48:14.524] [Realms Notification Availability checker #1/INFO] [com.mojang.realmsclient.client.RealmsClient/]: Could not authorize you against Realms server: Invalid session id [06Mar2021 14:49:58.232] [Render thread/INFO] [net.minecraft.world.storage.SaveFormat/]: Attempt 1... [06Mar2021 14:50:16.240] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [06Mar2021 14:50:16.241] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [06Mar2021 14:50:16.242] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [06Mar2021 14:50:16.244] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [06Mar2021 14:50:16.245] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [06Mar2021 14:50:16.258] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, main, forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar, jei-1.16.4-7.6.1.71_mapped_snapshot_20201028-1.16.3.jar [06Mar2021 14:50:27.210] [Render thread/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 7 recipes [06Mar2021 14:50:33.412] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 929 advancements [06Mar2021 14:50:48.205] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498] [06Mar2021 14:50:48.206] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [06Mar2021 14:50:48.207] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0] [06Mar2021 14:50:48.208] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498] [06Mar2021 14:50:48.211] [Render thread/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0] [06Mar2021 14:50:48.212] [Render thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: Default, main, forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar, jei-1.16.4-7.6.1.71_mapped_snapshot_20201028-1.16.3.jar [06Mar2021 14:50:56.214] [Render thread/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 7 recipes [06Mar2021 14:51:01.447] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 929 advancements [06Mar2021 14:51:03.461] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD' [06Mar2021 14:51:03.612] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Starting integrated minecraft server version 1.16.4 [06Mar2021 14:51:03.613] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Generating keypair [06Mar2021 14:51:03.858] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Configuration file .\saves\New World\serverconfig\forge-server.toml is not correct. Correcting [06Mar2021 14:51:03.864] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server was corrected from null to SimpleCommentedConfig:{} [06Mar2021 14:51:03.865] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.removeErroringEntities was corrected from null to false [06Mar2021 14:51:03.866] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.removeErroringTileEntities was corrected from null to false [06Mar2021 14:51:03.866] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fullBoundingBoxLadders was corrected from null to false [06Mar2021 14:51:03.867] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.zombieBaseSummonChance was corrected from null to 0.1 [06Mar2021 14:51:03.868] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.zombieBabyChance was corrected from null to 0.05 [06Mar2021 14:51:03.869] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.logCascadingWorldGeneration was corrected from null to true [06Mar2021 14:51:03.869] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fixVanillaCascading was corrected from null to false [06Mar2021 14:51:03.870] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.dimensionUnloadQueueDelay was corrected from null to 0 [06Mar2021 14:51:03.870] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.treatEmptyTagsAsAir was corrected from null to false [06Mar2021 14:51:03.870] [Server thread/WARN] [net.minecraftforge.common.ForgeConfigSpec/CORE]: Incorrect key server.fixAdvancementLoading was corrected from null to true [06Mar2021 14:51:14.739] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:overworld [06Mar2021 14:51:15.074] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0% [06Mar2021 14:51:15.398] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0% [06Mar2021 14:51:15.938] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0% [06Mar2021 14:51:16.389] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0% [06Mar2021 14:51:16.911] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0% [06Mar2021 14:51:17.406] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 1% [06Mar2021 14:51:18.046] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 1% [06Mar2021 14:51:18.438] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 1% [06Mar2021 14:51:18.929] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 1% [06Mar2021 14:51:19.406] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 2% [06Mar2021 14:51:19.905] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 2% [06Mar2021 14:51:20.441] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 4% [06Mar2021 14:51:20.922] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 4% [06Mar2021 14:51:21.391] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 4% [06Mar2021 14:51:21.890] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 8% [06Mar2021 14:51:22.388] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 8% [06Mar2021 14:51:22.904] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 11% [06Mar2021 14:51:23.405] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 12% [06Mar2021 14:51:23.898] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 16% [06Mar2021 14:51:24.402] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 18% [06Mar2021 14:51:24.902] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 21% [06Mar2021 14:51:25.402] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 24% [06Mar2021 14:51:25.901] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 24% [06Mar2021 14:51:26.403] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 28% [06Mar2021 14:51:26.902] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 28% [06Mar2021 14:51:27.419] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 33% [06Mar2021 14:51:27.897] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 37% [06Mar2021 14:51:28.403] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 41% [06Mar2021 14:51:28.901] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 43% [06Mar2021 14:51:29.404] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 46% [06Mar2021 14:51:29.901] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 49% [06Mar2021 14:51:30.404] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 51% [06Mar2021 14:51:30.903] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 51% [06Mar2021 14:51:31.419] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 56% [06Mar2021 14:51:31.919] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 59% [06Mar2021 14:51:32.419] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 60% [06Mar2021 14:51:32.902] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 67% [06Mar2021 14:51:33.404] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 70% [06Mar2021 14:51:33.970] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 73% [06Mar2021 14:51:34.403] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 76% [06Mar2021 14:51:34.902] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 80% [06Mar2021 14:51:35.404] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 84% [06Mar2021 14:51:35.901] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 86% [06Mar2021 14:51:36.403] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 89% [06Mar2021 14:51:36.903] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 93% [06Mar2021 14:51:37.403] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 96% [06Mar2021 14:51:37.934] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 99% [06Mar2021 14:51:38.035] [Server thread/INFO] [com.putopug.combat7.combat7/]: HELLO from server starting [06Mar2021 14:51:38.037] [Render thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Time elapsed: 23150 ms [06Mar2021 14:51:38.829] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Changing view distance to 11, from 10 [06Mar2021 14:51:41.876] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2191ms or 43 ticks behind [06Mar2021 14:51:52.414] [Render thread/WARN] [com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService/]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@33060020[id=380df991-f603-344c-a090-369bad2a924a,name=Dev,properties={},legacy=false] com.mojang.authlib.exceptions.AuthenticationUnavailableException: Cannot contact authentication server at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:125) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:99) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:186) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:179) ~[authlib-2.1.28.jar:?] at net.minecraft.client.Minecraft.loadWorld(Minecraft.java:1839) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.Minecraft.lambda$loadWorld$29(Minecraft.java:1846) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.Minecraft.lambda$deleteWorld$31(Minecraft.java:1881) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.gui.screen.ConfirmScreen.lambda$init$0(ConfirmScreen.java:43) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.gui.widget.button.Button.onPress(Button.java:26) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.gui.widget.button.AbstractButton.onClick(AbstractButton.java:18) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.gui.widget.Widget.mouseClicked(Widget.java:136) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.gui.INestedGuiEventHandler.mouseClicked(INestedGuiEventHandler.java:31) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.MouseHelper.lambda$mouseButtonCallback$0(MouseHelper.java:92) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.gui.screen.Screen.wrapScreenError(Screen.java:427) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.MouseHelper.mouseButtonCallback(MouseHelper.java:90) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.MouseHelper.lambda$null$4(MouseHelper.java:185) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.execute(ThreadTaskExecutor.java:86) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.MouseHelper.lambda$registerCallbacks$5(MouseHelper.java:184) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:build 10] at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:build 10] at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101) ~[lwjgl-glfw-3.2.2.jar:build 10] at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:93) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.MainWindow.flipFrame(MainWindow.java:305) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1022) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.Minecraft.run(Minecraft.java:612) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_261] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_261] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_261] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_261] at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.6.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.6.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.6.jar:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.6.jar:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.6.jar:?] at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105) [forge-1.16.4-35.1.4_mapped_snapshot_20201028-1.16.3-recomp.jar:?] Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alert.createSSLException(Alert.java:131) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.fatal(TransportContext.java:327) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.fatal(TransportContext.java:270) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.fatal(TransportContext.java:265) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:646) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:465) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:361) ~[?:1.8.0_261] at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:376) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:451) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:428) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.dispatch(TransportContext.java:184) ~[?:1.8.0_261] at sun.security.ssl.SSLTransport.decode(SSLTransport.java:154) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1198) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1107) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:400) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:372) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:587) ~[?:1.8.0_261] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268) ~[?:1.8.0_261] at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:140) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:104) ~[authlib-2.1.28.jar:?] ... 36 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439) ~[?:1.8.0_261] at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306) ~[?:1.8.0_261] at sun.security.validator.Validator.validate(Validator.java:271) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:312) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:221) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:128) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:630) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:465) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:361) ~[?:1.8.0_261] at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:376) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:451) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:428) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.dispatch(TransportContext.java:184) ~[?:1.8.0_261] at sun.security.ssl.SSLTransport.decode(SSLTransport.java:154) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1198) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1107) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:400) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:372) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:587) ~[?:1.8.0_261] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268) ~[?:1.8.0_261] at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:140) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:104) ~[authlib-2.1.28.jar:?] ... 36 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) ~[?:1.8.0_261] at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) ~[?:1.8.0_261] at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) ~[?:1.8.0_261] at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434) ~[?:1.8.0_261] at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306) ~[?:1.8.0_261] at sun.security.validator.Validator.validate(Validator.java:271) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:312) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:221) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:128) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:630) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:465) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:361) ~[?:1.8.0_261] at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:376) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:451) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:428) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.dispatch(TransportContext.java:184) ~[?:1.8.0_261] at sun.security.ssl.SSLTransport.decode(SSLTransport.java:154) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1198) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1107) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:400) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:372) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:587) ~[?:1.8.0_261] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268) ~[?:1.8.0_261] at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:140) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:104) ~[authlib-2.1.28.jar:?] ... 36 more [06Mar2021 14:51:52.818] [Netty Local Client IO #0/INFO] [net.minecraftforge.fml.network.NetworkHooks/]: Connected to a modded server. [06Mar2021 14:51:53.002] [Server thread/INFO] [net.minecraftforge.common.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.advancements.PlayerAdvancements@7f8cde47 [06Mar2021 14:51:53.096] [Server thread/INFO] [net.minecraft.server.management.PlayerList/]: Dev[local:E:efa0dcdb] logged in with entity id 408 at (-172.5, 66.0, -136.5) [06Mar2021 14:51:53.421] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Dev joined the game [06Mar2021 14:51:56.992] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game... [06Mar2021 14:51:57.285] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld [06Mar2021 14:51:57.335] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Starting JEI... [06Mar2021 14:52:00.602] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient list... [06Mar2021 14:52:00.699] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient list took 93.98 ms [06Mar2021 14:52:00.699] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient filter... [06Mar2021 14:52:03.022] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building ingredient filter took 2.322 s [06Mar2021 14:52:03.022] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building bookmarks... [06Mar2021 14:52:03.046] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building bookmarks took 22.43 ms [06Mar2021 14:52:03.046] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building recipe registry... [06Mar2021 14:52:03.639] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building recipe registry took 592.2 ms [06Mar2021 14:52:03.787] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building runtime... [06Mar2021 14:52:04.765] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Building runtime took 977.7 ms [06Mar2021 14:52:04.961] [Render thread/INFO] [mezz.jei.util.LoggedTimer/]: Starting JEI took 7.624 s [06Mar2021 14:52:06.103] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether [06Mar2021 14:52:06.117] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end [06Mar2021 14:52:06.145] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/combat7:funky_world [06Mar2021 14:52:06.825] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 9990ms or 199 ticks behind [06Mar2021 14:52:06.936] [Render thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 0 advancements [06Mar2021 14:52:11.544] [Worker-Main-22/WARN] [com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService/]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@55acc180[id=380df991-f603-344c-a090-369bad2a924a,name=Dev,properties={},legacy=false] com.mojang.authlib.exceptions.AuthenticationUnavailableException: Cannot contact authentication server at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:125) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:99) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:186) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:61) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:58) ~[authlib-2.1.28.jar:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) ~[guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) ~[guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) ~[guava-21.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) ~[guava-21.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:4154) ~[guava-21.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) ~[guava-21.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) ~[guava-21.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) ~[guava-21.0.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:176) ~[authlib-2.1.28.jar:?] at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:2249) ~[forge:?] at net.minecraft.client.resources.SkinManager.lambda$loadProfileTextures$4(SkinManager.java:102) ~[forge:?] at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) [?:1.8.0_261] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_261] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_261] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_261] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:172) [?:1.8.0_261] Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alert.createSSLException(Alert.java:131) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.fatal(TransportContext.java:327) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.fatal(TransportContext.java:270) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.fatal(TransportContext.java:265) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:646) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:465) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:361) ~[?:1.8.0_261] at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:376) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:451) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:428) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.dispatch(TransportContext.java:184) ~[?:1.8.0_261] at sun.security.ssl.SSLTransport.decode(SSLTransport.java:154) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1198) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1107) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:400) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:372) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:587) ~[?:1.8.0_261] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268) ~[?:1.8.0_261] at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:140) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:104) ~[authlib-2.1.28.jar:?] ... 20 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439) ~[?:1.8.0_261] at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306) ~[?:1.8.0_261] at sun.security.validator.Validator.validate(Validator.java:271) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:312) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:221) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:128) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:630) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:465) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:361) ~[?:1.8.0_261] at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:376) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:451) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:428) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.dispatch(TransportContext.java:184) ~[?:1.8.0_261] at sun.security.ssl.SSLTransport.decode(SSLTransport.java:154) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1198) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1107) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:400) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:372) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:587) ~[?:1.8.0_261] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268) ~[?:1.8.0_261] at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:140) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:104) ~[authlib-2.1.28.jar:?] ... 20 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) ~[?:1.8.0_261] at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) ~[?:1.8.0_261] at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) ~[?:1.8.0_261] at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434) ~[?:1.8.0_261] at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306) ~[?:1.8.0_261] at sun.security.validator.Validator.validate(Validator.java:271) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:312) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:221) ~[?:1.8.0_261] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:128) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(CertificateMessage.java:630) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(CertificateMessage.java:465) ~[?:1.8.0_261] at sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(CertificateMessage.java:361) ~[?:1.8.0_261] at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:376) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:451) ~[?:1.8.0_261] at sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:428) ~[?:1.8.0_261] at sun.security.ssl.TransportContext.dispatch(TransportContext.java:184) ~[?:1.8.0_261] at sun.security.ssl.SSLTransport.decode(SSLTransport.java:154) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1198) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1107) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:400) ~[?:1.8.0_261] at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:372) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:587) ~[?:1.8.0_261] at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570) ~[?:1.8.0_261] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[?:1.8.0_261] at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268) ~[?:1.8.0_261] at com.mojang.authlib.HttpAuthenticationService.performGetRequest(HttpAuthenticationService.java:140) ~[authlib-2.1.28.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:104) ~[authlib-2.1.28.jar:?] ... 20 more [06Mar2021 14:52:37.572] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 15787ms or 315 ticks behind [06Mar2021 14:52:37.824] [Render thread/INFO] [net.minecraft.client.gui.NewChatGui/]: [CHAT] [Debug]: Unable to open game mode switcher; no permission [06Mar2021 14:52:38.767] [Server thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Saving and pausing game... [06Mar2021 14:52:38.829] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld [06Mar2021 14:52:42.563] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether [06Mar2021 14:52:42.692] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end [06Mar2021 14:52:42.781] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving chunks for level 'ServerLevel[New World]'/combat7:funky_world [06Mar2021 14:52:43.483] [Render thread/INFO] [net.minecraft.network.NetworkSystem/]: Using default channel type [06Mar2021 14:52:43.576] [Render thread/INFO] [net.minecraft.server.integrated.IntegratedServer/]: Started serving on 53153 [06Mar2021 14:52:43.680] [Render thread/INFO] [net.minecraft.client.gui.NewChatGui/]: [CHAT] Local game hosted on port 53153 [06Mar2021 14:52:49.990] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: [Dev: Set own game mode to Creative Mode] [06Mar2021 14:52:50.102] [Render thread/INFO] [net.minecraft.client.gui.NewChatGui/]: [CHAT] Set own game mode to Creative Mode [06Mar2021 14:53:16.775] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 2040ms or 40 ticks behind [06Mar2021 14:53:22.579] [Server thread/FATAL] [net.minecraft.util.concurrent.ThreadTaskExecutor/]: Error executing task on Server java.lang.ArrayIndexOutOfBoundsException: 0 at java.util.Arrays$ArrayList.get(Arrays.java:3841) ~[?:1.8.0_261] at net.minecraft.util.NonNullList.get(NonNullList.java:45) ~[forge:?] at net.minecraft.tileentity.LockableLootTileEntity.getStackInSlot(LockableLootTileEntity.java:97) ~[forge:?] at net.minecraftforge.items.wrapper.InvWrapper.getStackInSlot(InvWrapper.java:68) ~[forge:?] at net.minecraftforge.items.SlotItemHandler.getStack(SlotItemHandler.java:54) ~[forge:?] at net.minecraft.inventory.container.Container.getInventory(Container.java:121) ~[forge:?] at net.minecraft.inventory.container.Container.addListener(Container.java:101) ~[forge:?] at net.minecraftforge.fml.network.NetworkHooks.openGui(NetworkHooks.java:228) ~[forge:?] at net.minecraftforge.fml.network.NetworkHooks.openGui(NetworkHooks.java:188) ~[forge:?] at com.putopug.combat7.objects.blocks.CraftoxBlock$BlockCus.onBlockActivated(CraftoxBlock.java:176) ~[?:?] at net.minecraft.block.AbstractBlock$AbstractBlockState.onBlockActivated(AbstractBlock.java:730) ~[forge:?] at net.minecraft.server.management.PlayerInteractionManager.func_219441_a(PlayerInteractionManager.java:347) ~[forge:?] at net.minecraft.network.play.ServerPlayNetHandler.processTryUseItemOnBlock(ServerPlayNetHandler.java:986) ~[forge:?] at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.processPacket(CPlayerTryUseItemOnBlockPacket.java:45) ~[forge:?] at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.processPacket(CPlayerTryUseItemOnBlockPacket.java:12) ~[forge:?] at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:19) ~[forge:?] at net.minecraft.util.concurrent.TickDelayedTask.run(TickDelayedTask.java:20) ~[forge:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.run(ThreadTaskExecutor.java:139) ~[forge:?] at net.minecraft.util.concurrent.RecursiveEventLoop.run(RecursiveEventLoop.java:22) ~[forge:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:758) ~[forge:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:159) ~[forge:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.driveOne(ThreadTaskExecutor.java:109) ~[forge:?] at net.minecraft.server.MinecraftServer.driveOneInternal(MinecraftServer.java:741) ~[forge:?] at net.minecraft.server.MinecraftServer.driveOne(MinecraftServer.java:735) ~[forge:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.drainTasks(ThreadTaskExecutor.java:97) ~[forge:?] at net.minecraft.server.MinecraftServer.runScheduledTasks(MinecraftServer.java:720) ~[forge:?] at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:667) ~[forge:?] at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:233) ~[forge:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_261] [06Mar2021 14:53:22.707] [Server thread/FATAL] [net.minecraftforge.common.ForgeMod/]: Preparing crash report with UUID 1a0eea12-5783-4e4e-a50b-c0e67c9f663e [06Mar2021 14:53:22.736] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception net.minecraft.crash.ReportedException: Ticking entity at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:888) ~[forge:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:820) ~[forge:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:84) ~[forge:?] at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:663) ~[forge:?] at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:233) ~[forge:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_261] Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at java.util.Arrays$ArrayList.get(Arrays.java:3841) ~[?:1.8.0_261] at net.minecraft.util.NonNullList.get(NonNullList.java:45) ~[forge:?] at net.minecraft.tileentity.LockableLootTileEntity.getStackInSlot(LockableLootTileEntity.java:97) ~[forge:?] at net.minecraftforge.items.wrapper.InvWrapper.getStackInSlot(InvWrapper.java:68) ~[forge:?] at net.minecraftforge.items.SlotItemHandler.getStack(SlotItemHandler.java:54) ~[forge:?] at net.minecraft.inventory.container.Container.detectAndSendChanges(Container.java:132) ~[forge:?] at net.minecraft.entity.player.ServerPlayerEntity.tick(ServerPlayerEntity.java:378) ~[forge:?] at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:623) ~[forge:?] at net.minecraft.world.World.guardEntityTick(World.java:601) ~[forge:?] at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:407) ~[forge:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:884) ~[forge:?] ... 5 more
  5. Soo you get what i want [5:38 PM] so have you seen, when people make perimeters they put it on and fly up and down their perimeters and they can see the ores more clearly as they are all blank colors [5:38 PM] and theres no xray involved [5:38 PM] and to make it toggable
  6. This Does Not MAKE Other Blocks Invis, It Makes Diamond Ore Solid Blu So Its Easier To See From A Distance, I Can PM u more details if needed
  7. THIS IS NOT AN XRAY MOD So a client requested me to make a mod which will toggle the texture of ores to a solid color when a key is pressed. i have registered the keybind but have no idea on how to change textures
  8. Minecraft:sick MC Is Sick lol
  9. Lol Yea Thnx
  10. So I Have A Mod Which I Have To Release By Tomorrow But The Recipes Don't Work Here Is The Code - https://github.com/PugsMods/Combat7 (I'm Sorry If I Ask A Lot Of Dumb questions Like This)
  11. 1.8.9 Is NOT Supported In This Forum Anymore.
  12. U Have Redstone Flux Installed But Another Mod Uses The Old API RedstoneFlux has detected that the following OLD API classes from CoFHLib are being repacked!
  13. Ok So I Tried But i dont take damage
  14. I Need To make A Block Work Like A Cactus But public void onEntityCollision(BlockState state, World worldIn, BlockPos pos, Entity entityIn) { entityIn.attackEntityFrom(DamageSource.CACTUS, 2.0F); } is depriciated any ideas? (Sorry For Bad Spelling And Organisation)
  15. Like VolcanoBlock
  16. Some Modpacks Do It
  17. no im not realeasing it i just want to test
  18. Yes, I did try to override icon_16x16.png and icon_32x32.png also tried minecraft.icns inside my mod
  19. How To Check Is The Player Has Joined A World For The First Time I Know I Have To Use Events So That I Can Give Starter Tools
  20. NVM I Found Out How To Do It
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.