forked from Apancore.Studio/simple-makes-complex
Mapgen: write SuperUltraSigmaMapgen part 8
This commit is contained in:
23
mods/GAME/ITEMS/Plants/init.lua
Normal file
23
mods/GAME/ITEMS/Plants/init.lua
Normal file
@@ -0,0 +1,23 @@
|
||||
core.register_node(":plants:plants", {
|
||||
description = 'Plant',
|
||||
drawtype = "plantlike",
|
||||
tiles = { "test_plant.png" },
|
||||
sunlight_propagates = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "meshoptions",
|
||||
place_param2 = 3,
|
||||
waving = 1,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {dig_immediate = 2},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
|
||||
},
|
||||
on_construct = function(pos)
|
||||
local node = core.get_node(pos)
|
||||
|
||||
node.param2 = 3
|
||||
end,
|
||||
})
|
||||
|
||||
2
mods/GAME/ITEMS/Plants/mod.conf
Normal file
2
mods/GAME/ITEMS/Plants/mod.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
name = smc__game__items__plants
|
||||
depends = smc__core__node, smc__core__tilesheet
|
||||
BIN
mods/GAME/ITEMS/Plants/textures/test_plant.png
Normal file
BIN
mods/GAME/ITEMS/Plants/textures/test_plant.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@@ -1,2 +1,2 @@
|
||||
name = smc__game__items__rocks
|
||||
depends = smc__core__node
|
||||
depends = smc__core__node, smc__core__tilesheet
|
||||
@@ -1,2 +1,2 @@
|
||||
name = smc__game__items__soils
|
||||
depends = smc__core__node
|
||||
depends = smc__core__node, smc__core__tilesheet
|
||||
Reference in New Issue
Block a user