Latest commit

History

388 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Magic Cobblestone Generator Addon

DiscordBuild Status

Add-on for BentoBox to provide ability to generate additional block types in cobblestone generators for any BentoBox GameMode. For example, have diamond ore generated, or iron ore. It's magic!

Where to find

You can download it from Release tab

Or you can try nightly builds where you can check and test new features that will be implemented in next release from Jenkins Server.

If you like this addon but something is missing or is not working as you want, you can always submit an Issue request or get a support in Discord BentoBox icon

What to expect

Magic Cobblestone Generator is changed a lot since it first creation, and since Minecraft 1.16, it now operates with all 3 lava based block generations:

  • Classic cobblestone generation
  • Stone generation
  • New basalt generation

Addon also does not work in static progression based on island level. Now it allows users to toggle which generator they want to activate.

Server owner can specify different block generation for each generator, as well as set up small chance to generate treasure on block generation.

Generators can also be limited by a biome and permissions, as well as old island level.

Monetary system is implemented and now users can purchase generators. Server owners can also enable payment cost for activating each generator.

How to use

  1. Place the addon jar in the addons folder of the BentoBox plugin
  2. Restart the server
  3. The addon will create a data folder and inside the folder will be a config.yml and generatorTemplate.yml
  4. Edit the config.yml and generatorTemplate.yml how you want.
  5. Restart the server

To change generators, you can simply edit generatorTemplate.yml at any point. However, to apply changes for GameMode addon, you need to write /[gamemode_admin_command] generator import. Admins can also add/edit/remove generators using AdminGUI.

Magic Cobblestone Generator does not limit how many generators are active. You can activate multiple generators at the same time, but only best suitable for given location will be used. Users have a nice GUI that allows interacting with generators by executing command: /[gamemode_user_command] generator. By right clicking on GUI element, users can see detailed information about each generator. However, the same view can be accessed with /[gamemode_user_command] generator view <generator> command.

There are 2 new permissions that could be useful to customize experience:

  • [gamemode].stone-generator.active-generators.[NUMBER] - permission for island owner that allows increasing active generator number.
  • [gamemode].stone-generator.max-range.[NUMBER] - permission for island owner that allows increasing range in which generator will work. Be aware, it must be enabled in the config.
  • [gamemode].stone-generator.bundle.[bundle_id] - permission for island owner that allows to set specific generator bundle that will work on his island.

Bundles

Bundles are a new feature in this addon. It allows specifying generators that can be used per island. Players will be able to see only generators that are assigned to the bundle. Bundles can be created with template file, or using new Admin Menu.

Placeholders

Magic Cobblestone Generator have 5 placeholders:

  • [gamemode]_magiccobblestonegenerator_active_generator_count - Returns number of currently active generator tiers.
  • [gamemode]_magiccobblestonegenerator_max_active_generator_count - Returns number of maximal amount of active generator tiers.
  • [gamemode]_magiccobblestonegenerator_active_generator_names - Returns text that contains all active generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_unlocked_generator_names - Returns text that contains all unlocked generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_purchased_generator_names - Returns text that contains all purchased generator names separated with ,.

Config.yml

The config.yml has the following sections:

  • Offline Generation - ability to disable addon processing on islands where none of members are online.
  • Physic Usage - ability to specify if block generation should use game physic. Disabling will allow floating gravel, however some redstone machines may stop working.
  • Working Range - specify default working range for the generator to work. If players are not in the given range, then generator will not work.
  • Active Generator Count - specify default amount of generators users can activate at the same time.
  • Notify On Unlock - allows to toggle if message about unlocked generators should be send to island members.
  • Show Filters in GUI - allows to toggle if in player generator selection view filters should be visible.
  • User GUI border block - allows to change border block around player menus.
  • Border block name - allows to change border block name in player menus.

As well as addon contains section that allows to change command aliases. Changing them requires server restart.

generatorTemplate.yml

This is just a template that shows how each generator is set up. Only generator ID must be specified. Other parts can be skipped.

 # Unique Id for generator. Used in internal storage and accessing to each generator data.
generator_unique_id: # Display name for users. Supports colour codes.
# Default value: generator_unique_id without _
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# Generator type: COBBLESTONE, STONE or BASALT. Self explanatory.
# Default value: COBBLESTONE
type: COBBLESTONE
# Indicates if genertor is default generator. Default generators ignores requirement section.
# It is activated for each new island. Can be only one per each generator type.
# Default value: false
default: false
# Users selects active generators.
# Priority indicates which generator will be used
# if multiple of them fulfills requirements.
# Default value: 1
priority: 1
# There are several requirements that can be defined here.
requirements:
# Can define minimal island level for generator to work. Required Level Addon.
# Default value: 0
island-level: 10
# List of required permissions for users to select this generator.
# Default value: []
required-permissions: []
# List of required biomes for generator to work.
# Empty means that there is no limitation in which biome generator works.
# Default value: [].
required-biomes: []
# Cost for purchasing this generator. Requires Vault and any economy plugin.
# Currently implemented by clicking on purchase icon in generator view GUI.
# Default value: 0
purchase-cost: 5.0
# Cost for activating current generator tier. Requires Vault and any economy plugin.
# Will be payed only on active switching between generators.
# Default value: 0.
activation-cost: 0.0
# Materials and their chances. Use actual blocks please.
# Chance supports any positive number, including double value.
# Everything in the end will be normalized.
# Default value: []
blocks:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Treasure that has a chance to be dropped when block is generated.
# ONLY on generation, not on block break.
# Default value: []
treasure:
# Chance from 0 till 1. 0 - will not be possible to get a treasure.
# Default value: 0
chance: 0.001
# Materials that can be dropped. Applies to the same rules as block section.
# Default value: []
material:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Maximal amount of items dropped.
# It will be from 1 till defined amount.
# Default value: 1
amount: 1

Bundles can be created in using the same template file in the section below all generators. Bundles are optimal, and addon can work without them.

 # bundle_id
bundle_unique_id:
# Display name for users
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# List of generators that bundle will work have access.
generators:
- generator_id_1
- generator_id_2

Information

More information can be found in Wiki Pages.

About

Addon for BentoBox to customize ores being generated by a cobblestone generator.

Topics

Resources

Code of conduct

Contributing

Stars

13 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Latest commit

History

388 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Magic Cobblestone Generator Addon

