How to make an item frame

Started by I Love Mcreator on

Topic category: Help with modding (Java Edition)

Last seen on 05:29, 11. Jan 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an item frame

I need help with making a tile entity renderer for an item frame, and i want an easy way to do it, without making separate models for each block. i want to code it, but i need much help with that. if there's some thing you can import or copy or assist, it would be appreciated.

Last seen on 17:47, 14. Jul 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I haven't tried this myself,…
Mon, 10/02/2023 - 21:56

I haven't tried this myself, but the basic functions of the vanilla item frame might be a good place to start. Item frames are entities that do not move, and, on update tick, check that there's still a solid block directly behind them, (depending on their direction), and, if there isn't, despawn and drop an item. They can technically 'hold' a single item in the same way zombies and players can hold items, by displaying that item in the item frame's 'hand' in the middle of the frame. 

It probably won't be the easiest thing ever, but it's certainly possible. You could also try messing around with the new  display-entity commands added in the latest update.