Add 1x1x1 slope example

master
Jordan Irwin 2021-08-26 08:40:56 -07:00
parent c08ce7e665
commit 6d9675e126
2 changed files with 19 additions and 0 deletions

View File

@ -243,3 +243,22 @@ core.register_node("simple_models:stair", {
paramtype2 = "facedir",
groups = {oddly_breakable_by_hand=1, stair=1},
})
-- slopes
core.register_node("simple_models:slope", {
description = "Slope",
drawtype = "mesh",
tiles = {"simple_models_sample_slope_1x1x1_map.png"},
mesh = smodel.slope.mesh,
collision_box = {
type = "fixed",
fixed = smodel.slope.box,
},
selection_box = {
type = "fixed",
fixed = smodel.slope.box,
},
paramtype2 = "facedir",
groups = {oddly_breakable_by_hand=1, slope=1},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B