DiscordBuild Status

Add-on for BentoBox to provide ability to generate additional block types in cobblestone generators for any BentoBox GameMode. For example, have diamond ore generated, or iron ore. It's magic!

Where to find

You can download it from Release tab

Or you can try nightly builds where you can check and test new features that will be implemented in next release from Jenkins Server.

If you like this addon but something is missing or is not working as you want, you can always submit an Issue request or get a support in Discord BentoBox icon

What to expect

Magic Cobblestone Generator is changed a lot since it first creation, and since Minecraft 1.16, it now operates with all 3 lava based block generations:

  • Classic cobblestone generation
  • Stone generation
  • New basalt generation

Addon also does not work in static progression based on island level. Now it allows users to toggle which generator they want to activate.

Server owner can specify different block generation for each generator, as well as set up small chance to generate treasure on block generation.

Generators can also be limited by a biome and permissions, as well as old island level.

Monetary system is implemented and now users can purchase generators. Server owners can also enable payment cost for activating each generator.

How to use

  1. Place the addon jar in the addons folder of the BentoBox plugin
  2. Restart the server
  3. The addon will create a data folder and inside the folder will be a config.yml and generatorTemplate.yml
  4. Edit the config.yml and generatorTemplate.yml how you want.
  5. Restart the server

To change generators, you can simply edit generatorTemplate.yml at any point. However, to apply changes for GameMode addon, you need to write /[gamemode_admin_command] generator import. Admins can also add/edit/remove generators using AdminGUI.

Magic Cobblestone Generator does not limit how many generators are active. You can activate multiple generators at the same time, but only best suitable for given location will be used. Users have a nice GUI that allows interacting with generators by executing command: /[gamemode_user_command] generator. By right clicking on GUI element, users can see detailed information about each generator. However, the same view can be accessed with /[gamemode_user_command] generator view <generator> command.

There are 2 new permissions that could be useful to customize experience:

  • [gamemode].stone-generator.active-generators.[NUMBER] - permission for island owner that allows increasing active generator number.
  • [gamemode].stone-generator.max-range.[NUMBER] - permission for island owner that allows increasing range in which generator will work. Be aware, it must be enabled in the config.
  • [gamemode].stone-generator.bundle.[bundle_id] - permission for island owner that allows to set specific generator bundle that will work on his island.

Bundles

Bundles are a new feature in this addon. It allows specifying generators that can be used per island. Players will be able to see only generators that are assigned to the bundle. Bundles can be created with template file, or using new Admin Menu.

Placeholders

Magic Cobblestone Generator have 5 placeholders:

  • [gamemode]_magiccobblestonegenerator_active_generator_count - Returns number of currently active generator tiers.
  • [gamemode]_magiccobblestonegenerator_max_active_generator_count - Returns number of maximal amount of active generator tiers.
  • [gamemode]_magiccobblestonegenerator_active_generator_names - Returns text that contains all active generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_unlocked_generator_names - Returns text that contains all unlocked generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_purchased_generator_names - Returns text that contains all purchased generator names separated with ,.

Config.yml

The config.yml has the following sections:

  • Offline Generation - ability to disable addon processing on islands where none of members are online.
  • Physic Usage - ability to specify if block generation should use game physic. Disabling will allow floating gravel, however some redstone machines may stop working.
  • Working Range - specify default working range for the generator to work. If players are not in the given range, then generator will not work.
  • Active Generator Count - specify default amount of generators users can activate at the same time.
  • Notify On Unlock - allows to toggle if message about unlocked generators should be send to island members.
  • Show Filters in GUI - allows to toggle if in player generator selection view filters should be visible.
  • User GUI border block - allows to change border block around player menus.
  • Border block name - allows to change border block name in player menus.

As well as addon contains section that allows to change command aliases. Changing them requires server restart.

generatorTemplate.yml

This is just a template that shows how each generator is set up. Only generator ID must be specified. Other parts can be skipped.

 # Unique Id for generator. Used in internal storage and accessing to each generator data.
generator_unique_id: # Display name for users. Supports colour codes.
# Default value: generator_unique_id without _
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# Generator type: COBBLESTONE, STONE or BASALT. Self explanatory.
# Default value: COBBLESTONE
type: COBBLESTONE
# Indicates if genertor is default generator. Default generators ignores requirement section.
# It is activated for each new island. Can be only one per each generator type.
# Default value: false
default: false
# Users selects active generators.
# Priority indicates which generator will be used
# if multiple of them fulfills requirements.
# Default value: 1
priority: 1
# There are several requirements that can be defined here.
requirements:
# Can define minimal island level for generator to work. Required Level Addon.
# Default value: 0
island-level: 10
# List of required permissions for users to select this generator.
# Default value: []
required-permissions: []
# List of required biomes for generator to work.
# Empty means that there is no limitation in which biome generator works.
# Default value: [].
required-biomes: []
# Cost for purchasing this generator. Requires Vault and any economy plugin.
# Currently implemented by clicking on purchase icon in generator view GUI.
# Default value: 0
purchase-cost: 5.0
# Cost for activating current generator tier. Requires Vault and any economy plugin.
# Will be payed only on active switching between generators.
# Default value: 0.
activation-cost: 0.0
# Materials and their chances. Use actual blocks please.
# Chance supports any positive number, including double value.
# Everything in the end will be normalized.
# Default value: []
blocks:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Treasure that has a chance to be dropped when block is generated.
# ONLY on generation, not on block break.
# Default value: []
treasure:
# Chance from 0 till 1. 0 - will not be possible to get a treasure.
# Default value: 0
chance: 0.001
# Materials that can be dropped. Applies to the same rules as block section.
# Default value: []
material:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Maximal amount of items dropped.
# It will be from 1 till defined amount.
# Default value: 1
amount: 1

Bundles can be created in using the same template file in the section below all generators. Bundles are optimal, and addon can work without them.

 # bundle_id
bundle_unique_id:
# Display name for users
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# List of generators that bundle will work have access.
generators:
- generator_id_1
- generator_id_2

Information

More information can be found in Wiki Pages.

About

Addon for BentoBox to customize ores being generated by a cobblestone generator.

Topics

Resources

Code of conduct

Contributing

Stars

13 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

388 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Magic Cobblestone Generator Addon

DiscordBuild Status

