mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-18 00:27:02 +08:00
feat: grass (#11)
* feat: add grass texture and update grass_block texture * feat: add block data * feat: add blocks_tool * feat: add sync info and change function in blocks_tools * feat: add check and new function * refactor: make block texture loading data-driven * feat: add rendering for grass * feat: passable grass * feat: random grass place * fix: memory leak in TextureManager::load_cross_plane_texture
This commit is contained in:
6
assets/data/block/air.toml
Normal file
6
assets/data/block/air.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
id = 0
|
||||
is_cross_plane = false
|
||||
is_liquid = false
|
||||
is_passable = true
|
||||
is_transparent = true
|
||||
name = 'air'
|
||||
6
assets/data/block/dirt.toml
Normal file
6
assets/data/block/dirt.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
id = 2
|
||||
is_cross_plane = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
name = 'dirt'
|
||||
6
assets/data/block/grass.toml
Normal file
6
assets/data/block/grass.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
id = 9
|
||||
is_cross_plane = true
|
||||
is_liquid = false
|
||||
is_passable = true
|
||||
is_transparent = true
|
||||
name = 'grass'
|
||||
6
assets/data/block/grass_block.toml
Normal file
6
assets/data/block/grass_block.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
id = 1
|
||||
is_cross_plane = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
name = 'grass_block'
|
||||
6
assets/data/block/leaf.toml
Normal file
6
assets/data/block/leaf.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
id = 6
|
||||
is_cross_plane = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = true
|
||||
name = 'leaf'
|
||||
6
assets/data/block/log.toml
Normal file
6
assets/data/block/log.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
id = 5
|
||||
is_cross_plane = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
name = 'log'
|
||||
6
assets/data/block/sand.toml
Normal file
6
assets/data/block/sand.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
id = 4
|
||||
is_cross_plane = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
name = 'sand'
|
||||
6
assets/data/block/snowy_grass_block.toml
Normal file
6
assets/data/block/snowy_grass_block.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
id = 8
|
||||
is_cross_plane = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
name = 'snowy_grass_block'
|
||||
6
assets/data/block/stone.toml
Normal file
6
assets/data/block/stone.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
id = 3
|
||||
is_cross_plane = false
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
name = 'stone'
|
||||
6
assets/data/block/template.toml
Normal file
6
assets/data/block/template.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
name = "template"
|
||||
id = 0
|
||||
is_liquid = false
|
||||
is_passable = false
|
||||
is_cross_plane = false
|
||||
is_transparent = false
|
||||
6
assets/data/block/water.toml
Normal file
6
assets/data/block/water.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
id = 7
|
||||
is_cross_plane = false
|
||||
is_liquid = true
|
||||
is_passable = false
|
||||
is_transparent = false
|
||||
name = 'water'
|
||||
Reference in New Issue
Block a user