Item behave like block? (string, flower pot, torch)

Started by Yusufhum3 on

Topic category: Troubleshooting, bugs, and solutions

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item behave like block? (string, flower pot, torch)
Sun, 02/16/2020 - 09:10 (edited)

How do you make an item that places a block like string, Flower pot, torch signs item Frame in the gui it is a 2D item but when righclicked on a block it places a block and I dont mean a  procedure with X Y+1 Z how do you make it like a real block but have a 2D item like texture? Or how do you check which side of a block (Front,Back,Top,Bottom,left,right) is rightclicked at 

Edited by Yusufhum3 on Sun, 02/16/2020 - 09:10
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hi first you want to find…
Mon, 02/03/2020 - 22:53

hi first you want to find the blocks item model.json (found in the mcreator file browser in resources/models/item/"blockname".json) then paste this code in making sure to change the words "modid" with your modid and "texture" with the texture you want and replacing everything in the file with this code

{
    "parent": "item/generated",
    "textures": {
        "layer0": "modid/items/texture"
    }
}

and that should do it, if it doesn't make a reply here

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
either the reply above or…
Fri, 02/14/2020 - 05:56

either the reply above or you can make a procedure of the item being rightclicked on a block and placing a hidden in creative tabs block thats not actually the item but i'd prefer the simple texture swap method

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It doesnt work this is what…
Sat, 02/15/2020 - 10:36

It doesnt work this is what I have in the json:

{
    "credit": "Made with Blockbench",
    "ambientocclusion": false,
    "textures": {
        "lever": "Desktop:block/lever",
        "particle": "Desktop:Redstone Addons/Redreceive",
        "2_base": "Desktop:Redstone Addons/Redreceive"
    },
    "elements": [
        {
            "from": [5, 4, 13],
            "to": [11, 12, 16],
            "rotation": {"angle": 0, "axis": "x", "origin": [8, 8, 15]},
            "faces": {
                "north": {"uv": [5, 4, 11, 12], "rotation": 180, "texture": "#2_base"},
                "east": {"uv": [4, 0, 12, 3], "rotation": 90, "texture": "#2_base"},
                "south": {"uv": [5, 4, 11, 12], "texture": "#2_base", "cullface": "down"},
                "west": {"uv": [4, 0, 12, 3], "rotation": 270, "texture": "#2_base"},
                "up": {"uv": [5, 0, 11, 3], "texture": "#2_base"},
                "down": {"uv": [5, 0, 11, 3], "rotation": 180, "texture": "#2_base"}
            }
        },
        {
            "from": [7, 7, 5],
            "to": [9, 9, 15],
            "rotation": {"angle": 45, "axis": "x", "origin": [8, 8, 15]},
            "faces": {
                "north": {"uv": [7, 6, 9, 8], "rotation": 180, "texture": "#lever"},
                "east": {"uv": [7, 6, 9, 16], "rotation": 90, "texture": "#lever"},
                "west": {"uv": [7, 6, 9, 16], "rotation": 270, "texture": "#lever"},
                "up": {"uv": [7, 6, 9, 16], "texture": "#lever"},
                "down": {"uv": [7, 6, 9, 16], "rotation": 180, "texture": "#lever"}
            }
        }
    ],
    "groups": [
        {
            "name": "lever",
            "origin": [8, 8, 8],
            "children": [0, 1]
        }
    ],
    {
        "parent": "item/generated",
        "textures": {
            "layer0": "redstone_addons/item/leverre"
            }
    }
}

it gives the Purple black missing texture with the item in gui and also the model

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh wait I now saw the …
Sat, 02/15/2020 - 10:56

Oh wait I now saw the .texture file and I changed it but it didnt work so I experimented a bit but it still doesnt work