mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-11 18:40:25 +01:00
[chistmas_craft] Fix leaves (were full snow)
Today I learned Minetests only displays one texture when drawtype is allfaces_optional. Nowhere in the doc this is even mentionned. Minetest is really a fucking damn dipshit game engine.
This commit is contained in:
parent
d96545da57
commit
a08c078820
@ -34,13 +34,26 @@ local dirt_with_dry_grass = minetest.registered_items["default:dirt_with_dry_gra
|
||||
minetest.override_item("default:dirt_with_dry_grass", {tiles = dirttiles})
|
||||
add_drop(dirt_with_dry_grass)
|
||||
|
||||
local leavetiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"}
|
||||
local nodebox = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
|
||||
}
|
||||
}
|
||||
local leavesoverride = {
|
||||
drawtype = "nodebox",
|
||||
visual_scale = 1,
|
||||
tiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"},
|
||||
paramtype = "light",
|
||||
node_box = nodebox,
|
||||
selection_box = nodebox
|
||||
}
|
||||
|
||||
-- Replace leaves
|
||||
minetest.override_item("default:leaves", {tiles = leavetiles})
|
||||
minetest.override_item("default:leaves", leavesoverride)
|
||||
|
||||
-- Replace jungleleaves
|
||||
minetest.override_item("default:jungleleaves", {tiles = leavetiles})
|
||||
minetest.override_item("default:jungleleaves", leavesoverride)
|
||||
|
||||
-- Replace grass
|
||||
for i=1,5 do
|
||||
|
Loading…
Reference in New Issue
Block a user