SlimeVoid / DynamicTransport

7 stars 7 forks source link

TE Camo Support #21

Closed Tarig0 closed 9 years ago

Tarig0 commented 10 years ago

This would be a machine which would be able to take a full block and extract the icons from it, would not consume the block but this way we could create camo items of TE dependant blocks

Eurymachus commented 10 years ago

Interesting.... we should be able to do this without a separate block/item?

Tarig0 commented 10 years ago

I quess one thing we could do is, when the player right clicks with an item place the block on the side they clicked on, "scan it", and then once we get the camo references kill the block, and store the itemstack used in the TE, and store the camouflage icons as strings

This would only happen for blocks that have a TE dependancy

Tarig0 commented 10 years ago

Do icons only reside on the client?

Tarig0 commented 10 years ago

yes.. yes they do will set the block down client side and scan it within the same tick to get the reference to the icons then send the names to the server as well as store the itemstack in the elevator block just like what we do with reqular blocks

Tarig0 commented 10 years ago

sudo code

place block (client only)

check if bounds is a full block

if valid scan for camo names, and suck in the item used

destroy block

send camo to server

each client will loop through and store client side the responding IIcon using getAtlasSprite(Sring) HOW DID I NOT FIND THIS SOONER