BentoBoxWorld / Level

Add on for BentoBox to calculate island levels for BSkyBlock and AcidIsland. Please read the Wiki!
Eclipse Public License 2.0
24 stars 31 forks source link

level #162

Closed bnjrKemal closed 4 years ago

bnjrKemal commented 4 years ago

When the island is created, it shows the level 0. But when I break the existing blocks, it starts to drop from level 0, i.e. to negative numbers. I turned off the feature that caused the level drop due to deaths. How will I ensure that it does not drop to negative numbers? I think there's an bug issue here.

bbox version

[03:19:40 INFO]: Sunucu PAPER 1.15.2 sürümünde çalışıyor.
[03:19:40 INFO]: BentoBox sürümü: 1.13.1
[03:19:40 INFO]: Database: JSON
[03:19:40 INFO]: Yüklenen oyun dünyaları:
[03:19:40 INFO]: bskyblock (BSkyBlock): Overworld
[03:19:40 INFO]: Yüklenen eklentiler:
[03:19:40 INFO]: BSkyBlock 1.13.1
[03:19:40 INFO]: Chat 1.0.4
[03:19:40 INFO]: IslandFly 1.7.3
[03:19:40 INFO]: IslandRankup 1.8.3
[03:19:40 INFO]: Level 1.9.3
[03:19:40 INFO]: Limits 1.12.1
[03:19:40 INFO]: Warps 1.9.0

my config

# Config file for Level add-on Version 1.9.3

# Game Mode Addons
# Level will hook into these game mode addons. Don't forget to set any world-specific
# block values below!
game-modes:
- AcidIsland
- BSkyBlock
- CaveBlock
#- SkyGrid

# Performance settings
# Level is very processor-intensive, so these settings may need to be tweaked to optimize for your server
# Delay between each task that loads chunks for calculating levels
# Increasing this will slow down level calculations but reduce average load
task-delay: 1

# Number of chunks that will be processed per task
chunks: 10

# This file lists the values for various blocks that are used to calculate the
# island level. Level = total of all blocks in island boundary / 100.
# Players with the permission askyblock.island.multiplier.# will have their blocks
# multiplied in value by that amount.

# Calculate island level on login
# This silently calculates the player's island level when they login
# This applies to all islands the player has on the server, e.g., BSkyBlock, AcidIsland
login: false

# Include nether island in level calculations.
# Warning: Enabling this mid-game will give players with an island a jump in
# island level. New islands will be correctly zeroed.
nether: false

# Include end island in level calculations
# Warning: Enabling this mid-game will give players with an island a jump in
# island level. New islands will be correctly zeroed.
end: false

# Underwater block multiplier
# If blocks are below sea-level, they can have a higher value. e.g. 2x
# Promotes under-water development if there is a sea. Value can be fractional.
underwater: 1.0

# Value of one island level. Default 100. Minimum value is 1.
levelcost: 1000

# Island level calculation formula
# blocks - the sum total of all block values, less any death penalty
# level_cost - in a linear equation, the value of one level
# This formula can include +,=,*,/,sqrt,^,sin,cos,tan. Result will always be rounded to a long integer
# for example, an alternative non-linear option could be: 3 * sqrt(blocks / level_cost)
level-calc: blocks / level_cost

# Cooldown between level requests in seconds
levelwait: 150

# Death penalty
# How many block values a player will lose per death.
# Default value of 100 means that for every death, the player will lose 1 level (if levelcost is 100)
# Set to zero to not use this feature
deathpenalty: 0
# Sum team deaths - if true, all the teams deaths are summed
# If false, only the leader's deaths counts
sumteamdeaths: false
# For other death related settings, see the GameModeAddon's config.yml settings.

# Shorthand island level
# Shows large level values rounded down, e.g., 10,345 -> 10k
shorthand: true

# This section lists the limits for any particular block. Blocks over this amount
# are not counted.
# Format:
# MATERIAL: limit
limits:
  COBBLESTONE: 10000
  NETHERRACK: 1000

# This section lists the value of a block. Value must be an integer.
# Any blocks not listed will have a value of 0. AIR is always zero.
# Format is MATERIAL: value 

blocks:
  COBBLESTONE: 1 #0.001
  DIRT: 30
  GRASS_BLOCK: 40
  STONE: 2
  STONE_BRICKS: 3
  STONE_SLAB: 1
  STONE_BRICK_SLAB: 1
  GRANITE: 10
  ANDESITE: 10
  GRAVEL: 10

  #tahtalar
  OAK_PLANKS: 1
  JUNGLE_PLANKS: 1
  BIRCH_PLANKS: 1
  ACACIA_PLANKS: 1
  DARK_OAK_PLANKS: 1
  SPRUCE_PLANKS: 1

  NETHERRACK: 1
  SOUL_SAND: 10
  GLOWSTONE: 15
  OBSIDIAN: 150
  PACKED_ICE: 30
  SLIME_BLOCK: 0
  COAL_BLOCK: 40
  REDSTONE_BLOCK: 20
  IRON_BLOCK: 50
  GOLD_BLOCK: 200
  DIAMOND_BLOCK: 3000
  SPONGE: 52000
tastybento commented 4 years ago

There is no bug here. If the island level is 0 when you start and you remove blocks, then the island level is less than you started with, so it's negative.