Jump to content

[1.10.2] {Solved!!!} Right-Click Item for Chest-like GUI


Recommended Posts

  • Replies 116
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted
  On 1/3/2017 at 6:14 PM, diesieben07 said:

You weren't and this is not the right solution.

And copy-paste friendly helps nobody.

Sorry D': I was just trying to help, normally I don't give copy-paste stuff either but this was just... To much for my brain... And also, why is it not the right solution?
  Quote

If you do use them as a block position, you must pass in a block position.

I use this for a block, that's why I thought it had to be the coörds

Classes: 94

Lines of code: 12173

Other files: 206

Github repo: https://github.com/KokkieBeer/DeGeweldigeMod

Posted
  On 1/3/2017 at 6:17 PM, diesieben07 said:

What you need to do depends entirely on what you do in your GUI handler. How do you use the xyz values there? If you don't use them, it does not matter what you pass in, just use 0.

If you do use them as a block position, you must pass in a block position.

 

Alright. That makes me think. Since it is not a block, I don't need position, hm? So I change them to 0s.

 

Second: I realize that I was using tileentity in my ContainerTestBag. I changed all the TE stuff to my capability class, but I not have this error:

"Cannot make a static reference to the non-static method getCapability(Capability<IItemHandler>, EnumFacing) from the type TestBagCapabilities"

 

https://github.com/EscapeMC/ThingsMod-1.10.2/blob/master/src/main/java/com/github/escapemc/thingsmod/container/ContainerTestBag.java#L18

 

at there. How can I fix this as well?

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

You really need to learn some more basic Java, because you are asking questions that you should know the answer to. Do you understand the difference between a static and non-static method?

Posted
  On 1/3/2017 at 6:27 PM, diesieben07 said:

No need to be sorry. I just get aggravated about this particular topic, because I see so many people using openGui without understanding wtf it does. And it's so simple... Just 3 numbers passed to your GuiHandler.

 

  Quote
Second: I realize that I was using tileentity in my ContainerTestBag. I changed all the TE stuff to my capability class, but I not have this error:

"Cannot make a static reference to the non-static method getCapability(Capability<IItemHandler>, EnumFacing) from the type TestBagCapabilities"

 

https://github.com/EscapeMC/ThingsMod-1.10.2/blob/master/src/main/java/com/github/escapemc/thingsmod/container/ContainerTestBag.java#L18

 

at there. How can I fix this as well?

So, you realized you don't have a TE. But something has to hold the capability. Let's think, what could that be... If only there was something that represented an item...

 

How would I use and ItemStack here?

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted
  On 1/3/2017 at 6:30 PM, diesieben07 said:

ItemStack

implements

ICapabilityProvider

. You obtain the capability from it in the same way you would from a TileEntity. Or any other capability provider.

 

So what do I do here

		IItemHandler inven = TestBagCapabilities.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

  to fix this? (Or am I looking at the wrong line?)

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted
  On 1/3/2017 at 6:39 PM, diesieben07 said:

Dude... please. It is not hard.

You call

getCapability

. On the

ItemStack

.

 

I am doing this already! (I think)

 

package com.github.escapemc.thingsmod.container;

import com.github.escapemc.thingsmod.hardlib.api.internal.CommonContainer9x5;
import com.github.escapemc.thingsmod.hardlib.api.inventory.SlotItem;
import com.github.escapemc.thingsmod.items.TestBagCapabilities;
import com.github.escapemc.thingsmod.tileentity.TileEntityTestChest;

import net.minecraft.entity.player.InventoryPlayer;
import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.IItemHandler;

public class ContainerTestBag extends CommonContainer9x5 {
    private int numRows = 2;


public ContainerTestBag(InventoryPlayer inventory) {
	super(inventory, inventory, null);
	IItemHandler inven = TestBagCapabilities.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

        for (int j = 0; j < this.numRows; ++j)
        {
            for (int k = 0; k < 9; ++k)
            {
                this.addSlotToContainer(new SlotItem(inven, k + j * 9, 8 + k * 18, 12 + j * 18));
            }
        }


	}
}

