Custom Painting

Started by TheNotAHamster on Wed, 06/29/2022 - 16:25

Topic category: Help with modding (Java Edition)

Last seen on 01:09, 29. Jul 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Custom Painting
Wed, 06/29/2022 - 16:25

I want to use the painting style effect with it's own item, is there a way to do this?
I don't want players to have to cycle through all the vanilla paintings just to get modded ones. 

Last seen on 07:08, 4. Jul 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There is a way to spawn a…
Fri, 07/01/2022 - 10:07

There is a way to spawn a specific painting using a command. If you use the “run command” block in a procedure on the “When right clicked” trigger on your item you can spawn in a painting through a command.
For example: 

/summon painting x y z {Motive:wanderer}

You would have to clarify orientation and position in the command, of course also replacing the motive (name of the painting) to the name that you set the custom painting to.

For example if my painting was named “apple” the command in the procedure would be:

/summon painting x y z {TileX:-12,TileY:64,TileZ:41,Facing:3,Motive:apple}

 

Obviously replace the tile positions with things like ~1 ~ ~ etc if you want it to be relative to the right click position.

I hope this helps, Good luck!