Skip to content

Commit

Permalink
[mods/default/blocks.lua] Small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Jul 11, 2020
1 parent bd5174b commit 2d56b94
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions mods/default/blocks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
mod:block {
id = "dirt",
name = "Dirt",
tiles = "dirt.png"
tiles = "dirt.png",
harvest_requirements = 2,
}

mod:block {
Expand All @@ -45,6 +46,7 @@ mod:block {
name = "Grass",
tiles = {"grass_block_top.png", "dirt.png", "grass_block_side.png"},
color_multiplier = {129, 191, 91, 255},
harvest_requirements = 2,

item_drop = {
id = mod:id()..":dirt",
Expand All @@ -68,7 +70,6 @@ mod:block {
id = "oak_wood",
name = "Oak Wood",
tiles = {"oak_log_top.png", "oak_log.png"},
hardness = 1,
harvest_requirements = 4,
}

Expand All @@ -87,7 +88,8 @@ mod:block {
mod:block {
id = "sand",
name = "Sand",
tiles = "sand.png"
tiles = "sand.png",
harvest_requirements = 2,
}

mod:block {
Expand All @@ -110,6 +112,7 @@ mod:block {
tiles = "glass.png",
draw_type = "glass",
is_opaque = false,
harvest_requirements = 1,
}

mod:block {
Expand Down Expand Up @@ -141,7 +144,8 @@ mod:block {
id = "glowstone",
name = "Glowstone",
tiles = "glowstone.png",
is_light_source = true
is_light_source = true,
harvest_requirements = 1,
}

mod:block {
Expand Down Expand Up @@ -191,6 +195,7 @@ mod:block {
id = "clay",
name = "Clay",
tiles = "clay.png",
harvest_requirements = 2,
item_drop = {
id = mod:id()..":clay_ball",
amount = 4
Expand All @@ -202,6 +207,8 @@ mod:block {
name = "Oak Wood Slab",
tiles = "oak_planks.png",

harvest_requirements = 4,

draw_type = "boundingbox",
is_opaque = false,

Expand Down Expand Up @@ -234,12 +241,14 @@ mod:block {
id = "netherrack",
name = "Netherrack",
tiles = "netherrack.png",
harvest_requirements = 1,
}

mod:block {
id = "soul_sand",
name = "Soul Sand",
tiles = "soul_sand.png",
harvest_requirements = 2,
}

mod:block {
Expand Down Expand Up @@ -275,6 +284,7 @@ mod:block {
name = "Dead Bush",
tiles = "deadbush.png",
draw_type = "xshape",
hardness = 0,
}

mod:block {
Expand All @@ -295,7 +305,8 @@ mod:block {
name = "Obsidian",
tiles = "obsidian.png",

hardness = 2,
hardness = 8,
harvest_requirements = 1,
}

mod:block {
Expand All @@ -305,7 +316,7 @@ mod:block {
inventory_image = "reeds_item.png",

draw_type = "xshape",
hardness = 0.2,
hardness = 0,

on_block_destroyed = function(pos, world)
if world:get_block(pos.x, pos.y, pos.z + 1) == world:get_block(pos.x, pos.y, pos.z) then
Expand All @@ -318,6 +329,7 @@ mod:block {
id = "redstone_lamp",
name = "Redstone Lamp",
tiles = "redstone_lamp_off.png",
harvest_requirements = 1,

states = {
{ is_light_source = true, tiles = "redstone_lamp_on.png" }
Expand All @@ -334,6 +346,7 @@ mod:block {
name = "Farmland",
tiles = {"farmland_dry.png", "dirt.png", "dirt.png"},
is_opaque = false,
harvest_requirements = 2,

states = {
{ alt_tiles = {"farmland_wet.png", "dirt.png", "dirt.png"} },
Expand All @@ -348,6 +361,7 @@ mod:block {
name = "Grass Path",
tiles = {"grass_path_top.png", "dirt.png", "grass_path_side.png"},
is_opaque = false,
harvest_requirements = 2,

draw_type = "boundingbox",
bounding_box = {0, 0, 0, 1, 1, 15 / 16},
Expand Down

0 comments on commit 2d56b94

Please sign in to comment.