Jump to content

PintsizedSix40

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by PintsizedSix40

  1. Hello, I am trying to create a machine block that has a gui, and have so far managed to create everything, except it seems to have a glitch with it. I can open the GUI just fine, but when I do the GUI's slots are scaled much larger than my container's and it doesn't align with them. The texture I am using is a small modification of the furnace texture, so it should work fine. Here I'll attach the code for my container and GUI, as well as the texture and a screenshot of my game.
  2. I'm trying to use a ClickEvent on the sign, so when a player riht clicks it runs a command. Heres a command of what I'm trying to do: /give @p sign 1 0 {BlockEntityTag:{Text1:"{\"clickEvent\":{\"action\":\"run_command\",\"value\":\"say hi\"}}"},display:{Name:"Custom Sign"}}
  3. Hi, I'm trying to add a click event to a sign, so when i right click the sign, it will run a command. I have everything ready except the nbt data (nbttagcompound.setTag());) and I'm not sure what to put in it. Heres my nbt code: NBTTagCompound nbttagcompound = new NBTTagCompound(); nbttagcompound.setTag()); itemstack.writeToNBT(nbttagcompound); itemstack.setTagInfo("BlockEntityTag", nbttagcompound); Thanks.
×
×
  • Create New...

Important Information

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