how to set the properties of an item frame to a custom one

Started by dffdgamer on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to set the properties of an item frame to a custom one

I want to make a dish in a decoration mod, and I want the objects that you put in it to look like the item frame.

PLS HELP ME.

SORRY FOR MY BAD ENGLISH.

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you're referring to…
Wed, 10/07/2020 - 20:20

If you're referring to having the item frame hold an item a certain way, this can be done while making a custom model same way one would edit how it looks on the head or in hand.
Though, based on how you worded it, I assume you want the dish item to act as an item frame. I don't think is this really possible in simple ways. I do have an idea for a more messy sort of way, though.

Item frames use entities for their blocks. And as such you could probably have the dish item spawn an entity instead of a block. Since only zombie and biped models can hold items, the entity should be using a zombie or biped model. The texture should only be on the part that should be shown, for example, the face of the model. The rest should be transparent. Have it so when right clicking the entity it sets the entities head item or held item to whatever the player is holding.
Some other things should be set as well, AI should be disabled, for example.

 

Of course, this solution has a huge amount of its own problems. so I don't think it would be worth it. I would recommend finding an alternative to having the item working like an item frame.

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so it can't be done? ; -;
Wed, 10/07/2020 - 22:38

so it can't be done? ; -;

Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wanted to say that I want,…
Wed, 10/07/2020 - 22:42

I wanted to say that I want, for example, I have a carrot and I want to put it on the plate and show that the carrot is inside the plate.

I said item frame, because something similar happens with the item frame.

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
UGH THERES NOTHING ON THIS…
Wed, 05/01/2024 - 15:13

UGH THERES NOTHING ON THIS WTH