Add-on for BentoBox to provide ability to generate additional block types in cobblestone generators for any BentoBox GameMode. For example, have diamond ore generated, or iron ore. It's magic!

Where to find

You can download it from Release tab

Or you can try nightly builds where you can check and test new features that will be implemented in next release from Jenkins Server.

If you like this addon but something is missing or is not working as you want, you can always submit an Issue request or get a support in Discord BentoBox icon

What to expect

Magic Cobblestone Generator is changed a lot since it first creation, and since Minecraft 1.16, it now operates with all 3 lava based block generations:

  • Classic cobblestone generation
  • Stone generation
  • New basalt generation

Addon also does not work in static progression based on island level. Now it allows users to toggle which generator they want to activate.

Server owner can specify different block generation for each generator, as well as set up small chance to generate treasure on block generation.

Generators can also be limited by a biome and permissions, as well as old island level.

Monetary system is implemented and now users can purchase generators. Server owners can also enable payment cost for activating each generator.

How to use

  1. Place the addon jar in the addons folder of the BentoBox plugin
  2. Restart the server
  3. The addon will create a data folder and inside the folder will be a config.yml and generatorTemplate.yml
  4. Edit the config.yml and generatorTemplate.yml how you want.
  5. Restart the server

To change generators, you can simply edit generatorTemplate.yml at any point. However, to apply changes for GameMode addon, you need to write /[gamemode_admin_command] generator import. Admins can also add/edit/remove generators using AdminGUI.

Magic Cobblestone Generator does not limit how many generators are active. You can activate multiple generators at the same time, but only best suitable for given location will be used. Users have a nice GUI that allows interacting with generators by executing command: /[gamemode_user_command] generator. By right clicking on GUI element, users can see detailed information about each generator. However, the same view can be accessed with /[gamemode_user_command] generator view <generator> command.

There are 2 new permissions that could be useful to customize experience:

  • [gamemode].stone-generator.active-generators.[NUMBER] - permission for island owner that allows increasing active generator number.
  • [gamemode].stone-generator.max-range.[NUMBER] - permission for island owner that allows increasing range in which generator will work. Be aware, it must be enabled in the config.
  • [gamemode].stone-generator.bundle.[bundle_id] - permission for island owner that allows to set specific generator bundle that will work on his island.

Bundles

Bundles are a new feature in this addon. It allows specifying generators that can be used per island. Players will be able to see only generators that are assigned to the bundle. Bundles can be created with template file, or using new Admin Menu.

Placeholders

Magic Cobblestone Generator have 5 placeholders:

  • [gamemode]_magiccobblestonegenerator_active_generator_count - Returns number of currently active generator tiers.
  • [gamemode]_magiccobblestonegenerator_max_active_generator_count - Returns number of maximal amount of active generator tiers.
  • [gamemode]_magiccobblestonegenerator_active_generator_names - Returns text that contains all active generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_unlocked_generator_names - Returns text that contains all unlocked generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_purchased_generator_names - Returns text that contains all purchased generator names separated with ,.

Config.yml

The config.yml has the following sections:

  • Offline Generation - ability to disable addon processing on islands where none of members are online.
  • Physic Usage - ability to specify if block generation should use game physic. Disabling will allow floating gravel, however some redstone machines may stop working.
  • Working Range - specify default working range for the generator to work. If players are not in the given range, then generator will not work.
  • Active Generator Count - specify default amount of generators users can activate at the same time.
  • Notify On Unlock - allows to toggle if message about unlocked generators should be send to island members.
  • Show Filters in GUI - allows to toggle if in player generator selection view filters should be visible.
  • User GUI border block - allows to change border block around player menus.
  • Border block name - allows to change border block name in player menus.

As well as addon contains section that allows to change command aliases. Changing them requires server restart.

generatorTemplate.yml

This is just a template that shows how each generator is set up. Only generator ID must be specified. Other parts can be skipped.

 # Unique Id for generator. Used in internal storage and accessing to each generator data.
generator_unique_id: # Display name for users. Supports colour codes.
# Default value: generator_unique_id without _
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# Generator type: COBBLESTONE, STONE or BASALT. Self explanatory.
# Default value: COBBLESTONE
type: COBBLESTONE
# Indicates if genertor is default generator. Default generators ignores requirement section.
# It is activated for each new island. Can be only one per each generator type.
# Default value: false
default: false
# Users selects active generators.
# Priority indicates which generator will be used
# if multiple of them fulfills requirements.
# Default value: 1
priority: 1
# There are several requirements that can be defined here.
requirements:
# Can define minimal island level for generator to work. Required Level Addon.
# Default value: 0
island-level: 10
# List of required permissions for users to select this generator.
# Default value: []
required-permissions: []
# List of required biomes for generator to work.
# Empty means that there is no limitation in which biome generator works.
# Default value: [].
required-biomes: []
# Cost for purchasing this generator. Requires Vault and any economy plugin.
# Currently implemented by clicking on purchase icon in generator view GUI.
# Default value: 0
purchase-cost: 5.0
# Cost for activating current generator tier. Requires Vault and any economy plugin.
# Will be payed only on active switching between generators.
# Default value: 0.
activation-cost: 0.0
# Materials and their chances. Use actual blocks please.
# Chance supports any positive number, including double value.
# Everything in the end will be normalized.
# Default value: []
blocks:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Treasure that has a chance to be dropped when block is generated.
# ONLY on generation, not on block break.
# Default value: []
treasure:
# Chance from 0 till 1. 0 - will not be possible to get a treasure.
# Default value: 0
chance: 0.001
# Materials that can be dropped. Applies to the same rules as block section.
# Default value: []
material:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Maximal amount of items dropped.
# It will be from 1 till defined amount.
# Default value: 1
amount: 1

Bundles can be created in using the same template file in the section below all generators. Bundles are optimal, and addon can work without them.

 # bundle_id
bundle_unique_id:
# Display name for users
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# List of generators that bundle will work have access.
generators:
- generator_id_1
- generator_id_2

Information

More information can be found in Wiki Pages.

About

Addon for BentoBox to customize ores being generated by a cobblestone generator.

Topics

Resources

Code of conduct

Contributing

Stars

13 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

388 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Magic Cobblestone Generator Addon

DiscordBuild Status

Add-on for BentoBox to provide ability to generate additional block types in cobblestone generators for any BentoBox GameMode. For example, have diamond ore generated, or iron ore. It's magic!