Is my Container.

 

package com.github.escapemc.thingsmod.items;

import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.ICapabilitySerializable;
import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.ItemStackHandler;

public class TestBagCapabilities implements ICapabilitySerializable {

protected ItemStackHandler inputSlot;

public TestBagCapabilities() {
	inputSlot = new ItemStackHandler(18);



}

@Override
public boolean hasCapability(Capability<?> capability, EnumFacing facing) {
	return this.getCapability(capability, facing) != null;
}

@Override
public <T> T getCapability(Capability<T> capability, EnumFacing facing) {
	if(capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) {
		return (T) inputSlot;
	}
	return null;
}

@Override
public NBTBase serializeNBT() {
	NBTTagCompound NBTBase = new NBTTagCompound();
	((NBTTagCompound)NBTBase).setTag("inputSlot", inputSlot.serializeNBT());
	return NBTBase;

}

@Override
public void deserializeNBT(NBTBase nbt) {
	inputSlot.deserializeNBT(((NBTTagCompound) nbt).getCompoundTag("inputSlot"));


}


}

 

My ItemStack

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted
  On 1/3/2017 at 6:42 PM, EscapeMC said:

  Quote

Dude... please. It is not hard.

You call

getCapability

. On the

ItemStack

.

 

I am doing this already! (I think)

 

No, you're not. You're trying to call

TestBagCapabilities.getCapability

, as if it is a static method (which it isn't).

Posted
  On 1/3/2017 at 6:45 PM, Jazzable said:

  Quote

  Quote

Dude... please. It is not hard.

You call

getCapability

. On the

ItemStack

.

 

I am doing this already! (I think)

 

No, you're not. You're trying to call

TestBagCapabilities.getCapability

, as if it is a static method (which it isn't).

 

*is tearing out hair* Wait??? So then what is my itemstack? And would I use .getCapability to get the capability?

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted
  On 1/3/2017 at 6:42 PM, EscapeMC said:

  Quote

Dude... please. It is not hard.

You call

getCapability

. On the

ItemStack

.

 

I am doing this already! (I think)

 

No you're not.

 

IItemHandler inven = TestBagCapabilities.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

 

You're calling it (statically) on

TestBagCapabilities

, not on an

ItemStack

.

 

  Quote

public class TestBagCapabilities implements ICapabilitySerializable

 

My ItemStack

 

That is not an item stack, that is TestBagCapabilities which is an ICapabilitySerializable.

 

And again,

TestBagCapabilities.getCapability()

doesn't exist,

TestBagCapabilities#getCapability()

does.

 

If you want an item stack, pass the item stack from your GUI handler to your container, or get it from the player's active item.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted
  On 1/3/2017 at 6:49 PM, Draco18s said:

  Quote

  Quote

Dude... please. It is not hard.

You call

getCapability

. On the

ItemStack

.

 

I am doing this already! (I think)

 

No you're not.

 

IItemHandler inven = TestBagCapabilities.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

 

You're calling it (statically) on

TestBagCapabilities

, not on an

ItemStack

.

 

  Quote

public class TestBagCapabilities implements ICapabilitySerializable

 

My ItemStack

 

That is not an item stack, that is TestBagCapabilities which is an ICapabilitySerializable.

 

And again,

TestBagCapabilities.getCapability()

doesn't exist,

TestBagCapabilities#getCapability()

does.

 

If you want an item stack, pass the item stack from your GUI handler to your container, or get it from the player's active item.

 

Ok, this clarifies several things. Thank you Draco.

Yet still, I do not understand where my ItemStack is I need to use, and the more I look, the more confused I get.

Could you potentially go through my GitHub, highlight lines, and tell me what I need to do? I would appreciate it if you could. If not, hint me toward my next step...?

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

You need to get it from the player. 

Player#getHeldItem(EnumHand.Main)

IIRC.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

With that info, what do I need to make

		IItemHandler inven = getHeldItem(EnumHand.MAIN_HAND).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

 

Into? (Yes, I know what is far from correct right now. Iw as editing it and I forgot to go back)

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted
  On 1/3/2017 at 7:04 PM, EscapeMC said:

With that info, what do I need to make

		IItemHandler inven = getHeldItem(EnumHand.MAIN_HAND).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

 

Into? (Yes, I know what is far from correct right now. Iw as editing it and I forgot to go back)

 

You need to call

getHeldItem

on the player. You could pass the player to the constructor of your container, or get the player from the InventoryPlayer which is already in the constructor -

inventory.player

.

Posted
  On 1/3/2017 at 7:08 PM, Jazzable said:

  Quote

With that info, what do I need to make

		IItemHandler inven = getHeldItem(EnumHand.MAIN_HAND).getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

 

Into? (Yes, I know what is far from correct right now. Iw as editing it and I forgot to go back)

 

You need to call

getHeldItem

on the player. You could pass the player to the constructor of your container, or get the player from the InventoryPlayer which is already in the constructor -

inventory.player

.

 

Ok ok, so

	public ContainerTestBag(InventoryPlayer inventory) {
	super(inventory, inventory, null);
	IItemHandler inven = inventory.getCurrentItem().getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);

        for (int j = 0; j < this.numRows; ++j)
        {
            for (int k = 0; k < 9; ++k)
            {
                this.addSlotToContainer(new SlotItem(inven, k + j * 9, 8 + k * 18, 12 + j * 18));
            }
        }

  is this right?

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

So I fixed that, and ran the game. I right click it, and it just goes to my off hand.

 

ALso, the console says

[14:19:03] [Client thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_101]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_101]
at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1108) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:406) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
at GradleStart.main(GradleStart.java:26) [start/:?]
Caused by: java.lang.IndexOutOfBoundsException: Index: 46, Size: 46
at java.util.ArrayList.rangeCheck(ArrayList.java:653) ~[?:1.8.0_101]
at java.util.ArrayList.get(ArrayList.java:429) ~[?:1.8.0_101]
at net.minecraft.inventory.Container.getSlot(Container.java:127) ~[Container.class:?]
at net.minecraft.inventory.Container.putStacksInSlots(Container.java:590) ~[Container.class:?]
at net.minecraft.client.network.NetHandlerPlayClient.handleWindowItems(NetHandlerPlayClient.java:1268) ~[NetHandlerPlayClient.class:?]
at net.minecraft.network.play.server.SPacketWindowItems.processPacket(SPacketWindowItems.java:67) ~[sPacketWindowItems.class:?]
at net.minecraft.network.play.server.SPacketWindowItems.processPacket(SPacketWindowItems.java:12) ~[sPacketWindowItems.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_101]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_101]
at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?]
... 15 more

 

