Change Result
Changes the result at the time of recycling
How to change the result?
First you need to have this option enabled by changing the enabled to true, in the materials section there is a list which you can add to the list. what this option does is to change the result at the moment of recycling an item, for example if I recycle a diamond sword it will give you 2 blocks of earth we will do this example below.
custom_item
Use it to check if it is a custom item from recycler plugin.
material
Check if it is a material
Default change result:
change-result:
enable: false
materials:
'1':
id: custom_item:fired_sword
result:
- '[CONSOLE] say just recycled a diamond sword'
- '[PLAYER] gamemode creative'
- '[ITEM] EMERALD:10'
- '[ITEM] GRASS_BLOCK:5'
'2':
id: material:NETHER_STAR
result:
- '[CUSTOM_ITEM] custom_skull'
- '[CUSTOM_ITEM] fired_sword'
- '[ITEM] DIAMOND:10'
'3':
id: custom_item:custom_skull
result:
- '[CONSOLE] title %player% title "§aChange result"'
- '[CONSOLE] title %player% subtitle "§eCommand executed!"'
- '[ITEM] IRON_INGOT:2'
Example 1: Diamond sword to 2 blocks dirt
This is a very simple example of how to use it.
[ITEM] MATERIAL:AMOUNT
'4':
id: material:diamond_sword
result:
- '[ITEM] GRASS_BLOCK:2'
Example 2: Kill the player when recycling a Tnt
Here is an example of recycling using a command to kill the player
'5':
id: material:tnt
result:
- '[CONSOLE] kill %player%'
Example 3: Get a custom item from plugin
At the moment of crafting it will give a custom item that was created in the plugin configuration, this item is called fired_sword.
'6':
id: material:gold_ore
result:
- '[CUSTOM_ITEM] fired_sword'
Last updated