2D (item) GUI block textures

Started by Friday_D0nat on

Topic category: Help with modding (Java Edition)

Last seen on 17:18, 1. Dec 2023
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
2D (item) GUI block textures
Mon, 04/06/2020 - 06:58 (edited)

Is there a way to make a placeable block appear (render) as a 2D flat item in a GUI? Like the campfire... it looks like an item in a GUI, but it's a block, and it can be placed.

And if it's possible can it be done with weapons items etc.. 

Can somebody help?

(solution:

{
  "parent": "item/handheld",
  "textures": {
    "layer0": "(your mods name):items/(texture name)"
  }
}

paste this in the render code, unlock code (block id).json

Edited by Friday_D0nat on Mon, 04/06/2020 - 06:58
Last seen on 17:18, 1. Dec 2023
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Now that I think of it, I…
Sun, 04/05/2020 - 15:33

Now that I think of it, I could look into the campfires .json model file, and try to reverse engineer it.

But still, any help is welcome.

Last seen on 15:52, 24. Feb 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
create a item,create the…
Mon, 04/06/2020 - 10:47

create a item,create the block.Create the right click on block procedure.Use do if.On the if statement check if block at x,y+1,z =air.Get another if statement.on that check if player not in creative mode,then remove 1 of your block item from inventory 

Last seen on 19:21, 26. Mar 2024
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That only works if your…
Sun, 04/19/2020 - 19:38

That only works if your placing it on the ground