GithubHelp home page GithubHelp logo

sclark-dev / illusion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from draylar/illusion

0.0 0.0 0.0 88 KB

Spoofing block packets sent to clients with server-side agreement on state

Home Page: https://www.curseforge.com/minecraft/mc-mods/illusion

License: MIT License

Java 100.00%

illusion's Introduction

Illusion


Illusion is a rewrite of FibLib. It allows you to lie to clients about BlockStates being sent to clients based off player predicates. Take this example...

Prevent a player from finding Iron Ore while they are sneaking.

var illusion = Illusion.create()
        .map(Illusion.from(Blocks.IRON_ORE), Illusion.to(Blocks.STONE))
        .modifyDrops(true)
        .modifyProperties(true)
        .when(Entity::isSneaking)
        .build();

IllusionRegistry.register(illusion);

This Illusion will remap Iron Ore to Stone on clients when they are sneaking. Iron Ore will still exist on the server, but any interactions will act as if the player interacted with stone - including block breaking speed, block drops, and more.

For Developers

Illusion is available on the Draylar maven:

maven {  
   name = "maven.draylar.dev"  
   url "https://maven.draylar.dev/releases"  
}
// For Fabric developers:
modImplementation "dev.draylar:illusion-fabric:${project.illusion_version}"

// For Forge developers:
modImplementation "dev.draylar:illusion-forge:${project.illusion_version}"

illusion's People

Contributors

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.