Where to find

You can download it from Release tab

Or you can try nightly builds where you can check and test new features that will be implemented in next release from Jenkins Server.

If you like this addon but something is missing or is not working as you want, you can always submit an Issue request or get a support in Discord BentoBox icon

What to expect

Magic Cobblestone Generator is changed a lot since it first creation, and since Minecraft 1.16, it now operates with all 3 lava based block generations:

  • Classic cobblestone generation
  • Stone generation
  • New basalt generation

Addon also does not work in static progression based on island level. Now it allows users to toggle which generator they want to activate.

Server owner can specify different block generation for each generator, as well as set up small chance to generate treasure on block generation.

Generators can also be limited by a biome and permissions, as well as old island level.

Monetary system is implemented and now users can purchase generators. Server owners can also enable payment cost for activating each generator.

How to use

  1. Place the addon jar in the addons folder of the BentoBox plugin
  2. Restart the server
  3. The addon will create a data folder and inside the folder will be a config.yml and generatorTemplate.yml
  4. Edit the config.yml and generatorTemplate.yml how you want.
  5. Restart the server

To change generators, you can simply edit generatorTemplate.yml at any point. However, to apply changes for GameMode addon, you need to write /[gamemode_admin_command] generator import. Admins can also add/edit/remove generators using AdminGUI.

Magic Cobblestone Generator does not limit how many generators are active. You can activate multiple generators at the same time, but only best suitable for given location will be used. Users have a nice GUI that allows interacting with generators by executing command: /[gamemode_user_command] generator. By right clicking on GUI element, users can see detailed information about each generator. However, the same view can be accessed with /[gamemode_user_command] generator view <generator> command.

There are 2 new permissions that could be useful to customize experience:

  • [gamemode].stone-generator.active-generators.[NUMBER] - permission for island owner that allows increasing active generator number.
  • [gamemode].stone-generator.max-range.[NUMBER] - permission for island owner that allows increasing range in which generator will work. Be aware, it must be enabled in the config.
  • [gamemode].stone-generator.bundle.[bundle_id] - permission for island owner that allows to set specific generator bundle that will work on his island.

Bundles

Bundles are a new feature in this addon. It allows specifying generators that can be used per island. Players will be able to see only generators that are assigned to the bundle. Bundles can be created with template file, or using new Admin Menu.

Placeholders

Magic Cobblestone Generator have 5 placeholders:

  • [gamemode]_magiccobblestonegenerator_active_generator_count - Returns number of currently active generator tiers.
  • [gamemode]_magiccobblestonegenerator_max_active_generator_count - Returns number of maximal amount of active generator tiers.
  • [gamemode]_magiccobblestonegenerator_active_generator_names - Returns text that contains all active generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_unlocked_generator_names - Returns text that contains all unlocked generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_purchased_generator_names - Returns text that contains all purchased generator names separated with ,.

Config.yml

The config.yml has the following sections:

  • Offline Generation - ability to disable addon processing on islands where none of members are online.
  • Physic Usage - ability to specify if block generation should use game physic. Disabling will allow floating gravel, however some redstone machines may stop working.
  • Working Range - specify default working range for the generator to work. If players are not in the given range, then generator will not work.
  • Active Generator Count - specify default amount of generators users can activate at the same time.
  • Notify On Unlock - allows to toggle if message about unlocked generators should be send to island members.
  • Show Filters in GUI - allows to toggle if in player generator selection view filters should be visible.
  • User GUI border block - allows to change border block around player menus.
  • Border block name - allows to change border block name in player menus.

As well as addon contains section that allows to change command aliases. Changing them requires server restart.

generatorTemplate.yml

This is just a template that shows how each generator is set up. Only generator ID must be specified. Other parts can be skipped.

 # Unique Id for generator. Used in internal storage and accessing to each generator data.
generator_unique_id: # Display name for users. Supports colour codes.
# Default value: generator_unique_id without _
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# Generator type: COBBLESTONE, STONE or BASALT. Self explanatory.
# Default value: COBBLESTONE
type: COBBLESTONE
# Indicates if genertor is default generator. Default generators ignores requirement section.
# It is activated for each new island. Can be only one per each generator type.
# Default value: false
default: false
# Users selects active generators.
# Priority indicates which generator will be used
# if multiple of them fulfills requirements.
# Default value: 1
priority: 1
# There are several requirements that can be defined here.
requirements:
# Can define minimal island level for generator to work. Required Level Addon.
# Default value: 0
island-level: 10
# List of required permissions for users to select this generator.
# Default value: []
required-permissions: []
# List of required biomes for generator to work.
# Empty means that there is no limitation in which biome generator works.
# Default value: [].
required-biomes: []
# Cost for purchasing this generator. Requires Vault and any economy plugin.
# Currently implemented by clicking on purchase icon in generator view GUI.
# Default value: 0
purchase-cost: 5.0
# Cost for activating current generator tier. Requires Vault and any economy plugin.
# Will be payed only on active switching between generators.
# Default value: 0.
activation-cost: 0.0
# Materials and their chances. Use actual blocks please.
# Chance supports any positive number, including double value.
# Everything in the end will be normalized.
# Default value: []
blocks:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Treasure that has a chance to be dropped when block is generated.
# ONLY on generation, not on block break.
# Default value: []
treasure:
# Chance from 0 till 1. 0 - will not be possible to get a treasure.
# Default value: 0
chance: 0.001
# Materials that can be dropped. Applies to the same rules as block section.
# Default value: []
material:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Maximal amount of items dropped.
# It will be from 1 till defined amount.
# Default value: 1
amount: 1

Bundles can be created in using the same template file in the section below all generators. Bundles are optimal, and addon can work without them.

 # bundle_id
bundle_unique_id:
# Display name for users
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# List of generators that bundle will work have access.
generators:
- generator_id_1
- generator_id_2

Information

More information can be found in Wiki Pages.

About

Addon for BentoBox to customize ores being generated by a cobblestone generator.

Topics

Resources

Code of conduct

Contributing

Stars

13 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Latest commit

History

388 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Magic Cobblestone Generator Addon

DiscordBuild Status

Add-on for BentoBox to provide ability to generate additional block types in cobblestone generators for any BentoBox GameMode. For example, have diamond ore generated, or iron ore. It's magic!

Where to find

