🧊2048

This is a copy of the popular mobile game 2048. Where you, moving rows, need to get the number 2048. Pressing occurs on the edge of the field. The same numbers are added, forming 1 from 2 cells. From 32 and 32 there will be 64, from 64 and 64 there will be 128 and so on. For each move, 1 or 2 new cells are added, which can fill the field so that you cannot move and lose.

Default
With developers resource pack

Installation

Build a vertical 4x4 structure.

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

/2048 setpoint 1

Now to the upper right and enter the command:

/2048 setpoint 2

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

/2048 install

Commands

Description
Command

View mode commands

/2048 help

You need to set the points of the 4x4 field. Look at the lower left corner. Enter the command to set point 1. Then to the upper right and the command to point 2

/2048 setpoint 1 /2048 setpoint 2

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

/2048 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.

/2048 additem <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!

/2048 addstartitem

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

/2048 clearstartitems

Permissions

For what
Permission

Gives all mode access to the player

fun.game2048.*

Gives the player permission to play this mode

fun.game2048.play

Main config (config.yml)

2048 enable: true #If "false", this mode will not be available
2048 start price: 1000.0 #When you click on the sign, this price will be charged from the player’s balance
2048 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
2048 time for game: 300 #In ticks. How much time is given to collect 2048
2048 delay for the player: 300 #In ticks. How long will it take for the player to start playing again
2048 max result: 2048 #You can reduce the number from 2048 to a smaller number, for example 1024, 512, or increase it
2048 title enable: true #Will the title be displayed when you win?
2048 title fade in time: 10 #In ticks
2048 title stay time: 60 #In ticks
2048 title fade out time: 10 #In ticks
2048 fireworks: #Victory animations. You can set 1 and more animations. Or set [] to disable
  - 'SALUT_4'
2048 send messages when side clicked: true #Sends a message when the player presses a side to move
2048 number blocks: #Specify the number, material and custom model data to apply the texture
  0: ['GRAY_CONCRETE', 0]
  2: ['LIME_CONCRETE', 0]
  4: ['LIGHT_BLUE_CONCRETE', 0]
  8: ['CYAN_CONCRETE', 0]
  16: ['BLUE_CONCRETE', 0]
  32: ['BROWN_CONCRETE', 0]
  64: ['PINK_CONCRETE', 0]
  128: ['MAGENTA_CONCRETE', 0]
  256: ['PURPLE_CONCRETE', 0]
  512: ['RED_CONCRETE', 0]
  1024: ['YELLOW_CONCRETE', 0]
  2048: ['ORANGE_CONCRETE', 0]
2048 inactive sign text: #Text for inactive mode
  - '&6╔════════╗'
  - '&5&lβ™’ &d&l2048 &5&lβ™’'
  - '&6Price: &e&l%price%&6$'
  - '&6β•šβ•β•β•β•β•β•β•β•β•'
2048 active sign text: #Text for active mode
  - '&6╔════════╗'
  - '&d&lπŸ•’ TIME πŸ•’'
  - '&6&l[&e&l%time%&6&l]'
  - '&6β•šβ•β•β•β•β•β•β•β•β•'

Mode config (2048.yml)

2048 game rewards:
  Drop mode: MONEY
  Money reward: 1100.0
  Items reward: [] #Set by command
  Command reward: []


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


2048 game 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