TransWikia.com

I need to put can place on tags on a custom spawn egg in 1.16.4

Arqade Asked by Toopoo on December 14, 2020

I like to design minigames in vanilla on a Realm, and I use a command generator pretty frequently ( https://www.gamergeeks.nz/apps/minecraft/give-command-generator ). I have most of the command I need already, but if someone could send tell me where the adventure mode tag (can place on TNT) goes that would be great.

Command:

/give @p skeleton_spawn_egg{EntityTag:
    {HandItems:
      [
        {id:bow,tag:
          {Enchantments:
            [{id:flame,lvl:1}]
          },
          Count:1
        }
      ],
      ArmorItems:[{},{},{},{id:tnt,Count:1}],
      ArmorDropChances:[0F,0F,0F,0.00F],
      HandDropChances:[0F]
    }
} 1

2 Answers

You put the adventure tag string after the amount of the item (in this case, after the 1 at the end of the string, which is the amount of skeleton spawn eggs you're trying to give)

{CanPlaceOn:["minecraft:block","minecraft:other_block"]}

Answered by made my 1st server pls help on December 14, 2020

It goes in the root tag, outside EntityTag:

{
    EntityTag: {
        HandItems: [
            {
                id: "minecraft:bow",
                tag: {
                    Enchantments: [
                        {
                            id: "minecraft:flame",
                            lvl: 1s
                        }
                    ]
                },
                Count: 1b
            }
        ],
        ArmorItems: [
            {},
            {},
            {},
            {
                id: "minecraft:tnt",
                Count:1b
            }
        ],
        ArmorDropChances: [
            0.0f,
            0.0f,
            0.0f,
            0.0f
        ],
        HandDropChances: [
            0.0f,
            0.0f
        ]
    },
    CanPlaceOn:[
        "minecraft:dirt"
    ]
}

Answered by ExpertCoder14 on December 14, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP