mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
add test ore (coal)
This commit is contained in:
parent
36eed38b4c
commit
d534207deb
9 changed files with 31 additions and 10 deletions
3
res/content/base/blocks/coal_ore.json
Normal file
3
res/content/base/blocks/coal_ore.json
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"texture": "coal_ore"
|
||||
}
|
||||
|
|
@ -1,8 +1,6 @@
|
|||
{
|
||||
"entities": [
|
||||
"drop",
|
||||
"player",
|
||||
"falling_block"
|
||||
"items": [
|
||||
"bazalt_breaker"
|
||||
],
|
||||
"blocks": [
|
||||
"dirt",
|
||||
|
|
@ -28,9 +26,12 @@
|
|||
"pipe",
|
||||
"lightbulb",
|
||||
"torch",
|
||||
"wooden_door"
|
||||
"wooden_door",
|
||||
"coal_ore"
|
||||
],
|
||||
"items": [
|
||||
"bazalt_breaker"
|
||||
"entities": [
|
||||
"drop",
|
||||
"player",
|
||||
"falling_block"
|
||||
]
|
||||
}
|
||||
BIN
res/content/base/textures/blocks/coal_ore.png
Normal file
BIN
res/content/base/textures/blocks/coal_ore.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
|
|
@ -8,6 +8,12 @@ biomes = json.parse(file.read("core:generators/default/biomes.json"))
|
|||
|
||||
function place_structures(x, z, w, d, seed, hmap)
|
||||
local placements = {}
|
||||
for i=1,10 do
|
||||
local sx = math.random() * w
|
||||
local sz = math.random() * d
|
||||
local sy = math.random() * hmap:at(sx, sz)*256 - 6
|
||||
table.insert(placements, {"coal_ore0", {sx, sy, sz}, math.random()*4})
|
||||
end
|
||||
return placements
|
||||
end
|
||||
|
||||
|
|
|
|||
BIN
res/generators/default/coal_ore0.vox
Normal file
BIN
res/generators/default/coal_ore0.vox
Normal file
Binary file not shown.
|
|
@ -2,5 +2,6 @@
|
|||
"tree0": {},
|
||||
"tree1": {},
|
||||
"tree2": {},
|
||||
"tower": {}
|
||||
"tower": {},
|
||||
"coal_ore0": {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue