Try the Commands Troubleshooting and Help page if you get stuff with server errors.
Suspicious Blocks
Generate commands for the suspicious blocks, such as suspicious sand and suspicious gravel. These blocks accept a single item or loot table for random items. The suspicious blocks can only loot an item once, and only by using a brush. All other ways of mining or moving will cause the contents to be lost. Both suspicious sand and suspicious gravel work the same.
Item Command
A suspicious block can contain a single item, that item can have both a quantity and item tag. The command is simular to other blocks that contain items. The item tag can contain enchantments, attributes, and other item data.
/give @a suspicious_sand{BlockEntityTag:{item:{id:diamond_pickaxe,tag:{Enchantments:[{lvl:1,id:silk_touch}]}}}} /give @a suspicious_sand[block_entity_data={id:suspicious_sand,item:{id:diamond_pickaxe,components:{Enchantments:[{lvl:1,id:silk_touch}]}}}]
Loot Table Command
The suspicious block can also use loot tables to select an item. Loot tables can be found in the Minecraft jar file. The loot table names change between verions and not every loot table produces items. The loot table will only yeild an item once.
/give @s suspicious_sand[block_entity_data={id:suspicious_sand,LootTable:"chests/ancient_city"}] /give @s suspicious_sand{BlockEntityTag:{LootTable:"archaeology/trail_ruins_common"}}
Minecraft Versions Permalinks
If you find yourself using a particular version all the time, you can link directly. There is some crossover between versions, so there will be quirks.
Version History
addedSuspicious Blocks
patchHide 1.20.5 item display features for previous versions
patchForce format attribute values as numbers
added1.20.5+ Food, tools and new tags for give generator
patchMinor fixes for chest container items
patchBanner set block command
patchsetblock falling blocks missing tags for signs, banners and such
patchbanner base banner undefined
patchre-added generator link text for items that have their own generator
added1.21 potion effects
added1.21 banners patterns
patchseveral banner bugs
patcharmor trim colors
patchchanging item name deletes imported data
patchgive enchantment_glint_override
patchPotion better give with options
patchBetter grass
patchBetter utf8 character support.
addedUpdated page content command with version toggle
added1.21 particles
patch1.21 particles syntax issues on particles with extra options
patchCommand save to storage issues
addedAllow attributes ids to be set for 1.21, name for before 1.21
addedNew attributes and removed uuid for 1.21
patch1.20.5+ give summon item name and lore
patch1.20.5+ tag to custom_data
patchCaching changes for icons
addedCache busting for updates
addedGive fake enchantment, potential fix
patchAttributes not importing correctly
patchIn some cases the enchantment tab disappears
added1.21 is now default
patch1.21 attributes name changed to id.
patchText editor single quote and escape character handling
added1.21 items
addedSome 1.20.5 particle support
patch1.20.5 Container item component nbt
patchText/Lore importing
added1.20.5 finished adding summon potion, firework, item, falling block, and block display support
patch1.20.5 fixed sweeping which had been renamed to sweeping_edge
added1.20.5 import for banners, enchanted books, fireworks, goat horns, knowledge books, player heads, potions, signs, and written books
added1.20.5 import for base command, and armor
added1.20.5 support for banners and premade banners
patch1.20.5 potion Ambient, Particles, Icon
added1.20.5 support for summon item
added1.20.5 support for signs
patchplayer head texture urls not working
added1.20.5 support for Enchanted Books, Fireworks, Player Heads
added1.20.5 support for Potions, Written Books
patchTargets not updating when updated
added1.20.5 support for Armor, Knowledge Books
patchItem search
addedGive generator migrated to version 2
addedBanner generator migrated to version 2
added1.20.5 predicates, sbt
Read version history »
(44 More Updates)