Coder Social home page Coder Social logo

cominixo / get-off-my-lawn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from draylar/get-off-my-lawn

0.0 0.0 0.0 306 KB

Keep people off your lawn with claims! Built for Fabric.

Home Page: https://www.curseforge.com/minecraft/mc-mods/get-off-my-lawn

License: MIT License

Java 100.00%

get-off-my-lawn's Introduction

Get Off My Lawn

Get Off My Lawn is a take on the popular concept of claims. It helps protect your stuff! It is built for Fabric on 1.15.2.

To get started, you'll have to craft a Claim Anchor. Each anchor has a different claim radius; after placing one, a box around it will be formed. This box is yours!

Makeshift, radius of 10

Reinforced, radius of 25

Glistening, radius of 50

Crystal, radius of 75

Emeradic, radius of 125

Withered, radius of 200

[NYI] To configure your claim, you can interact with the anchor block. A UI will appear that offers several configuration options:

  • The general settings tab can be used to define blanket permissions for non-specified players.
  • The player list can be used to define permissions for individual players

[NYI] To upgrade your claim, place an Anchor Augment next to the core Claim Anchor. Anchor Augments available include:

  • Creeper Explosion Nullifier: Prevents Creeper explosions from damaging terrain
  • Ender Binding: Prevents Enddermen from teleporting
  • Villager Core: Prevents Zombies from damaging Villagers
  • Missile Defense: Shoots trespassers in range
  • Visitor Greeter: MOTD to visitors
  • Trespasser Alarm: Alert when non-whitelisted people enter the claim
  • Angelic Aura: Regen to all players inside region
  • Withering Seal: Prevents wither status effect
  • Forceful Ejection: non-whitelisted players get launched out of the claim
  • Heaven's Wings: flight
  • Lake Spirit's Grace: water breathing, water sight, and better breathing
  • Defender's Right: pets & golems do 100% more damage to hostile mobs
  • Chaos Zone: Strength to all players inside region

To see claim areas, you'll have to craft a Goggles of (Claim) Revealing:

When this item equipped in the helmet slot, claim outlines become visible.

Protection Checks

Get Off My Lawn currently checks for claims when the following actions occur:

  • Player block break
  • Player block interaction
  • Player entity damage
  • Player entity interaction
  • TNT explodes

If the player does not own the claim, they are not allowed to finish (/start) the action. In the case of explosions, no blocks break.

Installation: Users

You'll need to install the Fabric Loader, Fabric API, and appropriate mod jar from the releases tab (or the CurseForge page).

Drop the mod jar and Fabric API into your /mods folder and boot up the game.

Installation: Developers

[NYI] Get Off My Lawn offers an API that allows you to:

  • Check areas for claims
  • Add custom Anchor Augments

To install the mod to your development environment:

build.gradle

repositories {
    maven { url 'https://jitpack.io' }
}

build.gradle

dependencies {
    modImplementation 'com.github.Draylar:get-off-my-lawn:${project.goml_version}'
}

gradle.properties

goml_version=master-SNAPSHOT

License

Get Off My Lawn is available under the MIT license. The project, code, and assets found in this repository are available for free public use.

get-off-my-lawn's People

Contributors

cominixo avatar draylar 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.