Closed Tarig0 closed 9 years ago
Interesting.... we should be able to do this without a separate block/item?
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
Do icons only reside on the client?
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
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
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