mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-14 14:30:25 +02:00
add trail mod support
This commit is contained in:
@ -147,3 +147,41 @@ minetest.register_craft({
|
||||
output = "df_farming:cave_bread",
|
||||
recipe = "df_farming:cave_flour"
|
||||
})
|
||||
|
||||
if minetest.get_modpath("trail") and trail and trail.register_trample_node then
|
||||
minetest.register_node("df_farming:wheat_trampled", {
|
||||
description = S("Flattened Cave Wheat"),
|
||||
tiles = {"dfcaverns_cave_wheat_flattened.png"},
|
||||
inventory_image = "dfcaverns_cave_wheat_flattened.png",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
buildable_to = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -3 / 8, 0.5}
|
||||
},
|
||||
},
|
||||
groups = {snappy = 3, flammable = 2, attached_node = 1},
|
||||
drop = "",
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
trail.register_trample_node("df_farming:cave_wheat_5", {
|
||||
trampled_node_name = "df_farming:wheat_trampled",
|
||||
randomize_trampled_param2 = true,
|
||||
})
|
||||
trail.register_trample_node("df_farming:cave_wheat_6", {
|
||||
trampled_node_name = "df_farming:wheat_trampled",
|
||||
randomize_trampled_param2 = true,
|
||||
})
|
||||
trail.register_trample_node("df_farming:cave_wheat_7", {
|
||||
trampled_node_name = "df_farming:wheat_trampled",
|
||||
randomize_trampled_param2 = true,
|
||||
})
|
||||
trail.register_trample_node("df_farming:cave_wheat_8", {
|
||||
trampled_node_name = "df_farming:wheat_trampled",
|
||||
randomize_trampled_param2 = true,
|
||||
})
|
||||
end
|
@ -1,9 +0,0 @@
|
||||
default
|
||||
farming?
|
||||
cottages?
|
||||
bucket?
|
||||
dynamic_liquid?
|
||||
wool?
|
||||
intllib?
|
||||
doc?
|
||||
crafting?
|
@ -1 +0,0 @@
|
||||
Adds farmable underground plants that die in sunlight. Also includes various cooking reactions.
|
@ -1,4 +1,4 @@
|
||||
name = df_farming
|
||||
description = Adds farmable underground plants that die in sunlight. Also includes various cooking reactions.
|
||||
depends = default
|
||||
optional_depends = farming, cottages, bucket, dynamic_liquid, wool, intllib, doc, crafting
|
||||
optional_depends = farming, cottages, bucket, dynamic_liquid, wool, intllib, doc, crafting, trail
|
||||
|
@ -116,3 +116,40 @@ minetest.register_craft({
|
||||
burntime = 1,
|
||||
})
|
||||
|
||||
if minetest.get_modpath("trail") and trail and trail.register_trample_node then
|
||||
minetest.register_node("df_farming:pig_tail_trampled", {
|
||||
description = S("Flattened Pig Tail"),
|
||||
tiles = {"dfcaverns_pig_tail_flattened.png"},
|
||||
inventory_image = "dfcaverns_pig_tail_flattened.png",
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
buildable_to = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, -3 / 8, 0.5}
|
||||
},
|
||||
},
|
||||
groups = {snappy = 3, flammable = 2, attached_node = 1},
|
||||
drop = "",
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
trail.register_trample_node("df_farming:pig_tail_5", {
|
||||
trampled_node_name = "df_farming:pig_tail_trampled",
|
||||
randomize_trampled_param2 = true,
|
||||
})
|
||||
trail.register_trample_node("df_farming:pig_tail_6", {
|
||||
trampled_node_name = "df_farming:pig_tail_trampled",
|
||||
randomize_trampled_param2 = true,
|
||||
})
|
||||
trail.register_trample_node("df_farming:pig_tail_7", {
|
||||
trampled_node_name = "df_farming:pig_tail_trampled",
|
||||
randomize_trampled_param2 = true,
|
||||
})
|
||||
trail.register_trample_node("df_farming:pig_tail_8", {
|
||||
trampled_node_name = "df_farming:pig_tail_trampled",
|
||||
randomize_trampled_param2 = true,
|
||||
})
|
||||
end
|
BIN
df_farming/textures/dfcaverns_cave_wheat_flattened.png
Normal file
BIN
df_farming/textures/dfcaverns_cave_wheat_flattened.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 196 B |
BIN
df_farming/textures/dfcaverns_pig_tail_flattened.png
Normal file
BIN
df_farming/textures/dfcaverns_pig_tail_flattened.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 694 B |
Reference in New Issue
Block a user