Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Question

Good day all

I hope someone can help me. I am making a nice map with chalanges.

I have a case with a transposer, I want two chests on the east and west side of the transposer.

I want to put items in the west chest and the transposer should read all the items in the slot and the amount of it. I could read the item and the amount although the item is read in a code of some sort. How do I get the real name of the item to show? I think I can figure out how to compre the items in the chest although help with this would also be appreciated.

Thank you

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Cwest = chestwest.getInventorySize(sides.west)

For i = 1,Cwest do

 Check = chestwest.getStackInSlot(sides.west, i)

For k,v in pairs(Check) do

If check ~= nil then

If k == ''label'' then -- this can be name aswell, comes out like ''minecraft:stone''

--func 

End

End

End

End

 

This should get the name in the way u want ^^

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.