#Tileentity data

1 messages · Page 1 of 1 (latest)

haughty estuary
#

Lets talk here

winter flicker
#

Yeah

#

Probably smart

haughty estuary
#

I'm trying to get a tag called "tier" from a tileentity, a modded block, that's why I cant just simply ask for it directly

winter flicker
#

Alright you will need NMS

#

Also if you're modding just use the Forge api

#

Hybrid servers are a bad idea

haughty estuary
#

ik, I was just asked to make it

winter flicker
#

Also make sure not to use Mohist

haughty estuary
#

the hybrid magma server broke a bunch of stuff

sinful basin
#

Are you by chance using this to create custom blocks?

haughty estuary
#

No, rather to get the data just from them

#

but I guess you could add some data aswell then to create custom blocks

sinful basin
#

I see, then yeah what Olivo said

Just careful with tile entities, in my experience they can lag a server relatively fast when setting theyre data (IE Spawners)

haughty estuary
#

not planning on setting it, just getting it, but thanks for the heads up :D

sinful basin
#

I beileve the remapped name of this class is BlockEntity

#

should be of some help to you hopefully, idk about un-mapped name though

winter flicker
#

1.12.2 isn't remapped

sinful basin
#

ahh theyre on 1.12

#

didnt know that part

haughty estuary
#

I might have solved it easier, somewhat.
I found something called "NBTAPI" which works for my usecase I believe, though it doesnt really like modded to much.
Might adapt it to modded then

winter flicker
#

NBTAPI just uses reflection

haughty estuary
#

well it's doing something on start of the plugin that is throwing some errors

#

Anyways, I'm going to dig a bit deeper, thanks for your guys help, appreciate it :D

winter flicker
#

Reflection breaks easily on hybrid forks

lost wadi
#

tile entities have a persistent data container

winter flicker
#

Not in 1.12

#

Also modded blocks do not use PDC for their data so that won't work

lost wadi
#

ah mods and 1.12..

#

😂

haughty estuary
#

:pain: