🧩Sliding puzzles

You are given a field with numbers, or with an image if you are using a resource pack. One field is freed and you can move the cells. Your goal is to add the numbers in the correct order, or to make the image whole.

Installation

Build a vertical 3x3 structure (you can also build 4x4 or 5x5).

Move the cursor to the lower left corner of this building and enter the command:

/slidingpuzzle anime3x3 setpoint 1

Now to the upper right and enter the command:

/slidingpuzzle anime3x3 setpoint 2

Now it remains to put a sign somewhere nearby. Watch on it and enter the command:

/slidingpuzzle anime3x3 install

Commands

Description
Command

View mode commands

/slidingpuzzle help

You need to set the points of the 3x3, 4x4 or 5x5 field (By default in the config 3x3 exists). Look at the lower left corner. Enter the command to set point 1. Then to the upper right and the command to point 2.

/slidingpuzzle <category> setpoint 1 /slidingpuzzle <category> setpoint 2

After setting the points, stare on the sign and enter the command

/slidingpuzzle <category> install

Adds an item to your hand as a prize when you win. You need to specify the drop chance. Be sure to change the drop type in the config for this mode.

/slidingpuzzle <category> additem <3x3, 4x4, 5x5> <chance>

With this command you can set an item in your hand with which the player can start the game. You can set many items! Be sure to allow the game to be started by the item in the general config!

/slidingpuzzle addstartitem

Clears the list of such items that can be used to start the game

/slidingpuzzle clearstartitems

Permissions

You must use a permission manager like LuckPerms which supports .* permissions notation. Bukkit doesn't support this notation by default!

For what
Permission

Gives all mode access to the player

fun.slidingpuzzle.*

Gives the player permission to play this mode

fun.slidingpuzzle.play

Main config (config.yml)

Sliding puzzle enable: true #If "false", this mode will not be available
Sliding puzzle start price: 1000.0 #When you click on the sign, this price will be charged from the player’s balance
Sliding puzzle use items to start instead of money: false #If "true", then you need to set items that can be used to start the mode instead of money
Sliding puzzle time for assemble 3x3: 150 #In seconds. Time to put the puzzle together
Sliding puzzle time for assemble 4x4: 200 #In seconds. Time to put the puzzle together
Sliding puzzle time for assemble 5x5: 300 #In seconds. Time to put the puzzle together
Sliding puzzle delay for the player: 300 #In seconds. Delay between games
Sliding puzzle title enable: true #Will the title be displayed when you win?
Sliding puzzle title fade in time: 10 #In ticks
Sliding puzzle title stay time: 60 #In ticks
Sliding puzzle title fade out time: 10 #In ticks
Sliding puzzle fireworks: #Victory animations. You can set 1 and more animations. Or set [] to disable
  - 'SALUT_4'

Sliding puzzle empty block: ['GRAY_CONCRETE', 0] #[Material, Custom model data

#βž₯ Game without textures.
Sliding puzzle materials 3x3:
  1: 'LIME_CONCRETE'
  2: 'LIME_CONCRETE'
  3: 'LIME_CONCRETE'
  4: 'LIME_CONCRETE'
  5: 'LIME_CONCRETE'
  6: 'LIME_CONCRETE'
  7: 'LIME_CONCRETE'
  8: 'LIME_CONCRETE'
  9: 'LIME_CONCRETE'
Sliding puzzle materials 4x4:
  1: 'CYAN_CONCRETE'
  2: 'CYAN_CONCRETE'
  3: 'CYAN_CONCRETE'
  4: 'CYAN_CONCRETE'
  5: 'CYAN_CONCRETE'
  6: 'CYAN_CONCRETE'
  7: 'CYAN_CONCRETE'
  8: 'CYAN_CONCRETE'
  9: 'CYAN_CONCRETE'
  10: 'CYAN_CONCRETE'
  11: 'CYAN_CONCRETE'
  12: 'CYAN_CONCRETE'
  13: 'CYAN_CONCRETE'
  14: 'CYAN_CONCRETE'
  15: 'CYAN_CONCRETE'
  16: 'CYAN_CONCRETE'