I also realize this:

 

	@Override
public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn,
		EnumHand hand) {
	playerIn.openGui(Main.instance, GuiHandler.TEST_BAG, worldIn, 0, 0, 0);
	return super.onItemRightClick(itemStackIn, worldIn, playerIn, hand);
}	

 

WHat do i need to change any of this to to fix it? (I forgot to rid the code of that second one with return super... And I do not know what to change all of this to)

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted
  On 1/3/2017 at 7:25 PM, Jazzable said:

Does that console error happen when you use your item, or regardless of the item?

 

Yes, I notice this now

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted

EDIT: I think i have fixed the onItemRightClicked.

 

I have been tinkering around, but no success with this. And now my chest isn't working either!

 

If I right click the test_bag, it disappears. Right clicking a normal item now does nothing (good), and I can't use my chest. It gives me this error in console:

 

[14:59:26] [server thread/FATAL]: Error executing task
java.util.concurrent.ExecutionException: java.lang.NullPointerException
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_101]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_101]
at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:742) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:687) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:536) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_101]
Caused by: java.lang.NullPointerException
at com.github.escapemc.thingsmod.container.ContainerTestChest.<init>(ContainerTestChest.java:19) ~[ContainerTestChest.class:?]
at com.github.escapemc.thingsmod.handlers.GuiHandler.getServerGuiElement(GuiHandler.java:29) ~[GuiHandler.class:?]
at net.minecraftforge.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:251) ~[NetworkRegistry.class:?]
at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:87) ~[FMLNetworkHandler.class:?]
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2723) ~[EntityPlayer.class:?]
at com.github.escapemc.thingsmod.blocks.test_chest.onBlockActivated(test_chest.java:64) ~[test_chest.class:?]
at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:477) ~[PlayerInteractionManager.class:?]
at net.minecraft.network.NetHandlerPlayServer.processRightClickBlock(NetHandlerPlayServer.java:706) ~[NetHandlerPlayServer.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:68) ~[CPacketPlayerTryUseItemOnBlock.class:?]
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:13) ~[CPacketPlayerTryUseItemOnBlock.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_101]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_101]
at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?]
... 5 more

 

