Tool:ShopB: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
ftool setEventTrigger t_shopb org.bukkit.event.player.PlayerInteractEvent | ftool setEventTrigger t_shopb org.bukkit.event.player.PlayerInteractEvent | ||
ftool setmethodname t_shopb createShop 3 | ftool setmethodname t_shopb createShop 3 | ||
#ftool setmethodparam t_shopb 0 | #ftool setmethodparam t_shopb 0 de.k.kadi.api.features.tools.IToolData | ||
ftool setmethodparam t_shopb 1 org.bukkit.Material BIRCH_WALL_SIGN | |||
ftool setmethodparam t_shopb | |||
ftool testmethod t_shopb | ftool testmethod t_shopb | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 20:52, 10 October 2020
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)
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 de.k.kadi.api.features.tools.IToolData
ftool setmethodparam t_shopb 1 org.bukkit.Material BIRCH_WALL_SIGN
ftool testmethod t_shopb