You can download it from Release tab

Or you can try nightly builds where you can check and test new features that will be implemented in next release from Jenkins Server.

If you like this addon but something is missing or is not working as you want, you can always submit an Issue request or get a support in Discord BentoBox icon

What to expect

Magic Cobblestone Generator is changed a lot since it first creation, and since Minecraft 1.16, it now operates with all 3 lava based block generations:

  • Classic cobblestone generation
  • Stone generation
  • New basalt generation

Addon also does not work in static progression based on island level. Now it allows users to toggle which generator they want to activate.

Server owner can specify different block generation for each generator, as well as set up small chance to generate treasure on block generation.

Generators can also be limited by a biome and permissions, as well as old island level.

Monetary system is implemented and now users can purchase generators. Server owners can also enable payment cost for activating each generator.

How to use

  1. Place the addon jar in the addons folder of the BentoBox plugin
  2. Restart the server
  3. The addon will create a data folder and inside the folder will be a config.yml and generatorTemplate.yml
  4. Edit the config.yml and generatorTemplate.yml how you want.
  5. Restart the server

To change generators, you can simply edit generatorTemplate.yml at any point. However, to apply changes for GameMode addon, you need to write /[gamemode_admin_command] generator import. Admins can also add/edit/remove generators using AdminGUI.

Magic Cobblestone Generator does not limit how many generators are active. You can activate multiple generators at the same time, but only best suitable for given location will be used. Users have a nice GUI that allows interacting with generators by executing command: /[gamemode_user_command] generator. By right clicking on GUI element, users can see detailed information about each generator. However, the same view can be accessed with /[gamemode_user_command] generator view <generator> command.

There are 2 new permissions that could be useful to customize experience:

  • [gamemode].stone-generator.active-generators.[NUMBER] - permission for island owner that allows increasing active generator number.
  • [gamemode].stone-generator.max-range.[NUMBER] - permission for island owner that allows increasing range in which generator will work. Be aware, it must be enabled in the config.
  • [gamemode].stone-generator.bundle.[bundle_id] - permission for island owner that allows to set specific generator bundle that will work on his island.

Bundles

Bundles are a new feature in this addon. It allows specifying generators that can be used per island. Players will be able to see only generators that are assigned to the bundle. Bundles can be created with template file, or using new Admin Menu.

Placeholders

Magic Cobblestone Generator have 5 placeholders:

  • [gamemode]_magiccobblestonegenerator_active_generator_count - Returns number of currently active generator tiers.
  • [gamemode]_magiccobblestonegenerator_max_active_generator_count - Returns number of maximal amount of active generator tiers.
  • [gamemode]_magiccobblestonegenerator_active_generator_names - Returns text that contains all active generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_unlocked_generator_names - Returns text that contains all unlocked generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_purchased_generator_names - Returns text that contains all purchased generator names separated with ,.

Config.yml

The config.yml has the following sections:

  • Offline Generation - ability to disable addon processing on islands where none of members are online.
  • Physic Usage - ability to specify if block generation should use game physic. Disabling will allow floating gravel, however some redstone machines may stop working.
  • Working Range - specify default working range for the generator to work. If players are not in the given range, then generator will not work.
  • Active Generator Count - specify default amount of generators users can activate at the same time.
  • Notify On Unlock - allows to toggle if message about unlocked generators should be send to island members.
  • Show Filters in GUI - allows to toggle if in player generator selection view filters should be visible.
  • User GUI border block - allows to change border block around player menus.
  • Border block name - allows to change border block name in player menus.

As well as addon contains section that allows to change command aliases. Changing them requires server restart.

generatorTemplate.yml

This is just a template that shows how each generator is set up. Only generator ID must be specified. Other parts can be skipped.

 # Unique Id for generator. Used in internal storage and accessing to each generator data.
generator_unique_id: # Display name for users. Supports colour codes.
# Default value: generator_unique_id without _
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# Generator type: COBBLESTONE, STONE or BASALT. Self explanatory.
# Default value: COBBLESTONE
type: COBBLESTONE
# Indicates if genertor is default generator. Default generators ignores requirement section.
# It is activated for each new island. Can be only one per each generator type.
# Default value: false
default: false
# Users selects active generators.
# Priority indicates which generator will be used
# if multiple of them fulfills requirements.
# Default value: 1
priority: 1
# There are several requirements that can be defined here.
requirements:
# Can define minimal island level for generator to work. Required Level Addon.
# Default value: 0
island-level: 10
# List of required permissions for users to select this generator.
# Default value: []
required-permissions: []
# List of required biomes for generator to work.
# Empty means that there is no limitation in which biome generator works.
# Default value: [].
required-biomes: []
# Cost for purchasing this generator. Requires Vault and any economy plugin.
# Currently implemented by clicking on purchase icon in generator view GUI.
# Default value: 0
purchase-cost: 5.0
# Cost for activating current generator tier. Requires Vault and any economy plugin.
# Will be payed only on active switching between generators.
# Default value: 0.
activation-cost: 0.0
# Materials and their chances. Use actual blocks please.
# Chance supports any positive number, including double value.
# Everything in the end will be normalized.
# Default value: []
blocks:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Treasure that has a chance to be dropped when block is generated.
# ONLY on generation, not on block break.
# Default value: []
treasure:
# Chance from 0 till 1. 0 - will not be possible to get a treasure.
# Default value: 0
chance: 0.001
# Materials that can be dropped. Applies to the same rules as block section.
# Default value: []
material:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Maximal amount of items dropped.
# It will be from 1 till defined amount.
# Default value: 1
amount: 1

Bundles can be created in using the same template file in the section below all generators. Bundles are optimal, and addon can work without them.

 # bundle_id
bundle_unique_id:
# Display name for users
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# List of generators that bundle will work have access.
generators:
- generator_id_1
- generator_id_2

Information

More information can be found in Wiki Pages.

About

Addon for BentoBox to customize ores being generated by a cobblestone generator.

Topics

Resources

Code of conduct

Contributing

Stars

13 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

388 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Magic Cobblestone Generator Addon

DiscordBuild Status

Add-on for BentoBox to provide ability to generate additional block types in cobblestone generators for any BentoBox GameMode. For example, have diamond ore generated, or iron ore. It's magic!

Where to find

You can download it from Release tab

Or you can try nightly builds where you can check and test new features that will be implemented in next release from Jenkins Server.

