#Paintings and Pots
1 messages · Page 1 of 1 (latest)
I'm not an official helper but I think you can make paintings invulnerable through their data
{Invulnerable:1b}
mcstacker.net is good for command help
That's right... I'm kind of hoping there's another way because the summon command is too long... wait... hold on
Maybe /data merge entity will help
you can /data modify an entity I think, can't do it with players but I think you can with every other entity yea
Hmm
One sec
@e[type=painting,limit=1,sort=nearest]
It says 'only one entity is allowed' so this will only select the single nearest painting
how do I finish the command?
Not sure, hopefully an official helper or someone else knows
I was thinking set might break the rotation
neither do I tried them before I asked
/data modify entity @e[type=painting,limit=1,sort=nearest] {Invulnerable:1b,variant:"rpanon:birthed_from_tech"} merge from entity @e[type=painting,limit=1,sort=nearest]
I did this and got "Nothing Changed. The specified properities already have these values." but I can still knock it down
Summoning the paint as invulnerable works and is less effort at this point.
I can just F3 + I and edit the command down and run it.
Now... I just need to figure out flower pots
You were having difficulty because you were trying to use data merge syntax for data modify
Maybe summoning an invisible medium slime with no AI, so the hitbox would block access to the flower pot?
Either works but they accept different syntax
This, but use an interaction entity instead.
What's an interaction entity?
Would this still allow the players to walk through the area?
An invisible entity that doesn't tick (like markers and display entities) but has a hitbox and can be left/right clicked
/data merge entity @n[type=minecraft:painting] {Invulnerable:1b}
Interesting
Or alternatively data modify entity @n[type=painting] Invulnerable set value 1b
Interaction entities width and height defaults to 1 by 1 (according to MCStacker) so it should cover the flower pot with just /summon interaction ~ ~ ~ I think
And you can just modify the width and height of course
I assume using commands to make interactions glowing would work to see the hitboxes
Interaction entities are good but not perfect solution. You can accidentally create un-interactable zone behind the wall
WOOT! That works! It also works for decorated pots that I was just giving up on at this point
Yeah kano was suggesting interaction entities for flower pots
Yeah... I don't think I'm going to use them for the painting cause that would double the entity count for the paintings
Invulnerable works for paintings
this is going to be a long week... LOL
I can tell you a fast command for spawning these if you need
Oh yeah f3 + b, that's a better way to check hitboxes
yes please cause I has a lot
step on top of the pot and type this command:
execute align xyz run summon minecraft:interaction ~0.5 ~ ~0.5 {height:0.4375,width:0.4375}
this will block only the pot + 1 pixel on each side and +2 pixels on top
Paintings and Item Frames:
[where x equals the target type]
/data modify entity @n[type=x] Invulnerable set value 1b
Flower and Decorated Pots
/summon interaction ~ ~ ~
You're a genius
i just worked with commands too much = D
do you mind breaking down that command for me? so I can learn what each part does
sure
are you familiar with what /execute does?
in the command I know execute and everything from run to the end
ok cool!
Yeah I do!
But let me try something
execute align xyz run summon minecraft:interaction ~1 ~1 ~ {height:2,width:1}
I get my axis's mixed up when I don't have my game open to walk back and forth, but this command would allow me to stand next to a specific side of the potted plant/decorated pot combo and summon the interaction around it, right?
I tested it and that command summons interaction entity between four blocks
~-1 ~ ~ west
~1 ~ ~ east
~ ~ ~1 south
~ ~ ~-1 north
[edited to correct]
I wasn't suggesting using it for the paintings.
yes, April068 has already told me
Ah the rest of the conversation finally loaded for me
wait... I .0 is not the center of the block is it?
.0 .0 .0 is a corner of a block
the northwest one correct?
here, got you a command. It summons tall interaction entity 1 block above your legs
execute align xyz positioned ~0.5 ~1 ~0.5 run summon minecraft:interaction ~os ~os ~os {height:2,width:1}
os stands for offset
I don't think that's going to work
it didn't work for a different reason than I expected.
for example
execute align xyz positioned ~0.5 ~1 ~0.5 run summon minecraft:interaction ~ ~ ~-1 {height:2,width:1}
summons this:
But let me send you a picture
red wool - place where you stand
south for this one
try this execute align xyz positioned ~0.5 ~ ~0.5 run summon minecraft:interaction ~ ~ ~1 {height:2,width:1}
bingo
Paintings and Item Frames:
[where x equals the target type]
/data modify entity @n[type=x] Invulnerable set value 1b
Flower and Decorated Pots
/summon interaction ~ ~ ~
- More specific commands:
[Provided by @stone frigate ]
Flower Pots Alone
step on top of the pot and type this command:
execute align xyz run summon minecraft:interaction ~0.5 ~ ~0.5 {height:0.4375,width:0.4375}
Potted Plant and Decorated Pots combo:
[when the pot is to the south of you]
execute align xyz positioned ~0.5 ~ ~0.5 run summon minecraft:interaction ~ ~ ~1 {height:2,width:1}
West: ~-1 ~ ~
East: ~1 ~ ~
South: ~ ~ ~1
North: ~ ~ ~-1
sorry for the ping. but I wanted to make sure your extra work was credited
no problem. Pings dont bother me at all
Why wouldn't you just go into spectator and position your feet inside the block you want to place inside of, so you don't need to worry about offset?
also who suggested interactions in the first place
shhhhh because that would be way too easy, so it's totally not the right way to do it... LOL /silly
Thank you guys again for all the help!