WalkDamage [1.8 -> 1.17.1] Lost health when walking on the block damage icon

WalkDamage [1.8 -> 1.17.1] Lost health when walking on the block damage -----

You will be lost health if you're walking on the block is damaged




- Previous update, i forgot remove the command /wd edit
----------, Oct 29, 2021

- This update will be create a new file .yml, please remove all the custom block in "config.yml" old file and try the new file with the name "datablock.yml"
- Add heal player who is waking above the block can heal.
- Support last version minecraft (1.17 and 1.17.1)
(!) Config.yml add new line and remove custom block, the default config.yml file look like this, you can add some line is new or copy all and paste.
Code (Text):
#Prefix-plugin:
prefix-plugin: "&e[&cWalkDamaged&e]"

#The command is not exist:
command-not-exist: "&4The command is not exist. Please use &e/wd help&4 to see"

#When the player or someone using the command set a value health lost, send them a message that set value success:
set-value-success: "&eNow the value health lost has set to"

#Set a value lost health for the block, some method player input not correct the name block:
block-not-exist: "&eThe name block is not exist. Make sure the name block must be &cUPCASE &eand &cexist in config.yml&e!"

#If the sender don't have permission, send them a message:
no-permission: "&4You don't have permission to do that"

#Send a message for player about that player is damaged by the block:
#true will be send a message for that player is damaged else false is not send message.
allow-message: true
message-damaged-player: "&eYou were damaged by the block"
message-healed-player: "&aYou were heal by the block"

#Reload config.yml file:
reload-config: "&aReloaded config!"

#If the config.yml is broken, send this message in console.
broken-config-message: "&cThere are something wrong in config.yml! Please check."

#If the sender is not a player. Send them a message:
not-player: "&4You're not a player!"

#Allow for all gammode is damaged also CREATIVE!
#true, player who are their gamode SURVIVAL or CREATIVE is still damaged, false just only SURVIVAL is damaged!
#value only: true or false
damaged-all-gamemode: true  
(!) datablock.yml file:
Code (Text):
#This file is talking about custom the block damaged or heal the player's health
#This is sytanx, you can follow it to make a block can damaged to player
#
#Block:
#   <name_block>:                                 (<-- The name block can damaged or heal health's player when the player's moving above this block, the name block must be UPCASE)
#         type-damage: "<lost/heal>"              (<-- Type of the damage for that player, the damage just only 2 type is: lost and heal)
#         change-health:
#            min: <integer number>                (<-- The minimum value the plugin can automatically generate a number for type-damage)
#            max: <integer number>                (<-- The maximum value the plugin can automatically generate a number for type-damage)
#
#If the value min and max is same as, the block will be damage (lost/heal) with the value default.

Block:
   STONE:
      type-damage: "lost"
      change-health:
         min: 1
         max: 2
   IRON_BLOCK:
      type-damage: "heal"
      change-health:
         min: 1
         max: 3
----------, Oct 29, 2021

Fix the error about this plugin can't run on 1.9 -> 1.16.5
----------, Oct 9, 2021

- Add random damaged block from minium to maxium. Remember all the number must be integer positive else your config.yml will be broken.
- Changed more config.yml. Sorry everyone who installed this plugin!

(!) Copy this config.yml

Code (Text):
#Prefix-plugin:
prefix-plugin: "&e[&cWalkDamaged&e]"

#The command is not exist:
command-not-exist: "&4The command is not exist. Please use &e/wd help&4 to see"

#When the player or someone using the command set a value health lost, send them a message that set value success:
set-value-success: "&eNow the value health lost has set to"

#Set a value lost health for the block, some method player input not correct the name block:
block-not-exist: "&eThe name block is not exist. Make sure the name block must be &cUPCASE &eand &cexist in config.yml&e!"

#If the sender don't have permission, send them a message:
no-permission: "&4You don't have permission to do that"

#Send a message for player about that player is damaged by the block:
#true will be send a message for that player is damaged else false is not send message.
allow-message: true
message-damaged-player: "&eYou were damaged by the block"

#Reload config.yml file:
reload-config: "&aReloaded config!"

#If the config.yml is broken, send this message in console.
broken-config-message: "&cThere are something wrong in config.yml! Please check."

#Allow for all gammode is damaged also CREATIVE!
#true, player who are their gamode SURVIVAL or CREATIVE is still damaged, false just only SURVIVAL is damaged!
#value only: true or false
damaged-all-gamemode: true

#Check all the block that player move above them is damaging:
#This is syntax, you can use it to custom your block:
#
#List-block:
#   <block_name>:      (<-- This line is about the name block, the name block must be UPCASE)
#      default:
#         allow: <true/false>   (<-- This line about allow the value damaged is default) (true player will be lost health with default value, false health lost will be random min to max)
#         value: <integer positive number>    (<-- This line is the damaged default value)
#      health-lost:
#         max: <integer positive number>    (<-- The value which is the maxium random)
#         min: <integer positive number>    (<-- The value which is the minium random)
#
#
List-block:
    GRASS:
       default:
          allow: true
          value: 1
       health-lost:
          max: 2
          min: 1
Remember like and give me 5 stars for all my plugins. Thanks so much :love: :love:
----------, Oct 9, 2021

- Change the edi value lost health in command.
- Change config.yml about edit block.
- Add permission

(!) Config.yml has changed please copy this config.yml file for your server if you're using the previous version.

Config.yml
Code (Text):
#Prefix-plugin:

prefix-plugin: "&e[&cWalkDamaged&e]"

#The command is not exist:
command-not-exist: "&4The command is not exist. Please use &e/wd help&4 to see"

#When the player or someone using the command set a value health lost, send them a message that set value success:
set-value-success: "&eNow the value health lost has set to"

#Set a value lost health for the block, some method player input not correct the name block:
block-not-exist: "&eThe name block is not exist. Make sure the name block must be &cUPCASE &eand &cexist in config.yml&e!"

#If the sender don't have permission, send them a message:
no-permission: "&4You don't have permission to do that"
#Reload config.yml file:
reload-config: "&aReloaded config!"

#Check all the block that player move above them is damaging:
#This is syntax, you can use it to custom your block:
#
#List-block:
#   <block_name>:      (<-- This line is about the name block, the name block must be UPCASE)
#      health-lost: <value-number>      (<-- This is is the value health lost, the number maybe the "real number". Player's max health is 20)
#
#
List-block:
    GRASS:
       health-lost: 1
    STONE:
       health-lost: 2
Permission:
Code (Text):
walkdamage.command.admin: Allow use the admin's command
walkdamage.damage.bypass: No damage when you move above the block damage
----------, Oct 8, 2021

Resource Information
Author:
----------
Total Downloads: 247
First Release: Oct 7, 2021
Last Update: Oct 29, 2021
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings