Перейти к содержимому
Mineforgian

Fire Conversion

A simple plugin to let you convert one item to another, using fire!

Загрузки
189
Подписчики
4
Обновлён
6 февраля 2023 г.
Лицензия
GPL-3.0-only

Опубликован 3 февраля 2023 г.

Fire Conversion

Allows you to convert items from one to another using fire.

Configuration

The only configeration file is conversions.yml Every conversion uses one of the following setups:

# Material names can be looked up @ https://jd.papermc.io/paper/1.19/org/bukkit/Material.html

# Simple Conversion
ConversionName: # Can be whatever you want, needs to be unique though.
  sources: # A list of all source materials (what you throw into the fire)
    - MATERIAL_1
    - MATERIAL_2
  result:
    normal: MATERIAL # The result of throwing one of the sources into normal (orange) fire.
    soul: MATERIAL # The result of throwing one of the sources into soul (blue) fire.
    #You can define an amount of material by doing MATERIAL-AMOUNT, it defaults to 1.

# Complex Conversion
ConversionName:
  sources:
    - MATERIAL_1
    - MATERIAL_2
  result:
    normal:
      - RESULT_1-AMOUNT-WEIGHT # The weight is optional, and defaults to 1
      - RESULT_2-AMOUNT-WEIGHT
    soul:
      - RESULT_1-AMOUNT-WEIGHT

Weight determines the odds of that result being picked, for example with the following conversion:

DiamondOreToDiamond:
  sources:
    - DIAMOND_ORE
    - DEEPSLATE_DIAMOND_ORE
  result:
    normal:
      - DIAMOND-1-10 # This would have a 71.4% chance of dropping 1
      - DIAMOND-2-3 # 21.4% chance of dropping 2
      - DIAMOND-3-1 # and 7.1% chance of dropping 3

You can figure out the precentage from the weight by doing WEIGHT/TOTAL_WEIGHT, for example 10/(10+3+1) = 0.714... (x100 for the percentage)

You can also leave one of the results as NONE (or any other invalid material), but must have at least 1 source and 1 result.

If a source shows up multiple times, then it will use the results for the last conversion in the list.

You CANNOT use the following materials as a result:

  • AIR
  • CAVE_AIR
  • VOID_AIR

Ченджлог

1.1Релиз1.21.2, 1.21.3, 1.21.4 · 6 февраля 2023 г.

Added the ability to have multiple results as well as different amounts for results.

1.0Релиз1.19.1, 1.19.2, 1.19.3 · 3 февраля 2023 г.

Initial Release

Комментарии

Загружаем…