Tool:ShopDO: Difference between revisions

From ETM
Jump to navigation Jump to search
(Created page with "Open Problems: * Interacts on right-click / disable this, should open the chest normally * Fallback to the item in hand to resolve what item should be sold is now no longer a...")
 
No edit summary
Line 1: Line 1:
Open Problems:
*
 
* Interacts on right-click / disable this, should open the chest normally
* Fallback to the item in hand to resolve what item should be sold is now no longer a valid strategy (always a tool that is impossible to be sold)
*  





Revision as of 15:29, 30 September 2020


library fromcommand schema_t_shopb minecraft:birch_sign{display:{Lore:['{"text":"@Tool:t_shopb"}'],Name:'[{"text":"[","color":"#AA0A0A"},{"text":"⚒","color":"gold","bold":true},{"text":"] ","color":"#AA0A0A"},{"text":"Shop: Birch","color":"dark_green"}]'}}

fcraft enabled t_shopb false
ftool delete t_shopb 
fcraft delete t_shopb 

fcraft create t_shopb bookshelf,bookshelf,bookshelf,bookshelf,birchsign,bookshelf,bookshelf,chest,bookshelf schema_t_shopb
#fcraft description t_shopb 1 "Allows you to creat shops with a birch sign"
fcraft shaped t_shopb true

ftool create t_shopb schema_t_shopb
ftool unique t_shopb true
ftool soulbound t_shopb true
ftool limiteduse t_shopb true 100
ftool linkrecipe t_shopb true

ftool setEventTrigger t_shopb org.bukkit.event.player.PlayerInteractEvent
ftool setmethodname t_shopb createShop 3
#ftool setmethodparam t_shopb 0 org.bukkit.entity.Player
#ftool setmethodparam t_shopb 1 org.bukkit.Location
ftool setmethodparam t_shopb 2 org.bukkit.Material BIRCH_WALL_SIGN

ftool testmethod t_shopb