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,tag:{SkullOwner:"%target%"\}}}
- A good example of this would be giving the HEAD of the PLAYER
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\}}
- 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)
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 ^^
Try it now
Copy this into ExecutableItems and reload
From the SCore custom commands reference. Paste it into a config, run the plugin's reload command, and you have a working starting point to edit.
activators:
activator0: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of player
playerCommands:
- ABSORPTION amount:5 time:200 # Gives the player absorption
activator1: # Activator ID, you can create as many activator on the activators list
option: # Here goes an activator that is at least instance of target
targetCommands:
- ABSORPTION amount:5 time:200 # Gives the target absorptionPlugin used on this page
ExecutableItemsCustom items with abilities, activators and commands — no code.
- 5.0/5 from 10 reviews
- 3.0K servers running it right now (bStats)
- 51 downloads on SPlugins
€19.99
one-time, lifetime updates