If you like this addon but something is missing or is not working as you want, you can always submit an Issue request or get a support in Discord BentoBox icon

What to expect

Magic Cobblestone Generator is changed a lot since it first creation, and since Minecraft 1.16, it now operates with all 3 lava based block generations:

  • Classic cobblestone generation
  • Stone generation
  • New basalt generation

Addon also does not work in static progression based on island level. Now it allows users to toggle which generator they want to activate.

Server owner can specify different block generation for each generator, as well as set up small chance to generate treasure on block generation.

Generators can also be limited by a biome and permissions, as well as old island level.

Monetary system is implemented and now users can purchase generators. Server owners can also enable payment cost for activating each generator.

How to use

  1. Place the addon jar in the addons folder of the BentoBox plugin
  2. Restart the server
  3. The addon will create a data folder and inside the folder will be a config.yml and generatorTemplate.yml
  4. Edit the config.yml and generatorTemplate.yml how you want.
  5. Restart the server

To change generators, you can simply edit generatorTemplate.yml at any point. However, to apply changes for GameMode addon, you need to write /[gamemode_admin_command] generator import. Admins can also add/edit/remove generators using AdminGUI.

Magic Cobblestone Generator does not limit how many generators are active. You can activate multiple generators at the same time, but only best suitable for given location will be used. Users have a nice GUI that allows interacting with generators by executing command: /[gamemode_user_command] generator. By right clicking on GUI element, users can see detailed information about each generator. However, the same view can be accessed with /[gamemode_user_command] generator view <generator> command.

There are 2 new permissions that could be useful to customize experience:

  • [gamemode].stone-generator.active-generators.[NUMBER] - permission for island owner that allows increasing active generator number.
  • [gamemode].stone-generator.max-range.[NUMBER] - permission for island owner that allows increasing range in which generator will work. Be aware, it must be enabled in the config.
  • [gamemode].stone-generator.bundle.[bundle_id] - permission for island owner that allows to set specific generator bundle that will work on his island.

Bundles

Bundles are a new feature in this addon. It allows specifying generators that can be used per island. Players will be able to see only generators that are assigned to the bundle. Bundles can be created with template file, or using new Admin Menu.

Placeholders

Magic Cobblestone Generator have 5 placeholders:

  • [gamemode]_magiccobblestonegenerator_active_generator_count - Returns number of currently active generator tiers.
  • [gamemode]_magiccobblestonegenerator_max_active_generator_count - Returns number of maximal amount of active generator tiers.
  • [gamemode]_magiccobblestonegenerator_active_generator_names - Returns text that contains all active generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_unlocked_generator_names - Returns text that contains all unlocked generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_purchased_generator_names - Returns text that contains all purchased generator names separated with ,.

Config.yml

The config.yml has the following sections:

  • Offline Generation - ability to disable addon processing on islands where none of members are online.
  • Physic Usage - ability to specify if block generation should use game physic. Disabling will allow floating gravel, however some redstone machines may stop working.
  • Working Range - specify default working range for the generator to work. If players are not in the given range, then generator will not work.
  • Active Generator Count - specify default amount of generators users can activate at the same time.
  • Notify On Unlock - allows to toggle if message about unlocked generators should be send to island members.
  • Show Filters in GUI - allows to toggle if in player generator selection view filters should be visible.
  • User GUI border block - allows to change border block around player menus.
  • Border block name - allows to change border block name in player menus.

As well as addon contains section that allows to change command aliases. Changing them requires server restart.

generatorTemplate.yml

This is just a template that shows how each generator is set up. Only generator ID must be specified. Other parts can be skipped.

 # Unique Id for generator. Used in internal storage and accessing to each generator data.
generator_unique_id: # Display name for users. Supports colour codes.
# Default value: generator_unique_id without _
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# Generator type: COBBLESTONE, STONE or BASALT. Self explanatory.
# Default value: COBBLESTONE
type: COBBLESTONE
# Indicates if genertor is default generator. Default generators ignores requirement section.
# It is activated for each new island. Can be only one per each generator type.
# Default value: false
default: false
# Users selects active generators.
# Priority indicates which generator will be used
# if multiple of them fulfills requirements.
# Default value: 1
priority: 1
# There are several requirements that can be defined here.
requirements:
# Can define minimal island level for generator to work. Required Level Addon.
# Default value: 0
island-level: 10
# List of required permissions for users to select this generator.
# Default value: []
required-permissions: []
# List of required biomes for generator to work.
# Empty means that there is no limitation in which biome generator works.
# Default value: [].
required-biomes: []
# Cost for purchasing this generator. Requires Vault and any economy plugin.
# Currently implemented by clicking on purchase icon in generator view GUI.
# Default value: 0
purchase-cost: 5.0
# Cost for activating current generator tier. Requires Vault and any economy plugin.
# Will be payed only on active switching between generators.
# Default value: 0.
activation-cost: 0.0
# Materials and their chances. Use actual blocks please.
# Chance supports any positive number, including double value.
# Everything in the end will be normalized.
# Default value: []
blocks:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Treasure that has a chance to be dropped when block is generated.
# ONLY on generation, not on block break.
# Default value: []
treasure:
# Chance from 0 till 1. 0 - will not be possible to get a treasure.
# Default value: 0
chance: 0.001
# Materials that can be dropped. Applies to the same rules as block section.
# Default value: []
material:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Maximal amount of items dropped.
# It will be from 1 till defined amount.
# Default value: 1
amount: 1

Bundles can be created in using the same template file in the section below all generators. Bundles are optimal, and addon can work without them.

 # bundle_id
bundle_unique_id:
# Display name for users
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# List of generators that bundle will work have access.
generators:
- generator_id_1
- generator_id_2

Information

More information can be found in Wiki Pages.

About

Addon for BentoBox to customize ores being generated by a cobblestone generator.

Topics

Resources

Code of conduct

Contributing

Stars

13 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Latest commit

History

388 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Magic Cobblestone Generator Addon

DiscordBuild Status

Add-on for BentoBox to provide ability to generate additional block types in cobblestone generators for any BentoBox GameMode. For example, have diamond ore generated, or iron ore. It's magic!

Where to find

You can download it from Release tab

Or you can try nightly builds where you can check and test new features that will be implemented in next release from Jenkins Server.

