2D (item) GUI block textures

Started by Friday_D0nat on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Jan 2020
Points:
669

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 19
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
Active 1 year ago
Joined Jan 2020
Points:
669

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 19
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.

Active 1 year ago
Joined Jan 2020
Points:
861

User statistics:

  • Modifications: 2
  • Forum topics: 23
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 174
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 

Active 3 hours ago
Joined Dec 2018
Points:
1352

User statistics:

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

That only works if your placing it on the ground