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

Started by dffdgamer on Wed, 10/07/2020 - 18:44

Topic category: Help with modding (Java Edition)

Last seen on 18:28, 23. Nov 2020
Joined May 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how to set the properties of an item frame to a custom one
Wed, 10/07/2020 - 18:44

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.

Last seen on 01:36, 23. Nov 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 18:28, 23. Nov 2020
Joined May 2020
User points:

User statistics:

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

so it can't be done? ; -;

Last seen on 18:28, 23. Nov 2020
Joined May 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.