Giter VIP home page Giter VIP logo

ouroborosmines's Introduction

OuroborosMines

OuroborosMines allows you to make mines you created yourself mineable for players without destroying anything. The plugin is highly customizable and you can define your own mining materials with ease. Please have a look at the wiki for more information.

Contributing

OuroborosMines is licensed under the conditions of the MIT-License. Contributions in form of code or donations are always welcome.

Reporting issues / Requesting features

Issue-reporting and feature-requests are an essential part of the plugins development. However, issues and requests that do not follow the issue templates might be rejected.

Donations

Donations are always welcome and help me to keep my servers up and running or finance my development software. Sponsor me on GitHub

ouroborosmines's People

Contributors

shadmage avatar skytasul avatar th3shadowbroker avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ouroborosmines's Issues

Randomized respawn cooldowns

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like

The respawn behavior feels a little bit static at the moment, as every block is respawning after the exact samt time. That means when one is farming in a mine, he definitely knows when which block will respawn in what pattern.
I think it could feel more interesting if the blocks could be given a timespan rather than an exact respawn time. In the config it could look like "cooldown: 10-25" which ultimately means "After a block of that type is broken pick a random number from 10 to 25 an set it as the respawn tiner for that block".

As described in the thread.

Compatibility with BeautyQuests

Is your feature request related to a problem? Please describe.
With the BeautyQuest plugin do not count the ores that are taken in an area with the flag set.
I imagine it's the same kind of incomtability that they had before with Quests and then they fixed it.
(https://www.spigotmc.org/threads/ouroboros-mines.401636/page-2#post-3713899)

Describe the solution you'd like
The solution is to count the ores that are removed in a region with the OM flag

Im using BeautyQuests 0.18 - Pre-release and Ouroboros-Mines 1.8.1-SNAPSHOT
The latest versions of each plugin.

I stay tuned, thank you very much.

Add the possibility to earn experience

Describe the solution you'd like
I want a solution that enables the user to earn experience when they mine ores and/or discover deposits. This requires a bit more setup regarding to the region configurations and stuff but will be worth it. I should also consider adding support for the most used job plugin

Commands + Chance

Is your feature request related to a problem? Please describe.
Nope

Describe the solution you'd like
I'd like the following feature implemented to this plugin

Commands with reward chance (Configurable & multiple commands)
https://gyazo.com/93dea2d3b42dad87b9d05a397d19da35

Describe alternatives you've considered
None

Additional context
None

Item durability isn't decreased when mining

Describe the bug
Originally described by @laspi94 as mining on the region whith the flag, item no loss durability.

To Reproduce
Steps to reproduce the behavior:

  1. Mine within a region.
  2. Mine.
  3. Item durability isn't decreased.

Expected behavior
The mining tool is supposed to lose durability.

Rich deposit triggers another rich deposit by chance

Describe the bug
When a rich deposit is replaced by the own blocktype and then mined again, it seems that the new ore-block can trigger another rich deposit.
Therefore the block can be mined more often than set in the configuration.
In one specific test a coal-block could be mined up to 18 times even if the configuration was set to a maximum of 5 additional times.

Testing environment
The following region configuration was used for this test:

inherit: false
materials:
  stone:
    replacements:
    - cobblestone
    cooldown: 10
    
  coal_ore:
    replacements:
    - stone
    cooldown: 20-170
    rich-chance: 75
    rich-amount: 1-5

To Reproduce
Steps to reproduce the behavior:

  1. Setup a region with the configuration above
  2. Mine coal deposits until a rich deposit is found
  3. Count the amount of mineable blocks after the first one

Expected behavior
The additional mineable amount of a rich deposit should not exceed the maximum value set under "rich-amount" in the configuration file.
A spawned rich deposit should not trigger another rich deposit.

Desktop (please complete the following information):

  • Minecraft-version: 1.14.4
  • Server-version: git-Spigot-56f8471-7554e08 (Implementing API version 1.14.4-R0.1-SNAPSHOT)

Add auto-pickup

Describe the solution you'd like
A possibility to send items directly to the player's inventory instead of breaking the block.

Additional context
Discord post

[EcoSkills] Eco Effect not activating after setting OM mine region flag too 'true'

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

setup a mine with gold, coal, or oak wood.
mine without the flag for the mine set to true.
the effect will activate fine, the player with say, hi.
but as soon as the mine region flag is set too true, the effect activation does not happen.

im not sure if its with other Eco plugins, but its not working with Actions.
not sure if this is OM or Eco.

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • Minecraft-version: 1.19.4
  • Server-version: 1.19.4 version 491 items adder is not running past that so I haven't updated.

thats the region config.

inherit: false
materials:
  itemsadder:gemrocks_block:
    replacements:
    - cobblestone
    cooldown: 10
  coal_ore:
    replacements:
    - stone
    cooldown: 20
  gold_ore:
    replacements:
    - stone
    cooldown: 30
  iron_ore:
    replacements:
    - stone
    cooldown: 40
  emerald_ore:
    replacements:
    - stone
    cooldown: 50
  oak_wood:
    replacements:
    - air
    cooldown: 1
  diamond_ore:
    replacements:
    - stone
    cooldown: 120

thats the actins config

enabled: true
effects:
  - id: run_player_command
    args:
      chance: 100
      command: "say hi"
    triggers:
      - mine_block
    filters:
      blocks:
        - gold_ore
        - coal_ore
        - oak_wood

conditions: [ ]

OuroborosMines is unable to register the flag

When I start a server with a small number of plugins, Ouroboros starts up perfectly (Worldguard is installed), but when there are more than 48 plugins, when the server starts, it gives this error and does not work. I don't even know what else to connect with, other than the number of plugins.

That is, not with the presence or absence of a specific one, but simply with the total number - any over 48 and Ouroboros gives an error and does not load.

  1. Install the list of the listed plugins or any other of your own, in the amount of more than 48 pieces, including Ouroboros and WorldGuard.
  2. Observe the error with Ouroboros connections to WorldGuard in the console when starting the server.
  3. Remove at least one of any plugin. Start the server again. Voila, everything works without errors.

Server-version: yatopia-1.16.5-yatoclip-b21.jar and 1.16.4-paper-275

Implement support for GriefDefender

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
Support for the thirdparty plugin GriefDefender [Spigot] [Git]. Originally requested by Darious_Vrex on Discord.

Additional context
Generalizing region providers might be helpful. Not only for this specific case, but also for other WorldGuard alternatives like GriefPrevention etc.

Implement help command

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
A command like /om help that displays instructions on how to use the pluging's commands and what they do.
The diplayed text could be made configurable through the config.

Describe alternatives you've considered
None.

Additional context
Originally suggested by Lorenzo (aka. Sloth) in a discord conversation.

Quests support

Is your feature request related to a problem? Please describe.
Yes. Ores that were picked up in a mining region are not counted for the current objective.

Describe the solution you'd like
Support for the plugin.

Describe alternatives you've considered
It could be possible to create a custom objective which could be then used in the Quest's progress.
As an alternative, the problem might be caused by different event-levels.

Additional context

  • Reported by ItaloPL on spigot (thread)
  • User has Quests 3.8.8 installed

Opening hours for mines

Describe the solution you'd like
I would like to implement "opening hours" for mines, which would be a great mechanic for clan servers.

Additional context
Discord post

Add mining permit

Adding permission to drop ore from mine blocks. Only those with this permit can extract ore from the mine.

Player stats not updated

Describe the bug
Player stats for mined blocks are not getting updated when mined within a mining region.

To Reproduce

  1. Create a mining region
  2. Mine within the region
  3. Keep an eye on the stats

Expected behavior
Stats updating as they're supposed to.

Additional context

  • Reported by shadow on discord [Post]

Adding support for ItemsAdder

i would like to have the ability to add custom ores and custom drops using nbt tags.
i am using itemsadder by lonedev and would like to be able to place in the blocks ive added into my server to mine in the mines warp. if thats possible that would be great.

Allow the user to set days on when to open the mines.

I'd love to see a bit more regulation when it comes to mining schedules. For example being able to dictate on what days the time schedule should work etc.

Overall more customizability and flexibility setting up regions.

context
We're currently running a quite decent towny community server. Where we have 9 custom made mines scattered across the world. These mines are the only places where players are able to get diamond in order to halt the gear progression curve. Anyway the mines are grouped up in 3 cycles. Before we had some worldguard trickery with entry allow and true, but in the end it was to much hassle and sometimes the commands didn't fire etc. So we just brought it back to just OM controlling each schedule of the day with all 9 mines opening.

In the end i'd really love to see this plugin being able to manage in our case only allowing nmr 1, 2 and 3 to open between 12:00-00:00 but only on mondays and thursdays for example

Edit loot that drops

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I have a plugin that makes it so you need to use tools to break blocks. I've set up my tutorial area with a quest to gather the things you need to create your first tool a "Hatchet" I use Ouroborosmines to allow them to break the blocks in this cave. However, it's not really dropping as many sticks or gravel as I'd like.

Describe the solution you'd like
Would it be possible to be able to select the loot that would drop from breaking the blocks? Or at least the percentage chance?

Describe alternatives you've considered
Running a command when certain blocks are broken such a /give User Sticks 10

Additional context
Add any other context or screenshots about the feature request here.

Placeholder support

Placeholder support to show the remaining time until opening/closing time of specific mines.

Rich deposits

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like

Another rough idea was the possibility for rare "rich ore deposits" to spawn. Which in terms of mechanics would mean, a chance that a block is replaced by his own block type. Could be realized using the existing "replacements" list to determine the chance of that happening. For example

Code (YAML):
 coal_ore:
    replacements:
   - stone
    - stone
    - stone
    - coal_ore
    cooldown: 20

could give a 25% chance of a rich coal deposit. Although that would be somewhat limited in terms of the "richness" of the deposit, as a consecutive resapwn (here: coal -> coal -> coal) becomes very unlikely pretty quick. And it also would look a bit strange in the config file itself if you want to have like a 1% chance. :D
A smoother mechanic would be to add a new optional category with a percentage to spawn a rich deposit and a range of how many times it should refresh itself. For example:

 coal_ore:
    replacements:
   - stone
    rich_chance: 25
    rich_count: 2-4
    cooldown: 20

As described in the thread.

EcoSkills. Not gaining XP after activating mine.

Describe the bug
A clear and concise description of what the bug is.

I have EcoSkills plugin. I gain XP fine cutting wood, I'd assume it's the same for mining. But I've just tried on wood regeneration.
As soon as I add the flag to world edit to activate the OM mine. I no longer get XP for the skill.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Minecraft-version: 1.19.4
  • Server-version: latest paper.
  • I'm using Fastasyncworldedit.

Additional context
Add any other context about the problem here.

Add support for Aurelium Skills

Is your feature request related to a problem? Please describe.

Describe the solution you'd like
Skills getting better when mining/breaking blocks in OM regions.

Describe alternatives you've considered

Additional context
Original request from magicprog. I've tried to make the event cancellation obsolete. However, this leads to unwanted side-effects with WorldGuard.

Randomise Mined Ore With Random Ore

Is your feature request related to a problem? Please describe.
Plugin is exceptional for what is is, however this would improve this plugin immensely if possible.
Describe the solution you'd like
Once breaking an ore, it will replace with a completely random ore with chances stated in the mine config depending on which block/ore it is. For example, break a diamond ore, and after the two minute cooldown, it has a chance to become stone, coal ore, etc.

Send messages when a deposit is discovered

Maybe a chat message to the player who just found a rich deposit would be nice too. (with the option to change the text and to en-/dis-able the message in the general config.yml of course, so noone gets bothered if he doesn't want to ;))
Could be something very basic like "&fYou found a &2rich&f deposit!"
to a bit more sophisticated like "&fYou found a &2[rich_count > (0.5 * rich_max) ? "large"] rich&f [ORE_NAME] deposit!" ... with a sound playing ... and fireworks... and the server burning down! Ok, I got carried away here... :) But the sound would really be cool.

As suggested in this post.

Logs facing wrong way

Describe the bug
Logs aren't replaced the correct way

To Reproduce
Steps to reproduce the behavior:

place logs, and mine the log.

Expected behavior
correctly sided log

Screenshots
image

Desktop (please complete the following information):

  • Minecraft-version: tuinity version git-tuinity-"8056d13"
  • Server-version: tuinity version git-tuinity-"8056d13"

Additional context
none

Implement foundation for flexible region providers

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
An implementation for supporting WorldGuard alternatives.
This way OM can expand it's target group and become more open for new plugins.

Additional context

  • Lays the foundation for #40
  • Will prevent problems like #66, as all classes that are provider specifc are loaded outside of onLoad.

Add individual region configurations

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
A possibility to set individual cooldowns for different mines using a config file.
See this thread for reference!

ToDo

  • Update dependencies
  • Check WorldGuard for region-id handling
  • Build working prototype
  • Create complete implementation based on prototype
  • Add command to trigger config generation to keep obsolete configurations from being generated
  • Final polish

Messed up loading-order preventing OM from integrating correctly

Describe the bug
@Italoplcl reported issues with the BeautyQuests support (Requested in #39, Merged in #42).
For some reason, the support modules arent' loading correctly. This also affects PAPI and Jobs support!

To Reproduce
Unknown. Even if I use the same plugin version, the error does not occurr.
However, the log files from @Italoplcl show, that OM isn't loading as expected.
The same goes for BQ.

Expected behavior
OM and BQ loading normally and in the correct order.

Desktop (please complete the following information):

  • Minecraft-version: 1.16.3
  • Server-version: 1.16.3 Paper

Additional context
See discord for additional context.

Multilayer regions cause issues

Describe the bug
When a region is created inside another region and both are flagged as mines, the configuration of the region with the higher layer is used.

To Reproduce
Self explanatory

Expected behavior
See description.

Making the time roll over past 24:00 into the new day does not work

Using the time 22:00-01:00 seems to not work

inherit: false
materials:
  iron_ore:
    replacements:
    - stone
    cooldown: 4500
    rich-chance: 3
    rich-amount: 5-6
  emerald_ore:
    replacements:
    - stone
    cooldown: 7200-9000
    rich-chance: 3
    rich-amount: 2-3
  diamond_ore:
    replacements:
    - stone
    cooldown: 7200-9000
    rich-chance: 3
    rich-amount: 2-3
    
openingHours:
  enabled: true
  realtime: 
      - 22:00-01:00
  announcements:
    opening: true
    closing: true
    worlds:
    - world

chat:
messages:
announcements:
opening: "&2Mines 3,4 and 8 are now open!"
closing: "&cMines 3,4 and 8 are now closed. Come back tomorrow!"
minesClosed: "&cThis mine is closed come back later."

Expected behavior
As asked in a previous report one would expect the mines to remain op till 01:00

Desktop (please complete the following information):

  • Minecraft-version: 1.16.5
  • Server-version: Purpur 1.16.5 #1056
# OuroborosMines v1.10.0-SNAPSHOT by Th3Shadowbroker
# 
# When true all regions will be handled as OM-zone.
# Not recommended for big-servers as the replacement-tasks require a lot of scheduling.
default: false
chat:
  prefix: '&9[OM]'
  messages:
    awaitingRightClick: '&2Right-click the chest you want to create the drop group
      from or type &e/om dg&2 to cancel!'
    awaitingRightClickCancelled: '&cDrop group creation cancelled!'
    consoleNotAllowed: '&cThis command can not be executed from console!'
    dropGroupCreated: '&2Saved drop group &e%name%'
    dropGroupExists: '&cThere''s already a drop-group name &e%name%&c!'
    unrecognizedArgument: '&cUnrecognized argument'
    missingDropGroupName: '&cMissing drop-group name!'
    regionCustomize: '&2A new configuration file for &b%region%&2 has been created!'
    regionAlreadyCustomized: '&cThere''s already a configuration file for this region!'
    regionNotFound: '&cNo region found at your position!'
    reloadingConfig: '&2Reloading configuration...'
    reloadingRegionConfigurations: '&2Reloading region-configurations...'
    reloadedRegionConfigurations: '&2Loaded %count% region-specific configurations'
    reloadingDropGroups: '&2Reloading drop groups...'
    reloadedDropGroups: '&2Loaded %count% drop groups'
    worldNotFound: '&cWorld &e%world% &cnot found!'
    depositDiscovered: '&2You''ve discovered a %size% &e%material%&2 deposit!'
    depositSizes:
      small: small
      medium: medium
      large: large
    announcements:
      opening: '&2The mines are open!'
      closing: '&cThe mines are now closed. Come back tomorrow!'
    minesClosed: '&cThe mines are closed come back later.'
    error: '&cAn error occurred: %error%'
    help:
      customize: Generates a region-configuration.
      dropgroup: Generates a drop-group from a chest.
      reload: Reloads all configuration files.
materials:
  # coal_ore:
    # replacements:
    # - stone
    # cooldown: 20
  # gold_ore:
    # replacements:
    # - stone
    # cooldown: 30
  iron_ore:
    replacements:
    - stone
    cooldown: 3600
  emerald_ore:
    replacements:
    - stone
    cooldown: 7200-9000
    rich-chance: 3
    rich-amount: 2-3
  # redstone_ore:
    # replacements:
    # - stone
    # cooldown: 55
  diamond_ore:
    replacements:
    - stone
    cooldown: 7200-9000
    rich-chance: 3
    rich-amount: 2-3
  # lapis_ore:
    # replacements:
    # - stone
    # cooldown: 60
  # nether_gold_ore:
    # replacements:
    # - netherrack
    # cooldown: 50
  # nether_quartz_ore:
    # replacements:
    # - netherrack
    # cooldown: 50
  # ancient_debris:
    # replacements:
    # - netherrack
    # cooldown: 120
effects:
  deposit_discovered:
    sound: entity_player_levelup
experience:
  spawnOrbs: true
autoPickup: true
openingHours:
  enabled: false
  realtime: 
    - 00:00-06:00
    - 18:00-23:59
  announcements:
    opening: false
    closing: false
    worlds:
    - world
timezone: Europe/Berlin
placeholders:
  openingHours:
    format: '%h%:%m%:%s%'
    open: Now!

Add skulls as mining material

Yes, I think maybe adding the following features will make the plugin better

  1. Can be set to collect specific minerals to give specified items, of course, items can be set lore and name
  2. Increase level mining
  3. Special effects of mineral regeneration
  4. Can be designated as skull as mineral

Original posts can be found here and here

Open/closing times and ore respawn rates all seem to be influenced by server tps

First off im loving your plugin, it allows our users to pvp over custome mines.

The issue were having though is that everything related to the plugin seems to be influenced by server tps eventhough the timer is set to work with realtime.

  1. Run an mc server on purpur latest.
  2. Setup 9 regions in pairs of 3s to be opened over the cource of the day.
    Top left1 bottom right 8
  3. Mine 159 from 1600 til 1955, 267 from 2000 2355
    And 34 and 8 from 0001 till 0400
  4. The first wave goes fine, anything on time, but after evetually if tps starts influenceing the timmers and ore respawns like 30m late

Wandering ores

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
I consider adding "wandering" ores which would add the possibility that ores move from their original location to a block near their original location. These block have to be still accessible and they shouldn't replace block that are not of a minable-materials material.

Weird config behaviour

Describe the bug
For some reason, configs are no longer created correctly as it has been since craftbukkit.
This needs more research ๐Ÿ”

To Reproduce
Steps to reproduce the behavior:

  1. Start the plugin on a blank server
  2. The config isn't generated correclty. Messages are missing and stuff.
  3. Failure messages are shown where other messages are supposed to be.

Farm not working

Wheat, carrot and potato not working

To Reproduce
create wg region farm, om /customize, set material:

wheat:
  replacements:
  - air
  cooldown: 10
  properties:
    age: 7
    resetAge: true 

Expected behavior
Wheat replace by air and replace 10s after by new wheat

  • Server-version: Paper 1.20

[ItemsAdder] Conflict with loot from custom blocks

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

  1. I have items adder, latest, and oroboros mines, latest. All dependencies upto date.
  2. I have a block/ore setup with multiple different drops all with different percentages. Items adder has a feature called 'drop only first' which only drops the first item that passes the percentage test.
  3. So the problem is when manually placing the blocks and mining them, only one drop is produced everytime, but as soon as I setup a mine the drops come, in twos, sometimes 3. One. Not only the desired single drop

Wondering if this is a big with itemsadder or oroboros mines? Since as soon as a mine is created the drops come in multiples.

Desktop (please complete the following information):

  • Minecraft-version: 1.19.4
  • Server-version: latest paper, I downloaded it fresh to test again.

Additional context
ItemsAdder-Issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.