This is a design in which the player hits the punching bag and depending on several parameters the force of the hit is given. This value is random, but there are several parameters that still affect:
ā¢ how much he accelerated;
ā¢ how direct the hit was relative to the punching bag;
ā¢ how many players and creatures he killed during the entire time on the server.
3 hits are given according to the standard in the config and after that the current record of this stand will be recorded on the stand.
Installation
Place 3 blocks horizontally in a row.
There should be 2 blocks free above these blocks. Roughly speaking, it will occupy an area of āā3 by 3 blocks vertically.
Place a sign somewhere nearby.
Watch on the sign and enter the command:
/boxmeter install
Commands
Description
Command
View mode commands
/boxmeter help
Stare on the sign and enter the command
/boxmeter 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.
/boxmeter 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!
/boxmeter addstartitem
Clears the list of such items that can be used to start the game
/boxmeter 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.boxmeter.*
Gives the player permission to play this mode
fun.boxmeter.use
Main config (config.yml)
Box meter enable:true#If "false", this mode will not be availableBox meter title enable:true#Will the title be displayed when you win?Box meter title fade in time:10#In ticksBox meter title stay time:60#In ticksBox meter title fade out time:10#In ticksBox meter custom model data:0#If you want to apply a texture to the machine itselfBox meter starting price:0.0#When you click on the sign, this price will be charged from the playerās balanceBox meter 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 moneyBox meter rewards enable:true#Will there be a reward if you beat the record?Box meter attempts:3#How many attempts has every playerBox meter time for hit:200#In ticks. This is how much time is given to strikeBox meter cooldown:100#In ticks. Time to recharge the standBox meter fireworks:#Victory animations. You can set 1 and more animations. Or set [] to disable - 'SALUT_3'Box meter punching bag material: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTI2NTU4NWE3OGQwNTYxYWJhNGM5OTQ0NjA5OTdjZDZiYmM4MmM1ODkxOWYzNDEyZGRlZTI0ZDhiZDVkYzdlMCJ9fX0=',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter numbers enable:true#Will numbers be availabeBox meter number 0: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODViZDFlNjEzZmYzMmI1MjNjY2Y5ZTU3NGNjMzExYjc5OGMyYjNhNjgyOGYwZjcxYTI1NGM5OTVlNmRiOGU1In19fQ==',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter number 1: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGQyNDU0ZTRjNjdiMzIzZDViZTk1M2I1YjNkNTQxNzRhYTI3MTQ2MDM3NGVlMjg0MTBjNWFlYWUyYzExZjUifX19',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter number 2: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjEzYjc3OGM2ZTUxMjgwMjQyMTRmODU5YjRmYWRjNzczOGM3YmUzNjdlZTRiOWI4ZGJhZDc5NTRjZmYzYSJ9fX0=',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter number 3: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMDMxZjY2YmUwOTUwNTg4NTk4ZmVlZWE3ZTZjNjc3OTM1NWU1N2NjNmRlOGI5MWE0NDM5MWIyZTlmZDcyIn19fQ==',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter number 4: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTViYzQyYzY5ODQ2YzNkYTk1MzFhYzdkYmEyYjU1MzYzZjhmOTQ3MjU3NmUxN2Q0MjNiN2E5YjgxYzkxNTEifX19',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter number 5: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGYzZjU2NWE4ODkyOGVlNWE5ZDY4NDNkOTgyZDc4ZWFlNmI0MWQ5MDc3ZjJhMWU1MjZhZjg2N2Q3OGZiIn19fQ==',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter number 6: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzVkYTFjYjZjNGMyMzcxMDIyNGI0ZjRlOGQ2ZmZjZjhiNGI1NWY3ZmU4OTFjMTIwNGFmNzQ4NWNmMjUyYTFkOCJ9fX0=',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter number 7: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYWY0ZTdhNWNmNWI1YTRkMmZmNGZiMDQzM2IxYTY4NzUxYWExMmU5YTAyMWQzOTE4ZTkyZTIxOWE5NTNiIn19fQ==',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter number 8: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTY4MzQ0MGM2NDQ3YzE5NWFhZjc2NGUyN2ExMjU5MjE5ZTkxYzZkOGFiNmJkODlhMTFjYThkMmNjNzk5ZmE4In19fQ==',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter number 9: ['eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjg5NzdhZGVkZmE2YzgxYTY3ZjgyNWVhMzdjNGQ1YWE5MGRmZTNjMmE3MmRkOTg3OTFmNDUyMWUxZGEzNiJ9fX0=',0] #Material(it can be minecraft material or head), Custom model data (for resource pack)Box meter punching bag offset: [0.0,2.0,0.0] #Armor stands offset if you have a resource pack and need to change the positionBox meter number first slot offset: [-1.0,1.0,0.0] #Armor stands offset if you have a resource pack and need to change the positionBox meter number second slot offset: [0.0,1.0,0.0] #Armor stands offset if you have a resource pack and need to change the positionBox meter number third slot offset: [1.0,1.0,0.0] #Armor stands offset if you have a resource pack and need to change the positionBox meter inactive sign text:#Text for inactive mode - '&c&lā¬ &c&lBOX METER &c&lā¬' - '&6Price: &e&l%price%&6ā' - '&6Record: &e&l%record%&6āÆ' - '&e&l%top player%'Box meter active sign text:#Text for active mode - '&6āāāāāāāāāā' - '&c&lYOUR SCORE' - '&e&l%score%&6āÆ' - '&6āāāāāāāāāā'
Mode config (box_meter.yml)
Box meter locations: []Box meter rewards:Drop mode:MONEYMoney reward:3000.0Items reward: [] #Set by commandCommand reward: []Box meter items to run a game: [] #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