Container with a different texture/model when opened

Started by TopHattedTRex049 on

Topic category: Help with modding (Java Edition)

Last seen on 23:06, 17. Nov 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Container with a different texture/model when opened
Sun, 10/16/2022 - 12:07 (edited)

Hello, I've been trying to make a custom chest like item that when opened had a different texture to show its open, I'm currently using another model for this and a procedure to replace it and put the original back when closed, thing is it erases the contents when I do this, probably because I've just replaced it with a blank version.
So any help on figuring out how to copy all the NBT stuff into this new one is appreciated, I'm not too good at the blockstate stuff yet! :)

Also if it requires me to do a little coding I'm up to give it a go.

Edited by TopHattedTRex049 on Sun, 10/16/2022 - 12:07
Last seen on 18:26, 12. Feb 2024
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make sure to check "keep NBT…
Mon, 10/17/2022 - 17:53

make sure to check "keep NBT/Inventory" i would show you but imgur isnt working right now for me

Last seen on 23:06, 17. Nov 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i have tried that…
Wed, 10/19/2022 - 20:05

i have tried that unfortunately it still wipes, ill keep experimenting till something happens, im keeping the animation out right now, maybe theres a way to copy the inventory then paste it into the replacement