Created first set of warped items swap.

This commit is contained in:
Michieal 2023-01-21 01:43:20 -05:00
parent eec3c62539
commit a25841bf43
1 changed files with 53 additions and 2 deletions

View File

@ -9,8 +9,59 @@
local modname = minetest.get_current_modname()
local S = minetest.get_translator(modname)
local SWAP_BASE_TEXTURES = minetest.settings:get_bool("swap_warped_for_original",true)
local SWAP_BASE_TEXTURES = minetest.settings:get_bool("swap_warped_for_original", true)
local function allow_texture_swap()
end
local def = "mcl_crimson:warped_hyphae"
local def_tiles = {
"warped_hyphae_alt.png",
"warped_hyphae_alt.png",
{
image = "warped_hyphae_side_alt.png",
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 2.0}
},
}
minetest.override_item(def, {tiles = def_tiles})
def = "mcl_crimson:stripped_warped_hyphae"
def_tiles = {"warped_stem_stripped_top_alt.png", "warped_stem_stripped_top_alt.png", "warped_stem_stripped_side_alt.png"}
minetest.override_item(def, {tiles = def_tiles})
def = "mcl_crimson:stripped_warped_hyphae_bark"
def_tiles = {"warped_stem_stripped_side_alt.png"}
minetest.override_item(def, {tiles = def_tiles})
def = "mcl_crimson:warped_hyphae_wood"
def_tiles = {"warped_hyphae_wood_alt.png"}
minetest.override_item(def, {tiles = def_tiles})
def = "mcl_crimson:warped_door"
local def_inventory_image = "mcl_crimson_warped_door_alt.png"
local def_tiles_bottom = {"mcl_crimson_warped_door_bottom_alt.png", "mcl_doors_door_warped_side_lower_alt.png"}
local def_tiles_top = {"mcl_crimson_warped_door_top_alt.png", "mcl_doors_door_warped_side_upper_alt.png"}
minetest.override_item(def, {inventory_image = def_inventory_image})
minetest.override_item(def, {tiles_bottom = def_tiles_bottom})
minetest.override_item(def, {tiles_top = def_tiles_top})
def = "mcl_crimson:warped_trapdoor"
local def_tile_front = "mcl_crimson_warped_trapdoor_alt.png"
local def_tile_side = "warped_hyphae_wood_alt.png"
local def_wield_image = "mcl_crimson_warped_trapdoor_alt.png"
minetest.override_item(def, {tile_front = def_tile_front})
minetest.override_item(def, {tile_side = def_tile_side})
minetest.override_item(def, {wield_image = def_wield_image})
--[[
---
register_stair_and_slab_simple("warped_hyphae_wood", "mcl_crimson:warped_hyphae_wood", S("Warped Stair"), S("Warped Slab"), S("Double Warped Slab"))
---
register_fence_and_fence_gate(
"warped_fence"
--]]
end
allow_texture_swap()