1

Keep item from moving

Silabear 2/15/21 7:07 am
131
2/18/2021 2:38 am
So, I want to make it so basically when you place a renamed spawn egg, it will summon an invincible silverfish which does not move when hit and does not suffocate or move when it uses /setblock at it's location. Then, I would like it to teleport any items within a 1 block radius to it and make those items with the same criteria (doesn't move when suffocated and cant be picked up.) Is this possible?

Thanks, I'm not the best at commands and nbt.
Posted by
Silabear
Retired Moderator
Level 70 : Legendary Guard Bear
981

  Have something to say?

JoinSign in

4

coggnizant
02/15/2021 9:31 am
Level 33 : Artisan Sus Sus
1
Silabear
02/16/2021 2:26 am
He/Him • Level 70 : Legendary Guard Bear
Thanks, What would be the tags to make it so it doesn't move, can't be pushed and can't be picked up?
1
Stalkative
02/16/2021 7:36 am
Level 29 : Expert Geek
history
This wiki page is very useful for things like this.

To prevent the silverfish from moving, you can use NoAI. To prevent it from taking damage, use Invulnerable. You may also want to use Silent to keep it from making sounds.

To prevent the item from being picked up, set PickupDelay to 32767. You can prevent it from falling down using NoGravity, but to prevent movement altogether you'll probably have to just keep teleporting it to the silverfish.

By the way, /give is useless here, so you won't need that generator.
2
Silabear
02/18/2021 2:38 am
He/Him • Level 70 : Legendary Guard Bear
Thanks <3
1

Welcome