Sliding puzzle materials 5x5:
  1: 'YELLOW_CONCRETE'
  2: 'YELLOW_CONCRETE'
  3: 'YELLOW_CONCRETE'
  4: 'YELLOW_CONCRETE'
  5: 'YELLOW_CONCRETE'
  6: 'YELLOW_CONCRETE'
  7: 'YELLOW_CONCRETE'
  8: 'YELLOW_CONCRETE'
  9: 'YELLOW_CONCRETE'
  10: 'YELLOW_CONCRETE'
  11: 'YELLOW_CONCRETE'
  12: 'YELLOW_CONCRETE'
  13: 'YELLOW_CONCRETE'
  14: 'YELLOW_CONCRETE'
  15: 'YELLOW_CONCRETE'
  16: 'YELLOW_CONCRETE'
  17: 'YELLOW_CONCRETE'
  18: 'YELLOW_CONCRETE'
  19: 'YELLOW_CONCRETE'
  20: 'YELLOW_CONCRETE'
  21: 'YELLOW_CONCRETE'
  22: 'YELLOW_CONCRETE'
  23: 'YELLOW_CONCRETE'
  24: 'YELLOW_CONCRETE'
  25: 'YELLOW_CONCRETE'

#βž₯ Game with textures.
#βž₯ Developers resource pack material used here. You should activate it to use with textures. By default - FEATHER.
#βž₯ Sliding puzzle categories contains custom model data from block 1 to 9 or 1 to 16 or 1 to 25
Sliding puzzle categories:
  anime3x3:
    - [9387101, 9387102, 9387103, 9387104, 9387105, 9387106, 9387107, 9387108, 9387109]
    - [9387201, 9387202, 9387203, 9387204, 9387205, 9387206, 9387207, 9387208, 9387209]
    - [9387301, 9387302, 9387303, 9387304, 9387305, 9387306, 9387307, 9387308, 9387309]
    - [9387401, 9387402, 9387403, 9387404, 9387405, 9387406, 9387407, 9387408, 9387409]
    - [9387501, 9387502, 9387503, 9387504, 9387505, 9387506, 9387507, 9387508, 9387509]
    - [9387601, 9387602, 9387603, 9387604, 9387605, 9387606, 9387607, 9387608, 9387609]
    - [9387701, 9387702, 9387703, 9387704, 9387705, 9387706, 9387707, 9387708, 9387709]
    - [9387801, 9387802, 9387803, 9387804, 9387805, 9387806, 9387807, 9387808, 9387809]
    - [9387901, 9387902, 9387903, 9387904, 9387905, 9387906, 9387907, 9387908, 9387909]
  cartoons3x3:
    - [9388101, 9388102, 9388103, 9388104, 9388105, 9388106, 9388107, 9388108, 9388109]
    - [9388201, 9388202, 9388203, 9388204, 9388205, 9388206, 9388207, 9388208, 9388209]
    - [9388301, 9388302, 9388303, 9388304, 9388305, 9388306, 9388307, 9388308, 9388309]
    - [9388401, 9388402, 9388403, 9388404, 9388405, 9388406, 9388407, 9388408, 9388409]
    - [9388501, 9388502, 9388503, 9388504, 9388505, 9388506, 9388507, 9388508, 9388509]
    - [9388601, 9388602, 9388603, 9388604, 9388605, 9388606, 9388607, 9388608, 9388609]
    - [9388701, 9388702, 9388703, 9388704, 9388705, 9388706, 9388707, 9388708, 9388709]
    - [9388801, 9388802, 9388803, 9388804, 9388805, 9388806, 9388807, 9388808, 9388809]
    - [9388901, 9388902, 9388903, 9388904, 9388905, 9388906, 9388907, 9388908, 9388909]
  girls3x3:
    - [9389101, 9389102, 9389103, 9389104, 9389105, 9389106, 9389107, 9389108, 9389109]
    - [9389201, 9389202, 9389203, 9389204, 9389205, 9389206, 9389207, 9389208, 9389209]
    - [9389301, 9389302, 9389303, 9389304, 9389305, 9389306, 9389307, 9389308, 9389309]
    - [9389401, 9389402, 9389403, 9389404, 9389405, 9389406, 9389407, 9389408, 9389409]
    - [9389501, 9389502, 9389503, 9389504, 9389505, 9389506, 9389507, 9389508, 9389509]
    - [9389601, 9389602, 9389603, 9389604, 9389605, 9389606, 9389607, 9389608, 9389609]
    - [9389701, 9389702, 9389703, 9389704, 9389705, 9389706, 9389707, 9389708, 9389709]
    - [9389801, 9389802, 9389803, 9389804, 9389805, 9389806, 9389807, 9389808, 9389809]
    - [9389901, 9389902, 9389903, 9389904, 9389905, 9389906, 9389907, 9389908, 9389909]
  landscapes3x3:
    - [9390101, 9390102, 9390103, 9390104, 9390105, 9390106, 9390107, 9390108, 9390109]
    - [9390201, 9390202, 9390203, 9390204, 9390205, 9390206, 9390207, 9390208, 9390209]
    - [9390301, 9390302, 9390303, 9390304, 9390305, 9390306, 9390307, 9390308, 9390309]
    - [9390401, 9390402, 9390403, 9390404, 9390405, 9390406, 9390407, 9390408, 9390409]
    - [9390501, 9390502, 9390503, 9390504, 9390505, 9390506, 9390507, 9390508, 9390509]
    - [9390601, 9390602, 9390603, 9390604, 9390605, 9390606, 9390607, 9390608, 9390609]
    - [9390701, 9390702, 9390703, 9390704, 9390705, 9390706, 9390707, 9390708, 9390709]
    - [9390801, 9390802, 9390803, 9390804, 9390805, 9390806, 9390807, 9390808, 9390809]
    - [9390901, 9390902, 9390903, 9390904, 9390905, 9390906, 9390907, 9390908, 9390909]
  numbers3x3:
    - [9391101, 9391102, 9391103, 9391104, 9391105, 9391106, 9391107, 9391108, 9391109]
    - [9391201, 9391202, 9391203, 9391204, 9391205, 9391206, 9391207, 9391208, 9391209]
    - [9391301, 9391302, 9391303, 9391304, 9391305, 9391306, 9391307, 9391308, 9391309]
    - [9391401, 9391402, 9391403, 9391404, 9391405, 9391406, 9391407, 9391408, 9391409]
    - [9391501, 9391502, 9391503, 9391504, 9391505, 9391506, 9391507, 9391508, 9391509]
  paintings3x3:
    - [9392101, 9392102, 9392103, 9392104, 9392105, 9392106, 9392107, 9392108, 9392109]
    - [9392201, 9392202, 9392203, 9392204, 9392205, 9392206, 9392207, 9392208, 9392209]
    - [9392301, 9392302, 9392303, 9392304, 9392305, 9392306, 9392307, 9392308, 9392309]
    - [9392401, 9392402, 9392403, 9392404, 9392405, 9392406, 9392407, 9392408, 9392409]
    - [9392501, 9392502, 9392503, 9392504, 9392505, 9392506, 9392507, 9392508, 9392509]
    - [9392601, 9392602, 9392603, 9392604, 9392605, 9392606, 9392607, 9392608, 9392609]
    - [9392701, 9392702, 9392703, 9392704, 9392705, 9392706, 9392707, 9392708, 9392709]
    - [9392801, 9392802, 9392803, 9392804, 9392805, 9392806, 9392807, 9392808, 9392809]
    - [9392901, 9392902, 9392903, 9392904, 9392905, 9392906, 9392907, 9392908, 9392909]
