MagicBows Wiki
  • 🏹MagicBows Wiki
  • Configuration
    • 🛠️How to install MagicBows
      • 📝Configuration of Config.yml
    • 🏹Bows Configuration
      • 🔧Basics Options
      • 🚩Bow Flags
      • ⚙️Custom options
        • 🎭Teleport
        • ⏱️Cooldown
        • 🎶Sounds and Particles
        • 🤯Explosion
        • 🏠Generate Blocks
    • 🔓Permissions
  • Support
    • 🛠️Support Discord
Powered by GitBook
On this page
  1. Configuration
  2. 🏹Bows Configuration
  3. ⚙️Custom options

🏠Generate Blocks

PreviousExplosionNextPermissions

Last updated 2 years ago

CtrlK

List of block generation (At the moment there are only these but more will be added in the future and if you want to make a suggestion contact me by discord: josielcm#8990)

  • SPHERE - Generation

  • PYRAMID - Generation

For all block generation you need this structure, some parameters vary depending on the type.

    block-generation:
      enable: true # For enable this option
      type: YOUR-TYPE
      radius: 7.0 or 7 # Set your radius depending on the structure and desired values
      height: Your value
      material: WHITE_STAINED_GLASS # Your material
      affect-blocks: false # This option refers to chests, doors, fences, slabs and trapdoors. I recommend leaving it on false to avoid bugs or that when regenerating the chests the items are lost.
      regenerate-blocks: true # Recommended
      cooldown-regenerate: 5 # Time in seconds / Only if your have regenerate-blocks in true
      particle: # Add particle for the blocks when spawn / These particles are recommended to put a low amount to avoid lag.
        type: PORTAL
        amount: 5

Recommendations for block regeneration: Set the same regeneration time as the arc cooldown, clearly set a cooldown on the arc to avoid regeneration failures.

The affect-blocks option is recommended to be set to false as it avoids replacing blocks that may regenerate badly such as a door, a slab, a chest (losing items), etc.

In the particle option of the block generation category, it is advisable not to put too many particles because it could cause lag to some users and also to the server if too many are used in large quantities.

If your server does not have many resources, I do not recommend you to set the block generation size to 20 as it would be too big and could cause a TPS crash.

SPHERE

To add the function to be able to generate structures like SPHERE you need to have the following:

  • block-generation

  • enable

  • type

  • radius

In "type" enter the name SPHERE example:

In the SPHERE typo you need to specify the typo as "SPHERE" and in radius place a value with decimal e.g. 7.0 bo affects but it is recommended and specify a material suitable for your version and set the other values like block regeneration which is recommended along with the regeneration time if you set it to true.

PYRAMID

To add this type of block generation you need to add unlike the others these options:

  • HEIGHT

  • RADIUS

The "Height" parameter specifies the height of this pyramid and the "Radius" the radius of the base, clearly in the type part you must place "PYRAMID" for it to work correctly and the values of height and radius you place them with whole numbers ie without decimals, specify a suitable material for your version and place the other values as the regeneration of blocks that is recommended along with the regeneration time if you place it to true.

    # Generate blocks parameters
    block-generation:
      enable: true
      type: SPHERE # HERE
      radius: 7.0
      material: WHITE_STAINED_GLASS
      affect-blocks: false # This option refers to chests, doors, fences, slabs and trapdoors. I recommend leaving it on false to avoid bugs or that when regenerating the chests the items are lost.
      regenerate-blocks: true
      cooldown-regenerate: 5 # Time in seconds
      particle:
        type: PORTAL
        amount: 8
    block-generation:
      enable: true
      type: PYRAMID
      radius: 5
      height: 5
      material: SANDSTONE
      affect-blocks: false # This option refers to chests, doors, fences, slabs and trapdoors. I recommend leaving it on false to avoid bugs or that when regenerating the chests the items are lost.
      regenerate-blocks: true
      cooldown-regenerate: 5 # Time in seconds
      particle:
        type: PORTAL
        amount: 8