If you like this addon but something is missing or is not working as you want, you can always submit an Issue request or get a support in Discord BentoBox icon

What to expect

Magic Cobblestone Generator is changed a lot since it first creation, and since Minecraft 1.16, it now operates with all 3 lava based block generations:

  • Classic cobblestone generation
  • Stone generation
  • New basalt generation

Addon also does not work in static progression based on island level. Now it allows users to toggle which generator they want to activate.

Server owner can specify different block generation for each generator, as well as set up small chance to generate treasure on block generation.

Generators can also be limited by a biome and permissions, as well as old island level.

Monetary system is implemented and now users can purchase generators. Server owners can also enable payment cost for activating each generator.

How to use

  1. Place the addon jar in the addons folder of the BentoBox plugin
  2. Restart the server
  3. The addon will create a data folder and inside the folder will be a config.yml and generatorTemplate.yml
  4. Edit the config.yml and generatorTemplate.yml how you want.
  5. Restart the server

To change generators, you can simply edit generatorTemplate.yml at any point. However, to apply changes for GameMode addon, you need to write /[gamemode_admin_command] generator import. Admins can also add/edit/remove generators using AdminGUI.

Magic Cobblestone Generator does not limit how many generators are active. You can activate multiple generators at the same time, but only best suitable for given location will be used. Users have a nice GUI that allows interacting with generators by executing command: /[gamemode_user_command] generator. By right clicking on GUI element, users can see detailed information about each generator. However, the same view can be accessed with /[gamemode_user_command] generator view <generator> command.

There are 2 new permissions that could be useful to customize experience:

  • [gamemode].stone-generator.active-generators.[NUMBER] - permission for island owner that allows increasing active generator number.
  • [gamemode].stone-generator.max-range.[NUMBER] - permission for island owner that allows increasing range in which generator will work. Be aware, it must be enabled in the config.
  • [gamemode].stone-generator.bundle.[bundle_id] - permission for island owner that allows to set specific generator bundle that will work on his island.

Bundles

Bundles are a new feature in this addon. It allows specifying generators that can be used per island. Players will be able to see only generators that are assigned to the bundle. Bundles can be created with template file, or using new Admin Menu.

Placeholders

Magic Cobblestone Generator have 5 placeholders:

  • [gamemode]_magiccobblestonegenerator_active_generator_count - Returns number of currently active generator tiers.
  • [gamemode]_magiccobblestonegenerator_max_active_generator_count - Returns number of maximal amount of active generator tiers.
  • [gamemode]_magiccobblestonegenerator_active_generator_names - Returns text that contains all active generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_unlocked_generator_names - Returns text that contains all unlocked generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_purchased_generator_names - Returns text that contains all purchased generator names separated with ,.

Config.yml

The config.yml has the following sections:

  • Offline Generation - ability to disable addon processing on islands where none of members are online.
  • Physic Usage - ability to specify if block generation should use game physic. Disabling will allow floating gravel, however some redstone machines may stop working.
  • Working Range - specify default working range for the generator to work. If players are not in the given range, then generator will not work.
  • Active Generator Count - specify default amount of generators users can activate at the same time.
  • Notify On Unlock - allows to toggle if message about unlocked generators should be send to island members.
  • Show Filters in GUI - allows to toggle if in player generator selection view filters should be visible.
  • User GUI border block - allows to change border block around player menus.
  • Border block name - allows to change border block name in player menus.

As well as addon contains section that allows to change command aliases. Changing them requires server restart.

generatorTemplate.yml

This is just a template that shows how each generator is set up. Only generator ID must be specified. Other parts can be skipped.

 # Unique Id for generator. Used in internal storage and accessing to each generator data.
generator_unique_id: # Display name for users. Supports colour codes.
# Default value: generator_unique_id without _
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# Generator type: COBBLESTONE, STONE or BASALT. Self explanatory.
# Default value: COBBLESTONE
type: COBBLESTONE
# Indicates if genertor is default generator. Default generators ignores requirement section.
# It is activated for each new island. Can be only one per each generator type.
# Default value: false
default: false
# Users selects active generators.
# Priority indicates which generator will be used
# if multiple of them fulfills requirements.
# Default value: 1
priority: 1
# There are several requirements that can be defined here.
requirements:
# Can define minimal island level for generator to work. Required Level Addon.
# Default value: 0
island-level: 10
# List of required permissions for users to select this generator.
# Default value: []
required-permissions: []
# List of required biomes for generator to work.
# Empty means that there is no limitation in which biome generator works.
# Default value: [].
required-biomes: []
# Cost for purchasing this generator. Requires Vault and any economy plugin.
# Currently implemented by clicking on purchase icon in generator view GUI.
# Default value: 0
purchase-cost: 5.0
# Cost for activating current generator tier. Requires Vault and any economy plugin.
# Will be payed only on active switching between generators.
# Default value: 0.
activation-cost: 0.0
# Materials and their chances. Use actual blocks please.
# Chance supports any positive number, including double value.
# Everything in the end will be normalized.
# Default value: []
blocks:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Treasure that has a chance to be dropped when block is generated.
# ONLY on generation, not on block break.
# Default value: []
treasure:
# Chance from 0 till 1. 0 - will not be possible to get a treasure.
# Default value: 0
chance: 0.001
# Materials that can be dropped. Applies to the same rules as block section.
# Default value: []
material:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Maximal amount of items dropped.
# It will be from 1 till defined amount.
# Default value: 1
amount: 1

Bundles can be created in using the same template file in the section below all generators. Bundles are optimal, and addon can work without them.

 # bundle_id
bundle_unique_id:
# Display name for users
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# List of generators that bundle will work have access.
generators:
- generator_id_1
- generator_id_2

Information

More information can be found in Wiki Pages.

About

Addon for BentoBox to customize ores being generated by a cobblestone generator.

Topics

Resources

Code of conduct

Contributing

Stars

13 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Latest commit

History

388 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Magic Cobblestone Generator Addon

DiscordBuild Status

Add-on for BentoBox to provide ability to generate additional block types in cobblestone generators for any BentoBox GameMode. For example, have diamond ore generated, or iron ore. It's magic!

Where to find

You can download it from Release tab

Or you can try nightly builds where you can check and test new features that will be implemented in next release from Jenkins Server.

If you like this addon but something is missing or is not working as you want, you can always submit an Issue request or get a support in Discord BentoBox icon