Sliding puzzle inactive sign text: #Text for inactive mode
  - '&6╔════════╗'
  - '&5&l⬛ &d&lPUZZLE &5&l⬛'
  - '&6Price: &e&l%price%&6$'
  - '&6β•šβ•β•β•β•β•β•β•β•β•'
Sliding puzzle active sign text: #Text for active mode
  - '&6╔════════╗'
  - '&d&lπŸ•’ TIME πŸ•’'
  - '&6&l[&e&l%time%&6&l]'
  - '&6β•šβ•β•β•β•β•β•β•β•β•'

Mode config (sliding_puzzle.yml)

Sliding puzzle rewards:
  Drop mode 3x3: MONEY
  Money reward 3x3: 1100.0
  Items reward 3x3: [] #Set by command
  Command reward 3x3: []
  Drop mode 4x4: MONEY
  Money reward 4x4: 1200.0
  Items reward 4x4: [ ] #Set by command
  Command reward 4x4: [ ]
  Drop mode 5x5: MONEY
  Money reward 5x5: 1300.0
  Items reward 5x5: [ ] #Set by command
  Command reward 5x5: [ ]


Sliding puzzle items to run a game: [] #Set by command


Sliding puzzle locations: [] #Set by command

You can change the type of reward. Just change it in the config above. Here are what they are:

1) MONEY - Gives only money

2) ITEM - Gives only one item with some chance

3) ALLITEMS - Gives all items in list

4) COMMAND - Executes commands. Example:

Command reward:
- eco give %player% 1000
- say Cool

Last updated