[Mod] Get meta from nodes + items [getmeta]

Post Reply
User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

[Mod] Get meta from nodes + items [getmeta]

by AiTechEye » Post

Get meta from nodes and items

Version: 1
License: CC0
Depends: none
Default required privilege: server

Type /getnodemeta <something> and punch nodes to print the meta on the console.
If that <something> is a name of a inventory, it will also output the content too.
Type /getnodemeta without adds to end the outputing

Type /getitemmeta to see the meta from the item in your hand.

This mod is usefull when looking for erros and explore how stuff works.


Outputs can look like this:

(locked chest)

Code: Select all

default:chest_locked    {
        fields = {
                owner = "singleplayer",
                infotext = "Locked Chest (owned by singleplayer)"
        },
        inventory = {
                main = {
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>,
                        <userdata>
                }
        }
}
inventory main:
1       vexcazer:admin 1
3       default:chest_locked 1
5       vexcazer:controler 1
15      vexcazer:controler 1
19      vexcazer:default 1
20      default:dirt 1
30      vexcazer_adpick:pick 1
(vexcazer admin)

Code: Select all

vexcazer:admin  {
        meta = {

        },
        metadata = "return {[\"mode\"] = 5, [\"Travel1.travel1\"] = \"(-42,17,10)\"}",
        count = 1,
        name = "vexcazer:admin",
        wear = 0
}
meta    nil
metadata        {
        mode = 5,
        ["Travel1.travel1"] = "(-42,17,10)"
}
Attachments
ByAiTechEye-getmeta.zip
(1.02 KiB) Downloaded 60 times

Post Reply

Who is online

Users browsing this forum: Andrii and 22 guests