1
0
Fork 0

Add custom fence textures

objects
Wuzzy 2017-07-24 00:37:45 +02:00
parent 1f2ba0d308
commit d68ed483bc
17 changed files with 28 additions and 10 deletions

View File

@ -230,9 +230,12 @@ mcl_fences.register_fence_gate = function(id, fence_gate_name, texture, groups,
return gate_id, open_gate_id
end
mcl_fences.register_fence_and_fence_gate = function(id, fence_name, fence_gate_name, texture, groups, hardness, blast_resistance, connects_to, sounds, sound_open, sound_close, sound_gain_open, sound_gain_close)
local fence_id = mcl_fences.register_fence(id, fence_name, texture, groups, hardness, blast_resistance, connects_to, sounds)
local gate_id, open_gate_id = mcl_fences.register_fence_gate(id, fence_gate_name, texture, groups, hardness, blast_resistance, sounds, sound_open, sound_close, sound_gain_open, sound_gain_close)
mcl_fences.register_fence_and_fence_gate = function(id, fence_name, fence_gate_name, texture_fence, groups, hardness, blast_resistance, connects_to, sounds, sound_open, sound_close, sound_gain_open, sound_gain_close, texture_fence_gate)
if texture_fence_gate == nil then
texture_fence_gate = texture_fence
end
local fence_id = mcl_fences.register_fence(id, fence_name, texture_fence, groups, hardness, blast_resistance, connects_to, sounds)
local gate_id, open_gate_id = mcl_fences.register_fence_gate(id, fence_gate_name, texture_fence_gate, groups, hardness, blast_resistance, sounds, sound_open, sound_close, sound_gain_open, sound_gain_close)
return fence_id, gate_id, open_gate_id
end
@ -241,12 +244,12 @@ local wood_connect = {"group:fence_wood"}
local wood_sounds = mcl_sounds.node_sound_wood_defaults()
local woods = {
{"", "Oak Fence", "Oak Fence Gate", "default_wood.png", "mcl_core:wood"},
{"spruce", "Spruce Fence", "Spruce Fence Gate", "mcl_core_planks_spruce.png", "mcl_core:sprucewood"},
{"birch", "Birch Fence", "Birch Fence Gate", "mcl_core_planks_birch.png", "mcl_core:birchwood"},
{"jungle", "Jungle Fence", "Jungle Fence Gate", "default_junglewood.png", "mcl_core:junglewood"},
{"dark_oak", "Dark Oak Fence", "Dark Oak Fence Gate", "mcl_core_planks_big_oak.png", "mcl_core:darkwood"},
{"acacia", "Acacia Fence", "Acacia Fence Gate", "default_acacia_wood.png", "mcl_core:acaciawood"},
{"", "Oak Fence", "Oak Fence Gate", "mcl_fences_fence_oak.png", "mcl_fences_fence_gate_oak.png", "mcl_core:wood"},
{"spruce", "Spruce Fence", "Spruce Fence Gate", "mcl_fences_fence_spruce.png", "mcl_fences_fence_gate_spruce.png", "mcl_core:sprucewood"},
{"birch", "Birch Fence", "Birch Fence Gate", "mcl_fences_fence_birch.png", "mcl_fences_fence_gate_birch.png", "mcl_core:birchwood"},
{"jungle", "Jungle Fence", "Jungle Fence Gate", "mcl_fences_fence_jungle.png", "mcl_fences_fence_gate_jungle.png", "mcl_core:junglewood"},
{"dark_oak", "Dark Oak Fence", "Dark Oak Fence Gate", "mcl_fences_fence_big_oak.png", "mcl_fences_fence_gate_big_oak.png", "mcl_core:darkwood"},
{"acacia", "Acacia Fence", "Acacia Fence Gate", "mcl_fences_fence_acacia.png", "mcl_fences_fence_gate_acacia.png", "mcl_core:acaciawood"},
}
for w=1, #woods do
@ -279,7 +282,7 @@ end
-- Nether Brick Fence (without fence gate!)
mcl_fences.register_fence("nether_brick_fence", "Nether Brick Fence", "mcl_nether_nether_brick.png", {pickaxey=1, deco_block=1, fence_nether_brick=1}, 2, 30, {"group:fence_nether_brick"}, mcl_sounds.node_sound_stone_defaults())
mcl_fences.register_fence("nether_brick_fence", "Nether Brick Fence", "mcl_fences_fence_nether_brick.png", {pickaxey=1, deco_block=1, fence_nether_brick=1}, 2, 30, {"group:fence_nether_brick"}, mcl_sounds.node_sound_stone_defaults())
minetest.register_craft({
output = 'mcl_fences:nether_brick_fence 6',

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 B

After

Width:  |  Height:  |  Size: 112 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

View File

@ -817,3 +817,18 @@ Source path,Source file,Target path,Target file,xs,ys,xl,yl,xt,yt
/assets/minecraft/textures/blocks,melon_stem_connected.png,/mods/ITEMS/mcl_farming/textures,mcl_farming_melon_stem_connected.png,,,,,,
/assets/minecraft/textures/blocks,pumpkin_stem_disconnected.png,/mods/ITEMS/mcl_farming/textures,mcl_farming_pumpkin_stem_disconnected.png,,,,,,
/assets/minecraft/textures/blocks,melon_stem_disconnected.png,/mods/ITEMS/mcl_farming/textures,mcl_farming_melon_stem_disconnected.png,,,,,,
/assets/minecraft/textures/blocks,fence_acacia.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_acacia.png,,,,,,
/assets/minecraft/textures/blocks,fence_big_oak.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_big_oak.png,,,,,,
/assets/minecraft/textures/blocks,fence_birch.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_birch.png,,,,,,
/assets/minecraft/textures/blocks,fence_gate_acacia.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_gate_acacia.png,,,,,,
/assets/minecraft/textures/blocks,fence_gate_big_oak.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_gate_big_oak.png,,,,,,
/assets/minecraft/textures/blocks,fence_gate_birch.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_gate_birch.png,,,,,,
/assets/minecraft/textures/blocks,fence_gate_jungle.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_gate_jungle.png,,,,,,
/assets/minecraft/textures/blocks,fence_gate_mask.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_gate_mask.png,,,,,,
/assets/minecraft/textures/blocks,fence_gate_oak.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_gate_oak.png,,,,,,
/assets/minecraft/textures/blocks,fence_gate_spruce.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_gate_spruce.png,,,,,,
/assets/minecraft/textures/blocks,fence_jungle.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_jungle.png,,,,,,
/assets/minecraft/textures/blocks,fence_mask.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_mask.png,,,,,,
/assets/minecraft/textures/blocks,fence_nether_brick.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_nether_brick.png,,,,,,
/assets/minecraft/textures/blocks,fence_oak.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_oak.png,,,,,,
/assets/minecraft/textures/blocks,fence_spruce.png,/mods/ITEMS/mcl_fences/textures,mcl_fences_fence_spruce.png,,,,,,

1 Source path Source file Target path Target file xs ys xl yl xt yt
817 /assets/minecraft/textures/blocks melon_stem_connected.png /mods/ITEMS/mcl_farming/textures mcl_farming_melon_stem_connected.png
818 /assets/minecraft/textures/blocks pumpkin_stem_disconnected.png /mods/ITEMS/mcl_farming/textures mcl_farming_pumpkin_stem_disconnected.png
819 /assets/minecraft/textures/blocks melon_stem_disconnected.png /mods/ITEMS/mcl_farming/textures mcl_farming_melon_stem_disconnected.png
820 /assets/minecraft/textures/blocks fence_acacia.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_acacia.png
821 /assets/minecraft/textures/blocks fence_big_oak.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_big_oak.png
822 /assets/minecraft/textures/blocks fence_birch.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_birch.png
823 /assets/minecraft/textures/blocks fence_gate_acacia.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_gate_acacia.png
824 /assets/minecraft/textures/blocks fence_gate_big_oak.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_gate_big_oak.png
825 /assets/minecraft/textures/blocks fence_gate_birch.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_gate_birch.png
826 /assets/minecraft/textures/blocks fence_gate_jungle.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_gate_jungle.png
827 /assets/minecraft/textures/blocks fence_gate_mask.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_gate_mask.png
828 /assets/minecraft/textures/blocks fence_gate_oak.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_gate_oak.png
829 /assets/minecraft/textures/blocks fence_gate_spruce.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_gate_spruce.png
830 /assets/minecraft/textures/blocks fence_jungle.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_jungle.png
831 /assets/minecraft/textures/blocks fence_mask.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_mask.png
832 /assets/minecraft/textures/blocks fence_nether_brick.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_nether_brick.png
833 /assets/minecraft/textures/blocks fence_oak.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_oak.png
834 /assets/minecraft/textures/blocks fence_spruce.png /mods/ITEMS/mcl_fences/textures mcl_fences_fence_spruce.png