Carpet

Carpet

2M Downloads

[Scarpet Feature Request] query(e, 'item') should return the displayed item of an item frame

CommandLeo opened this issue ยท 4 comments

commented

Currently the only way to get the item inside an item frame is with query(e, 'nbt', 'Item'), which is quite computationally expensive.
Making the query work with item frames would be consistent with the behavior on item entities.

commented

it is called getHeldItemStack() for itemframes iirc.

commented

https://github.com/gnembon/fabric-carpet/blob/master/src/main/java/carpet/script/value/EntityValue.java#L505

u can change it by your self.... but i dont think it is very necessary. there are too many thing that is not exposed directly.
cannot see why that is special.

commented

Related to #1364

commented

This was resolved by #1364.