SmileyScripts Posted March 14, 2021 Share Posted March 14, 2021 options: Opal: 10 Amethyst: 10 Lithium: 10 Ruby: 10 Copper: 10 Cobalt: 10 Diamond: 10 Mercury: 10 Sapphire: 10 Pearl: 10 Aluminium: 10 Amber: 10 Silver: 10 on right click on chest: if player's held item is blaze rod named "&6&lSellWand &f2x": loop event-block's inventory: set {_aluminium} to number of gray dye named "&8Aluminium" in event-block's inventory set {_opal} to number of orange dye named "&6Opal" in event-block's inventory set {_pearl} to number of magenta dye named "&dPearl" in event-block's inventory set {_cobalt} to number of cyan dye named "&3Cobalt" in event-block's inventory set {_ruby} to number of black dye named "&4Ruby" in event-block's inventory set {_amethyst} to number of green dye named "&aAmethyst" in event-block's inventory set {_silver} to number of light gray dye named "&7Silver" in event-block's inventory set {_diamond} to number of light blue dye named "&bDiamond" in event-block's inventory set {_amber} to number of yellow dye named "&eAmber" in event-block's inventory set {_amethyst} to number of lime dye named "&aAmethyst" in event-block's inventory set {_sapphire} to number of purple dye named "&5Sapphire" in event-block's inventory set {_mercury} to number of blue dye named "&9Mercury" in event-block's inventory set {_copper} to number of red dye named "&cCopper" in event-block's inventory set {_value1} to {@Aluminium} * {_aluminium} set {_value2} to {@Opal} * {_opal} set {_value3} to {@Pearl} * {_pearl} set {_value4} to {@Cobalt} * {_cobalt} set {_value5} to {@Ruby} * {_ruby} set {_value6} to {@Lithium} * {_lithium} set {_value7} to {@Silver} * {_silver} set {_value8} to {@Diamond} * {_diamond} set {_value9} to {@Amber} * {_amber} set {_value10} to {@Amethyst} * {_amethyst} set {_value11} to {@Sapphire} * {_sapphire} set {_value12} to {@Mercury} * {_mercury} set {_value13} to {@Copper} * {_copper} set {_value14} to {_value1} * 2 remove all gray dye named "&8Aluminium" from event-block's inventory remove all orange dye named "&6Opal" from event-block's inventory remove all magenta dye named "&dPearl" from event-block's inventory remove all cyan dye named "&3Cobalt" from event-block's inventory remove all black dye named "&4Ruby" from event-block's inventory remove all green dye named "&2Lithium" from event-block's inventory remove all light gray dye named "&7Silver" from event-block's inventory remove all light blue dye named "&bDiamond" from event-block's inventory remove all yellow dye named "&eAmber" from event-block's inventory remove all lime dye named "&aAmethyst" from event-block's inventory remove all purple dye named "&5Sapphire" from event-block's inventory remove all blue dye named "&9Mercury" from event-block's inventory remove all red dye named "&cCopper" from event-block's inventory execute console command "/eco give %player% %{_value1}%" cancel event on right click on chest: if player's held item is blaze rod named "&6&lSellWand &f3x": loop event-block's inventory: set {_aluminium} to number of gray dye named "&8Aluminium" in event-block's inventory set {_opal} to number of orange dye named "&6Opal" in event-block's inventory set {_pearl} to number of magenta dye named "&dPearl" in event-block's inventory set {_cobalt} to number of cyan dye named "&3Cobalt" in event-block's inventory set {_ruby} to number of black dye named "&4Ruby" in event-block's inventory set {_amethyst} to number of green dye named "&aAmethyst" in event-block's inventory set {_silver} to number of light gray dye named "&7Silver" in event-block's inventory set {_diamond} to number of light blue dye named "&bDiamond" in event-block's inventory set {_amber} to number of yellow dye named "&eAmber" in event-block's inventory set {_amethyst} to number of lime dye named "&aAmethyst" in event-block's inventory set {_sapphire} to number of purple dye named "&5Sapphire" in event-block's inventory set {_mercury} to number of blue dye named "&9Mercury" in event-block's inventory set {_copper} to number of red dye named "&cCopper" in event-block's inventory set {_value1} to {@Aluminium} * {_aluminium} set {_value2} to {@Opal} * {_opal} set {_value3} to {@Pearl} * {_pearl} set {_value4} to {@Cobalt} * {_cobalt} set {_value5} to {@Ruby} * {_ruby} set {_value6} to {@Lithium} * {_lithium} set {_value7} to {@Silver} * {_silver} set {_value8} to {@Diamond} * {_diamond} set {_value9} to {@Amber} * {_amber} set {_value10} to {@Amethyst} * {_amethyst} set {_value11} to {@Sapphire} * {_sapphire} set {_value12} to {@Mercury} * {_mercury} set {_value13} to {@Copper} * {_copper} set {_value14} to {_value1} * 2 remove all gray dye named "&8Aluminium" from event-block's inventory remove all orange dye named "&6Opal" from event-block's inventory remove all magenta dye named "&dPearl" from event-block's inventory remove all cyan dye named "&3Cobalt" from event-block's inventory remove all black dye named "&4Ruby" from event-block's inventory remove all green dye named "&2Lithium" from event-block's inventory remove all light gray dye named "&7Silver" from event-block's inventory remove all light blue dye named "&bDiamond" from event-block's inventory remove all yellow dye named "&eAmber" from event-block's inventory remove all lime dye named "&aAmethyst" from event-block's inventory remove all purple dye named "&5Sapphire" from event-block's inventory remove all blue dye named "&9Mercury" from event-block's inventory remove all red dye named "&cCopper" from event-block's inventory execute console command "/eco give %player% %{_value1}%" cancel event command /sellwand <text> [<player>]: permission: * permission message: &cNo permission! trigger: if arg-2 is set: set {_p} to arg-2 else: set {_p} to player if arg-1 is "2x": give {_p} 1 blaze rod named "&6&lSellWand &f2x" if arg-1 is "3x": give {_p} 1 blaze rod named "&6&lSellWand &f3x" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now