What to expect

Magic Cobblestone Generator is changed a lot since it first creation, and since Minecraft 1.16, it now operates with all 3 lava based block generations:

  • Classic cobblestone generation
  • Stone generation
  • New basalt generation

Addon also does not work in static progression based on island level. Now it allows users to toggle which generator they want to activate.

Server owner can specify different block generation for each generator, as well as set up small chance to generate treasure on block generation.

Generators can also be limited by a biome and permissions, as well as old island level.

Monetary system is implemented and now users can purchase generators. Server owners can also enable payment cost for activating each generator.

How to use

  1. Place the addon jar in the addons folder of the BentoBox plugin
  2. Restart the server
  3. The addon will create a data folder and inside the folder will be a config.yml and generatorTemplate.yml
  4. Edit the config.yml and generatorTemplate.yml how you want.
  5. Restart the server

To change generators, you can simply edit generatorTemplate.yml at any point. However, to apply changes for GameMode addon, you need to write /[gamemode_admin_command] generator import. Admins can also add/edit/remove generators using AdminGUI.

Magic Cobblestone Generator does not limit how many generators are active. You can activate multiple generators at the same time, but only best suitable for given location will be used. Users have a nice GUI that allows interacting with generators by executing command: /[gamemode_user_command] generator. By right clicking on GUI element, users can see detailed information about each generator. However, the same view can be accessed with /[gamemode_user_command] generator view <generator> command.

There are 2 new permissions that could be useful to customize experience:

  • [gamemode].stone-generator.active-generators.[NUMBER] - permission for island owner that allows increasing active generator number.
  • [gamemode].stone-generator.max-range.[NUMBER] - permission for island owner that allows increasing range in which generator will work. Be aware, it must be enabled in the config.
  • [gamemode].stone-generator.bundle.[bundle_id] - permission for island owner that allows to set specific generator bundle that will work on his island.

Bundles

Bundles are a new feature in this addon. It allows specifying generators that can be used per island. Players will be able to see only generators that are assigned to the bundle. Bundles can be created with template file, or using new Admin Menu.

Placeholders

Magic Cobblestone Generator have 5 placeholders:

  • [gamemode]_magiccobblestonegenerator_active_generator_count - Returns number of currently active generator tiers.
  • [gamemode]_magiccobblestonegenerator_max_active_generator_count - Returns number of maximal amount of active generator tiers.
  • [gamemode]_magiccobblestonegenerator_active_generator_names - Returns text that contains all active generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_unlocked_generator_names - Returns text that contains all unlocked generator names separated with ,.
  • [gamemode]_magiccobblestonegenerator_purchased_generator_names - Returns text that contains all purchased generator names separated with ,.

Config.yml

The config.yml has the following sections:

  • Offline Generation - ability to disable addon processing on islands where none of members are online.
  • Physic Usage - ability to specify if block generation should use game physic. Disabling will allow floating gravel, however some redstone machines may stop working.
  • Working Range - specify default working range for the generator to work. If players are not in the given range, then generator will not work.
  • Active Generator Count - specify default amount of generators users can activate at the same time.
  • Notify On Unlock - allows to toggle if message about unlocked generators should be send to island members.
  • Show Filters in GUI - allows to toggle if in player generator selection view filters should be visible.
  • User GUI border block - allows to change border block around player menus.
  • Border block name - allows to change border block name in player menus.

As well as addon contains section that allows to change command aliases. Changing them requires server restart.

generatorTemplate.yml

This is just a template that shows how each generator is set up. Only generator ID must be specified. Other parts can be skipped.

 # Unique Id for generator. Used in internal storage and accessing to each generator data.
generator_unique_id: # Display name for users. Supports colour codes.
# Default value: generator_unique_id without _
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# Generator type: COBBLESTONE, STONE or BASALT. Self explanatory.
# Default value: COBBLESTONE
type: COBBLESTONE
# Indicates if genertor is default generator. Default generators ignores requirement section.
# It is activated for each new island. Can be only one per each generator type.
# Default value: false
default: false
# Users selects active generators.
# Priority indicates which generator will be used
# if multiple of them fulfills requirements.
# Default value: 1
priority: 1
# There are several requirements that can be defined here.
requirements:
# Can define minimal island level for generator to work. Required Level Addon.
# Default value: 0
island-level: 10
# List of required permissions for users to select this generator.
# Default value: []
required-permissions: []
# List of required biomes for generator to work.
# Empty means that there is no limitation in which biome generator works.
# Default value: [].
required-biomes: []
# Cost for purchasing this generator. Requires Vault and any economy plugin.
# Currently implemented by clicking on purchase icon in generator view GUI.
# Default value: 0
purchase-cost: 5.0
# Cost for activating current generator tier. Requires Vault and any economy plugin.
# Will be payed only on active switching between generators.
# Default value: 0.
activation-cost: 0.0
# Materials and their chances. Use actual blocks please.
# Chance supports any positive number, including double value.
# Everything in the end will be normalized.
# Default value: []
blocks:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Treasure that has a chance to be dropped when block is generated.
# ONLY on generation, not on block break.
# Default value: []
treasure:
# Chance from 0 till 1. 0 - will not be possible to get a treasure.
# Default value: 0
chance: 0.001
# Materials that can be dropped. Applies to the same rules as block section.
# Default value: []
material:
FIRST_BLOCK_NAME_ID: NUMBER
SECOND_BLOCK_NAME_ID: NUMBER
# Maximal amount of items dropped.
# It will be from 1 till defined amount.
# Default value: 1
amount: 1

Bundles can be created in using the same template file in the section below all generators. Bundles are optimal, and addon can work without them.

 # bundle_id
bundle_unique_id:
# Display name for users
name: "Something fancy"
# Description in lore message. Supports colour codes.
# Can be defined empty by replacing eveything with [].
# Default value: []
description: -|
First Line Of lore Message
&2Second Line Of lore Message
# Icon used in GUI's. Number at the end allows to specify stack size for item.
# Default value: Paper.
icon: "PAPER:1"
# List of generators that bundle will work have access.
generators:
- generator_id_1
- generator_id_2

Information

More information can be found in Wiki Pages.

About

Addon for BentoBox to customize ores being generated by a cobblestone generator.

Topics

Resources

Code of conduct

Contributing

Stars

13 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages