@@ -168,12 +168,58 @@ <h3>Gra zatrzymana</h3>
168168 4 : {
169169 name :"stairs" ,
170170 isSolid :false ,
171- model :"assets/models/stairs.fbx"
172171 } ,
173172 5 : {
174173 name :"stairs" ,
175174 isSolid :false ,
176- model :"assets/models/anvil.fbx"
175+ } ,
176+ 6 : {
177+ name :"brick" ,
178+ isSolid :true ,
179+ faces : {
180+ nx : [ 7 , 15 ] ,
181+ ny : [ 7 , 15 ] ,
182+ nz : [ 7 , 15 ] ,
183+ px : [ 7 , 15 ] ,
184+ py : [ 7 , 15 ] ,
185+ pz : [ 7 , 15 ]
186+ }
187+ } ,
188+ 7 : {
189+ name :"furnace" ,
190+ isSolid :true ,
191+ faces : {
192+ nx : [ 13 , 13 ] ,
193+ ny : [ 13 , 13 ] ,
194+ nz : [ 13 , 13 ] ,
195+ px : [ 12 , 13 ] ,
196+ py : [ 14 , 12 ] ,
197+ pz : [ 13 , 13 ]
198+ }
199+ } ,
200+ 8 : {
201+ name :"library" ,
202+ isSolid :true ,
203+ faces : {
204+ nx : [ 3 , 13 ] ,
205+ ny : [ 4 , 15 ] ,
206+ nz : [ 3 , 13 ] ,
207+ px : [ 3 , 13 ] ,
208+ py : [ 4 , 15 ] ,
209+ pz : [ 3 , 13 ]
210+ }
211+ } ,
212+ 9 : {
213+ name :"tnt" ,
214+ isSolid :true ,
215+ faces : {
216+ nx : [ 8 , 15 ] ,
217+ ny : [ 10 , 15 ] ,
218+ nz : [ 8 , 15 ] ,
219+ px : [ 8 , 15 ] ,
220+ py : [ 9 , 15 ] ,
221+ pz : [ 8 , 15 ]
222+ }
177223 }
178224 }
179225 }
@@ -316,7 +362,7 @@ <h3>Gra zatrzymana</h3>
316362 geo = geo . applyMatrix4 ( matrix )
317363 geo . translate ( 0 , - 0.25 , 0 )
318364 return [ geo ]
319- } if ( voxel == 5 ) {
365+ } else if ( voxel == 5 ) {
320366 var geo = anvilGeometry . clone ( )
321367 geo = geo . applyMatrix4 ( matrix )
322368 geo . translate ( 0 , - 0.25 , 0 )
@@ -664,7 +710,7 @@ <h3>Gra zatrzymana</h3>
664710
665711 raycaster = new THREE . Raycaster ( ) ;
666712
667- var texture = new THREE . TextureLoader ( ) . load ( 'assets/textures/mcatlas .png' ) ;
713+ var texture = new THREE . TextureLoader ( ) . load ( 'assets/textures/Terrain .png' ) ;
668714 texture . magFilter = THREE . NearestFilter ;
669715
670716 gameState = "menu" ;
@@ -721,7 +767,7 @@ <h3>Gra zatrzymana</h3>
721767 }
722768 var inv_bar = new InventoryBar ( {
723769 boxSize : 60 ,
724- boxes : 5 ,
770+ boxes : 9 ,
725771 padding : 4 ,
726772 div : ".inventoryBar" ,
727773 activeBox : 1
@@ -731,6 +777,10 @@ <h3>Gra zatrzymana</h3>
731777 inv_bar . setBox ( 3 , "https://gamepedia.cursecdn.com/minecraft_gamepedia/3/37/Oak_Planks_JE6_BE3.png" )
732778 inv_bar . setBox ( 4 , "https://gamepedia.cursecdn.com/minecraft_gamepedia/archive/e/e0/20200317210502%21Stone_Brick_Stairs_JE3_BE2.png?version=29cb53ead07bbd3a08d158397d1078d5" )
733779 inv_bar . setBox ( 5 , "https://vignette.wikia.nocookie.net/minecraft/images/4/4e/AnvilNew.png/revision/latest?cb=20200226224259" )
780+ inv_bar . setBox ( 6 , "https://gamepedia.cursecdn.com/minecraft_gamepedia/6/62/Bricks_JE5_BE3.png" )
781+ inv_bar . setBox ( 7 , "https://gamepedia.cursecdn.com/minecraft_pl_gamepedia/c/c0/Furnace_przed_Texture_Update.png" )
782+ inv_bar . setBox ( 8 , "https://gamepedia.cursecdn.com/minecraft_gamepedia/0/05/Bookshelf_JE4_BE2.png" )
783+ inv_bar . setBox ( 9 , "https://gamepedia.cursecdn.com/minecraft_pl_gamepedia/1/1e/TNT.png" )
734784 inv_bar . setFocusOnly ( 1 )
735785
736786 $ ( window ) . on ( 'wheel' , function ( event ) {
0 commit comments