Right clicking test_bag gives same error as earlier

 

GitHub updated. https://github.com/EscapeMC/ThingsMod-1.10.2/tree/master/src/main/java/com/github/escapemc/thingsmod

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Posted
  On 1/3/2017 at 8:03 PM, Jazzable said:

Can you be more specific about what is going wrong? Does your GUI open? Do you get a console error or crash?

 

I just edited last message, but no Gui opens

 

EDIT: I ran the game again to grab the console for both again:

 

 

  Reveal hidden contents

 

 

 

I Love To Help People. Unless They Are The Kind Of People Who Just Doesn't Know Anything. Those People Need Some Serious Help. This Could Help But......

https://www.youtube.com/watch?v=6t0GlXWx_PY

 

ThingsMod Git: https://github.com/EscapeMC/Things-Mod-1.10.2

 

TeamMadness Mod Git: https://github.com/EscapeMC/TeamMadness-Mod-1.10.2

 

If I somehow help you, please click the "Thank You" button. If I am a total waste of time, please click the "Applaud" button.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements




  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Keep on using the original Launcher Run Vanilla 1.12.2 once and close the game Download Optifine and run optifine as installer (click on the optifine jar) Start the launcher and make sure the Optifine profile is selected - then test it again  
    • Hi everyone, I’m hoping to revisit an old version of Minecraft — specifically around Beta 1.7.3 — for nostalgia’s sake. I’ve heard you can do this through the official Minecraft Launcher, but I’m unsure how to do it safely without affecting my current installation or save files. Are there any compatibility issues I should watch out for when switching between versions? Would really appreciate any tips or advice from anyone who’s done this before! – Adam
    • hello! i was trying to recreate item-in-hand feature for my custom mob. i figured out that my mob needs a custom iteminhandlayer. i created it - but the main problem is.. well.. you can see all on screenshots any idea how i can fix that? is there any implemented method to render the item perfect to hand? public void render(@NotNull PoseStack pPoseStack, @NotNull MultiBufferSource pBufferSource, int pPackedLight, @NotNull TuneGolemRenderState pRenderState, float pYRot, float pXRot) { ItemStackRenderState item = pRenderState.heldItem; if (!item.isEmpty()) { pPoseStack.pushPose(); ModelPart leftArm = this.getParentModel().leftArm; pPoseStack.translate(0.35,0.5,-1.25); pPoseStack.mulPose(Axis.XP.rotationDegrees(180.0F)); pPoseStack.mulPose(Axis.YP.rotationDegrees(90.0F)); leftArm.translateAndRotate(pPoseStack); // pPoseStack.translate(0,0,0); leftArm.translateAndRotate(pPoseStack); if (TuneGolemRenderState.hornPlaying) { pPoseStack.translate(0, -0.5, 0.65); pPoseStack.scale(1.25F,1.25F,1.25F); } // Minecraft.getInstance().player.displayClientMessage(Component.literal(leftArm.xRot + " " + leftArm.yRot + " " + leftArm.zRot), true); item.render(pPoseStack, pBufferSource, pPackedLight, OverlayTexture.NO_OVERLAY); pPoseStack.popPose(); // -1.0F, -2.0F, -3.0F } }  
    • I checked for any driver updates, but no new updates were found
    • Maybe it refers to an issue with the system - check for CPU/GPU driver updates
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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