Started by
Friday_D0nat
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.
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
That only works if your placing it on the ground