#Schematic loading issue

1 messages · Page 1 of 1 (latest)

alpine matrix
slate parcel
#

3

alpine matrix
#

@thorny rover

thorny rover
#

Hey, I didn't realise how to make threads my bad 🥲

slate parcel
#

Alll gooood

#

So with BV3s you should be able to grab each coordinate no problem

#

Then you can create a bukkit location from them

thorny rover
#

So, I've been trying to make it so it iterates the schematics upon start up of the server, store those then use the relative locations when I start up the server yk?

slate parcel
#

Ah okay I see

#

So what's your current issue?

thorny rover
#

So, it's looping and storing fine at the start

#

It's just the once pasted get the vectors and turn into locations part

slate parcel
#

Mind showing a piece of your code on where the issue is?

thorny rover
#

yeah sure 2s

#

I currently get

[11:39:47] [Server thread/INFO]: spawn: (0, 50, -150)
[11:39:47] [Server thread/INFO]: corners: [(-12, 20, -116), (13, 48, -144)]
So those are the relative locations to the schematic i think

slate parcel
#

Okay so are you trying to grab the Bukkit Location from the BlockVector3 locations?

thorny rover
#

yeah

#

So once it pastes it I wanna store the bukkit version of the blockvector3 locations idk if that makes sense at all

slate parcel
#

Well how are you broadcasting those locations?

thorny rover
#

What do you mean by that, sorry?

slate parcel
#

Where did you obtain those? By broadcasting the BV3s or?

thorny rover
#

Ahhhh, my bad i think so ye lemme check 2s

#

yeah, that's blockvector3's from the class i made

slate parcel
#

With BV3s you can simply get X Y Z

#

And then the world is whatever world youre using

#

Then store them somewhere like a data file

thorny rover
#

but isn't that x y z relative to the region

slate parcel
#

I mean you have the corners don't you?

thorny rover
#

in the storage yes

slate parcel
#

So wait, are you wanting to store the locations or the schematics?

#

I must be lost

thorny rover
#

So, within the schematic when it's created you place certain blocks and I want to iterate the schematics upon start up and when you call for the schematic to be created it'll go to the storage and get the relative locations

sour bramble
#

What is this thread about?

alpine matrix
#

devbukkit's issue

thorny rover
#

I'm trying to work out how to store relative locations for different schematics upon start up of the server and get them later when I go to build the mine

sour bramble
#

Schematic loading issue

thorny rover
#

It's harder because I don't have access to world edit in my main module so I can't store it correctly that easy