Custom Painting

Started by TheNotAHamster on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Painting

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. 

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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!