Outside of punishment appeals, these forums have been archived.
We hope to see you on our Discord instead!
Discord has a minimum age, found here. You may need to wait, or ask a parent to handle tickets for you.
Hey! Register here to create your account, engage with the community, and talk about what is new!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
ok so I have a catalog of useless items displayed in item frames and I want players to be able to rc the item frame to get it, is there a way to softcode this?
If I remember correcty there is not a way to get an item in an item frame, I may be wrong though. For now I would just hard code it, but that's your choice
Create two (ordered) lists: one with the block locs of the item frames and one with the items in them
On player click entity event, check whether its an item frame and if yes then get its location and align its location to the center of the block (dont forget to remove rotation)
Check if the location list contains the itemframe loc (get list index of value), if the index is greater than 0 (so it exists), then get the item from the items list at the index and give it to the player
Create two (ordered) lists: one with the block locs of the item frames and one with the items in them
On player click entity event, check whether its an item frame and if yes then get its location and align its location to the center of the block (dont forget to remove rotation)
Check if the location list contains the itemframe loc (get list index of value), if the index is greater than 0 (so it exists), then get the item from the items list at the index and give it to the player