Giter Site home page Giter Site logo

minerefill's Introduction

MineRefill

LocaleAPI plugin is required.

Commands:

/minerefill create - Create mine.
/minerefill delete - Delete selected mine.
/minerefill setpos <Position> - Set position 1 or 2.
/minerefill addblock <Chance> - Add a block to the mine that you are looking at.
/minerefill addreserveblock - Add a reserve block to the mine that you are looking at.
/minerefill interval <Time> - Time in seconds between mine updates.
/minerefill schedule <Value> - Enable/disable automatic filling of the mine.
/minerefill setname <Locale> <Name> - Setting the name of the mine.
/minerefill info - Information about the mine.
/minerefill save - Save the selected mine.
/minerefill fill - Fill the mine.
/minerefill list - List of mines.
/minerefill select <UUID> - Selecting a mine by its UUID.
/minerefill reload - Reloading the plugin.

Permissions:

minerefill.user.maincommand - Access to the main command of the plugin.
minerefill.staff.edit - Access to the commands for configuring mines.
minerefill.staff.save - Access to the `/minerefill save` command.
minerefill.staff.fill - Access to the `/minerefill fill` command.
minerefill.staff.reload - Access to the `/minerefill reload` command.
minerefill.user.list - Access to the `/minerefill list` and `/minerefill select` commands.
minerefill.user.info - Access to the `/minerefill info` command.
minerefill.user.teleport.<MineUUID> - Permission to teleport to the mine.

Information about how the plugin works:

  1. When teleporting to the mine, the player moves to the coordinates where all 3 axes have the highest value. Teleportation is available when using the /minerefill list command.
  2. Blocks added to the mine can be removed. Use the /minerefill info command to view the lists of blocks. If the player does not have permission to edit the mine, he will not see the delete button. Localized mine names can be deleted in the same way.
  3. There is no limit to the blocks that can be added to the mine. All blocks have about a 50% chance of being set. When a block is added, the chance of its selection is indicated. The first step in selecting a block to set up determines whether the main block or the reserve block is chosen, both have a 50% chance. If the main block is selected, then an attempt is made to calculate which main block will be selected for installation. If more than one block meets the selection condition, the block with the lowest probability of selection is selected. If after the previous selections there are several blocks with the same probability of choice, then one random block is chosen. Block selection probability cannot be lower than 0.001%. If there are no reserve blocks, the air block is taken instead.
  4. The automatic mine update only works if both positions are set, the mine contains at least 1 block, the interval is set and the auto update is enabled. When you set the position, a block of colored glass will appear. It will be displayed on the client, but it will not appear in the game world.

For developers:
Get API:

@Plugin("pluginid")
public class Main {
	private MineAPI mineapi;

	// Get API.
	@Listener
	public void onPostMineAPIEvent(PostMineAPIEvent event) {
		mineapi = event.getAPI();
	}

}

Gradle:

repositories {
	...
	maven { 
		name = "JitPack"
		url 'https://jitpack.io' 
	}
}
dependencies {
	...
	implementation 'com.github.SawFowl:MineRefill:2.0'
}

minerefill's People

Contributors

sawfowl avatar

Stargazers

 avatar

Watchers

 avatar

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.