FakeInventories

FakeInventories 1.1.8

IWareQ

Member
IWareQ submitted a new resource:

FakeInventories - inventory, inventories, fakeinventory, fakeinventories

FakeInventories

FakeInventories is a simple library plugin for PowerNukkit/Nukkit Minecraft Bedrock core, that will help you to create
your custom virtual inventories with ease.

Usage

You can extend from CustomInventory

Java:
import me.iwareq.fakeinventories.CustomInventory;

public class MyInventory extends CustomInventory {

    public MyInventory() {
        super(InventoryType.CHEST, "my title");
    }
}
or create a new CustomInventory object...
Read more about this resource...
 
Last edited:

Buddelbubi.

Active Member
Blast Furnace and Stonecutter Inventories dont even open.
me.iwareq.fakeinventories.block.FakeBlock.create(cn.nukkit.Player, String)" because "this.fakeBlock" is null
Sometimes freeze the server
 
Last edited:

IWareQ

Member
Blast Furnace and Stonecutter Inventories dont even open.
me.iwareq.fakeinventories.block.FakeBlock.create(cn.nukkit.Player, String)" because "this.fakeBlock" is null
Sometimes freeze the server
Hmm, I'll check it out later. Thanks for the feedback
 

Buddelbubi.

Active Member
Java:
    Recipe rp = CustomCrafting.recipes.get(fw.getResponse().getClickedButtonId());

if(rp instanceof StonecutterRecipe) {
CustomInventory inventory = new CustomInventory(InventoryType.STONECUTTER, name);
                StonecutterRecipe res = (StonecutterRecipe) rp;
           
                inventory.setItem(0, res.getIngredient());
                inventory.setItem(1, res.getResult());
               
               
                inventory.setDefaultItemHandler((item, event) -> {
                    event.setCancelled(true);  
                });
               
                p.addWindow(inventory);
}
I use PowerNukkitX
 

IWareQ

Member
Java:
    Recipe rp = CustomCrafting.recipes.get(fw.getResponse().getClickedButtonId());

if(rp instanceof StonecutterRecipe) {
CustomInventory inventory = new CustomInventory(InventoryType.STONECUTTER, name);
                StonecutterRecipe res = (StonecutterRecipe) rp;
          
                inventory.setItem(0, res.getIngredient());
                inventory.setItem(1, res.getResult());
              
              
                inventory.setDefaultItemHandler((item, event) -> {
                    event.setCancelled(true); 
                });
              
                p.addWindow(inventory);
}
I use PowerNukkitX
Fake inventory for STONECUTTER is not implemented. I will implement it today or tomorrow.
 

Buddelbubi.

Active Member
Thank you. Blast Furnace has the same problem.
Crafting Table opens itself, but its empty and the listeners are not working.
 

IWareQ

Member
Thank you. Blast Furnace has the same problem.
Crafting Table opens itself, but its empty and the listeners are not working.
I am now trying to fix the problem with the fact that nukkit does not allow using Anvil, Crafting Table, because it thinks that these inventories are opened using cheats
 
Top