[SPIGOT-7757] Cannot set item in Stonecutter Inventory Created: 15/Jun/24  Updated: 25/Dec/24  Resolved: 15/Jun/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Eisbaer Shirokuma Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Version: 4210-Spigot-146439e-f8be9d7
Guidelines Read: Yes

 Description   

I cant add/set an item in a Stonecutter Inventory

val stonecutterInventory = Bukkit.createInventory(null, InventoryType.STONECUTTER, "Stonecutter")
fun openStonecutterInventory(player: Player)

{ stonecutterInventory.setItem(0, ItemStack(Material.STONE)) player.openInventory(stonecutterInventory) }

 Comments   
Comment by md_5 [ 15/Jun/24 ]

I think it's already covered by SPIGOT-7259

Comment by Eisbaer Shirokuma [ 15/Jun/24 ]

Okay but i can it report as a bug?

Comment by md_5 [ 15/Jun/24 ]

It's a bug, but it arises from what I said — virtual inventories do not function like real blocks

Comment by Eisbaer Shirokuma [ 15/Jun/24 ]

Is it part of the functionality that when you click on an item in the GUI that the block in slot 2 cannot be recognized or is this a bug?

Comment by md_5 [ 15/Jun/24 ]

SPIGOT-7259

Comment by Eisbaer Shirokuma [ 15/Jun/24 ]

Will these inventories ever have a function?

Comment by md_5 [ 15/Jun/24 ]

The bug you have reported has been fixed, but note that most virtual inventories are not functional and so won't actually do what you want

Comment by Eisbaer Shirokuma [ 15/Jun/24 ]

I think not

(I didn't manage to set anything but I've never done it with the block so I'm not 100% sure if my code would work)

Comment by md_5 [ 15/Jun/24 ]

A block, not a createInventory

Comment by Eisbaer Shirokuma [ 15/Jun/24 ]

What do you mean with the real inventory?

Comment by md_5 [ 15/Jun/24 ]

What about a real inventory?

What happens when you try to set?

Generated at Sat Dec 13 15:21:07 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.