Easily create fake inventories that players can interact with.
1

Fake Inventories

This plugin is a developer library that allow other plugins to create fake inventories.

Due to technical limitations, this works by placing a fake chest near the player (only the player who will see the inventory will see it, the chest is not real), and forcing the player to open it by game packets.

The content of the chest is define by the plugin that is using it.

AuthorSupremeMortal
NoteI’m not a maintainer of the plugin but I can help if you have issues using it with PowerNukkit.
LicenseGNU v3.0
Source codehttps://github.com/CloudburstMC/FakeInventories
Issue Trackerhttps://github.com/CloudburstMC/FakeInventories/issues
CompatiblityTested without problems on PowerNukkit 1.6.0.0-PN-SNAPSHOT
RequirementsNone

Usage

plugin.yml:

depend:
 - FakeInventories

YourPlugin.java

    public void onEnable() {
        RegisteredServiceProvider<FakeInventories> provider = getServer().getServiceManager().getProvider(FakeInventories.class);
        
        if (provider == null || provider.getProvider() == null) {
            this.getServer().getPluginManager().disablePlugin(this);
        }
        
        ...
    }

Maven Dependency

    <repositories>
        <repository>
            <id>nukkitx-repo</id>
            <url>https://repo.nukkitx.com/snapshot/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.nukkitx</groupId>
            <artifactId>fakeinventories</artifactId>
            <version>1.0.2</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

Category: Developer Tools

Published on Apr 16, 2022

views

stars

watchers

total downloads

Licensed under GNU General Public License (GPL)

Promoted Versions

Pages

Members