Giter VIP home page Giter VIP logo

blockelevator-reindev's Introduction

BlockElevator for ReIndev

GitHub Actions Workflow Status GitHub closed pull requests GitHub License GitHub Downloads (all assets, all releases)

BlockElevator is a ReIndev FoxLoader mod that turns a block into an elevator to lift you from a block to another block above or below you. It can go as high as you want between two blocks, or add multiple elevator blocks in between two blocks to access more than two floors. You can add as many elevator block as you want as long as your elevator blocks are in the same x,z coordinate, regardless of height.

This is a direct rewrite of CivElevator, an independent plugin with decoupled codes of CivMC's GoldElevator plugin.

Usage

To create an elevator, first place a gold block (default) anywhere and place a second gold block more than two blocks above or below the first gold block you placed previously. Then jump to go up if you placed the second block above, or crouch to go down if you placed the second block below. The second block can be placed anywhere as long as it is in the same x,z coordinate as the first block.

NOTE: You can only move up to 40 blocks up or down by default before you need to place down another elevator block.

Commands

/elevator (OP not required, but is for the commands below)
Shows the config

/elevator enabled <true or false>
Enables/disables elevators (Default: true)

/elevator cooldownticks <integer number>
Set the cooldown in ticks (1/20 of a second), set to 0 for instant (Default: 15)

/elevator maxystep <integer number>
Set the max space you can have between elevator blocks (Default: 40)

/elevator dyrequiredforjump <floating point number>
Set the deltaY per tick threshold at which jumping will trigger an upward teleport
Essentially, how instant a jump will trigger an elevator. Set to 0 for instant (Default: 0.075)

/elevatorblocks (OP not required, but is for the commands below)
List the blocks considered elevator blocks

/elevatorblocks <add/remove> <block name or id>
Add or remove a block as an elevator block by name or ID
Example: /elevatorblocks add obsidian

Known issues / caveats

  • You can trigger moving downward when stood right next to an elevator block
  • It might not trigger properly if you have multiple elevator blocks next to eachother
  • A slab placed on top of an elevator block will not stop it from working
  • If you removed all the blocks registered as elevator blocks with /elevatorblocks remove ..., the default gold block will be automatically added when the server restarts

Other

All data BlockElevator stores is in the mods/BlockElevator folder.
The config file is mods/BlockElevator/config.txt

Contributing

To contribute, please fork this repo and modify or fix as you deem necessary to improve BlockElevator. Then you may make a pull request to main branch and I will review before I approve to merge into main.

blockelevator-reindev's People

Contributors

kingcolton1 avatar kivattt avatar

Watchers

 avatar

Forkers

kivattt

blockelevator-reindev's Issues

Fix AssignBlock API

The getID() seemingly working properly, however it doesn't work in another java even though it does pass number (eg 41) because it throw null error (???) which is strange.

Add configuration

Add user configuration for server owner to configure however they want.

List of configurable data:

  • Block (Gold block, iron block, etc, default: gold block)
  • Cooldown (default: 15)
  • Max height (default: 40, can be disabled with -1 or 0)

Add elevator sounds

Currently the elevator doesn't make any sound, but it can be added using one of vanilla sound that might be suitable for the elevator when going up and down. Due to me being deaf, I cannot work with this and I need someone else to do this.

Please make a PR and ping me in ReIndev discord when you managed to add elevator sounds :)

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.