HomeJavaModsTrickyShops [BSP] - Makes creating shops way faster
TrickyShops [BSP] - Makes creating shops way faster
ModsJava

TrickyShops [BSP] - Makes creating shops way faster

⬇ Download on Spigot
TrickyShops
This BossShopPro Addon makes creating shops way faster by simple tricks.
Many of your shopitems have a similar structure but you need to write the whole structure for every single one? Not anymore!

TrickyShops allows you to create predefined layouts of shopitems that include your own variables. Now all you need to do to create a new shopitem is select the right layout and enter the values of the variables.


Features



Sounds complicated? Well, it works really quick once you understand it. I'll show you an example:
[​IMG]
[​IMG]

These items were created with following configuration:

Code (Text):
  exampleitem1:
    Layout: layout_simple
    Item: 'LOG:64:1'
    Price: '30'
    Name: 'Dark Log'
  exampleitem4:
    Layout: layout_simple
    Item: 'DIAMOND_PICKAXE:1:0'
    Price: '75'
    Name: 'Diamond Pickaxe'
Savage, right?

Both shopitems use the same layout that has been predefined once:

Code (Text):
layout_simple:
  input:
    Item: '[type]:[amount]:[durability]'
    Price: '[buyprice]'
    Name: '[name]'
  output:
    MenuItem:
    - 'type:[type]'
    - 'amount:[amount]'
    - 'name:&4[amount] [name]'
    - 'lore:&eBuy &b%reward% for &c%price%&e.'
    - 'durability:[durability]'
    InventoryLocation: 0
    ExtraPermission: ''
    PriceType: money
    Price: '[buyprice]'
    RewardType: item
    Reward:
    - - 'type:[type]'
      - 'amount:[amount]'
      - 'durability:[durability]'
    Message: '&eYou bought %itemname% for %price%.'
This might look complicated first, but again it can save tons of time.
Every layout consists of two parts: input and output.

Let's start by looking at the input:
Code (Text):
  input:
    Item: '[type]:[amount]:[durability]'
    Price: '[buyprice]'
    Name: '[name]'
Here you can create your own paths with the names that you want them to give. You can assign every path a set of own variables that you separate using ':'. You can choose any variable name that you want (Needs to be inside brackets). These are the variables that you later need to enter in order to create your shopitems.


Now all which is left is the output:
Code (Text):
  output:
    MenuItem:
    - 'type:[type]'
    - 'amount:[amount]'
    - 'name:&4[amount] [name]'
    - 'lore:&eBuy &b%reward% for &c%price%&e.'
    - 'durability:[durability]'
    InventoryLocation: 0
    ExtraPermission: ''
    PriceType: money
    Price: '[buyprice]'
    RewardType: item
    Reward:
    - - 'type:[type]'
      - 'amount:[amount]'
      - 'durability:[durability]'
    Message: '&eYou bought %itemname% for %price%.'
Here you set up a shopitem as you are used to, except there is one tiny difference: You can use all variables that you have created in the input section to fill in specific information. For example if you want every item displayname to have the same style but include the name of the item, simply create a '[name]' variable in the input section and use it here.

The best way to learn this system is by doing some testing and trying it out ;-)


Advanced calculation feature
Optionally you can add one list of variables which will be generated using existing variables and some maths.

Here is an example:
Code (Text):
  input:
    Item: '[type]:[amount]:[durability]'
    Worth: '[worth]'
    Name: '[name]'
    rest:
    - '[buyprice]=[worth]*1.2'
    - '[sellprice]=[worth]*0.6'
In this case in order to set up a shopitem you just need to enter one worth value. However the layout can work with [buyprice] and the [sellprice] variable.

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

TrickyShops [BSP] - Makes creating shops way faster is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 1,687 times (via Spigot). Download it and open it directly in the game.

Explore more