Custom drops

THIS TUTORIAL IS FOR EXECUTABLEITEMS, THAT MEANS THIS DROPS DOESN'T WORK GLOBALLY, ONLY WORKS IF YOU HAVE A EXECUTABLEITEM IN YOUR INVENTORY.

IF WANT TO CREATE A GLOBAL CUSTOM DROP USE EXECUTABLEVENTS

If you would like to create custom drops, we first need to know what type of drop. Both will be explained:

Entity drops

Use the activator PLAYER_KILL_ENTITY or PLAYER_KILL_PLAYER and on commands you can either use:

  • EI Commands to drop the items

    • DROPEXECUTABLEITEM

    • DROPEXECUTABLEBLOCK

    • DROPITEM

  • Vanilla commands to drop the items

    • A good example of this would be giving the HEAD of the PLAYER

      • execute at %player% run summon item %target_x_int% %target_y_int% %target_z_int% {Item:{id:"player_head",Count:1b,tag:{SkullOwner:"%target%"}}}

Don't forget that if you want this command not work 100% you can give them chances ! Just check the wiki, that is already explained ^^

Block drops

Use the activator PLAYER_BREAK_BLOCK and on commands you can either use:

  • EI Commands to drop the items

    • DROPEXECUTABLEITEM

    • DROPEXECUTABLEBLOCK

    • DROPITEM

  • Vanilla commands to drop the items

    • Vanilla command to drop more than one item broken (this example gives 2 items more, you can randomize this using instead of "2" a RNG Placeholder)

      • execute at %player% run summon minecraft:item %block_x_int% %block_y_int% %block_z_int% {Item:{id:"minecraft:%block_item_material_lower%",Count:2b}}

Don't forget that if you want this command not work 100% you can give them chances ! Just check the wiki, that is already explained ^^

Last updated