-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrealtexturepack.lua
More file actions
162 lines (136 loc) · 6.87 KB
/
realtexturepack.lua
File metadata and controls
162 lines (136 loc) · 6.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
-- For texture setup
local names = {"T", "Bottom", "F", "B", "L", "R"}
local faces = {
Enum.NormalId.Top,
Enum.NormalId.Bottom,
Enum.NormalId.Front,
Enum.NormalId.Back,
Enum.NormalId.Left,
Enum.NormalId.Right
}
-- Define blocks
local log = game:GetService("ReplicatedFirst").Blocks.OakLog
local jlog = game:GetService("ReplicatedFirst").Blocks.JungleLog
local blog = game:GetService("ReplicatedFirst").Blocks.BirchLog
local plank = game:GetService("ReplicatedFirst").Blocks.OakPlanks
-- Clear default textures
game:GetService("ReplicatedFirst").Blocks.OakLog.TextureID = ""
game:GetService("ReplicatedFirst").Blocks.JungleLog.TextureID = ""
game:GetService("ReplicatedFirst").Blocks.BirchLog.TextureID = ""
game:GetService("ReplicatedFirst").Blocks.OakPlanks.TextureID = ""
-- Create Textures
for i = 1, 6 do
local tex = Instance.new("Texture", log)
tex.Name = names[i]
tex.Face = faces[i]
tex.OffsetStudsU = 1.5
tex.OffsetStudsV = 1.5
tex.StudsPerTileU = 3
tex.StudsPerTileV = 3
end
for i = 1, 6 do
local tex = Instance.new("Texture", jlog)
tex.Name = names[i]
tex.Face = faces[i]
tex.OffsetStudsU = 1.5
tex.OffsetStudsV = 1.5
tex.StudsPerTileU = 3
tex.StudsPerTileV = 3
end
for i = 1, 6 do
local tex = Instance.new("Texture", blog)
tex.Name = names[i]
tex.Face = faces[i]
tex.OffsetStudsU = 1.5
tex.OffsetStudsV = 1.5
tex.StudsPerTileU = 3
tex.StudsPerTileV = 3
end
for i = 1, 6 do
local tex = Instance.new("Texture", plank)
tex.Name = names[i]
tex.Face = faces[i]
tex.OffsetStudsU = 1.5
tex.OffsetStudsV = 1.5
tex.StudsPerTileU = 3
tex.StudsPerTileV = 3
end
--Grass Blocks--
game:GetService("ReplicatedFirst").MetaBlocks.GrassBlock.T.Texture = "rbxassetid://82130822566092"
game:GetService("ReplicatedFirst").MetaBlocks.GrassBlock.Bottom.Texture = "rbxassetid://95972312598754"
game:GetService("ReplicatedFirst").MetaBlocks.GrassBlock.F.Texture = "rbxassetid://95968044461562"
game:GetService("ReplicatedFirst").MetaBlocks.GrassBlock.B.Texture = "rbxassetid://95968044461562"
game:GetService("ReplicatedFirst").MetaBlocks.GrassBlock.L.Texture = "rbxassetid://95968044461562"
game:GetService("ReplicatedFirst").MetaBlocks.GrassBlock.R.Texture = "rbxassetid://95968044461562"
game:GetService("ReplicatedFirst").MetaBlocks.JungleBlock.T.Texture = "rbxassetid://74701054061922"
game:GetService("ReplicatedFirst").MetaBlocks.JungleBlock.Bottom.Texture = "rbxassetid://95972312598754"
game:GetService("ReplicatedFirst").MetaBlocks.JungleBlock.F.Texture = "rbxassetid://107460718741342"
game:GetService("ReplicatedFirst").MetaBlocks.JungleBlock.B.Texture = "rbxassetid://107460718741342"
game:GetService("ReplicatedFirst").MetaBlocks.JungleBlock.L.Texture = "rbxassetid://107460718741342"
game:GetService("ReplicatedFirst").MetaBlocks.JungleBlock.R.Texture = "rbxassetid://107460718741342"
game:GetService("ReplicatedFirst").MetaBlocks.SnowBlock.T.Texture = "rbxassetid://17181784442"
game:GetService("ReplicatedFirst").MetaBlocks.SnowBlock.Bottom.Texture = "rbxassetid://95972312598754"
game:GetService("ReplicatedFirst").MetaBlocks.SnowBlock.F.Texture = "rbxassetid://17181782170"
game:GetService("ReplicatedFirst").MetaBlocks.SnowBlock.B.Texture = "rbxassetid://17181782170"
game:GetService("ReplicatedFirst").MetaBlocks.SnowBlock.L.Texture = "rbxassetid://17181782170"
game:GetService("ReplicatedFirst").MetaBlocks.SnowBlock.R.Texture = "rbxassetid://17181782170"
for _, dirt in pairs(game.ReplicatedFirst.MetaBlocks.Dirt:GetChildren()) do
dirt.Texture = "rbxassetid://95972312598754"
end
--Logs--
game:GetService("ReplicatedFirst").Blocks.OakLog.T.Texture = "rbxassetid://9359130096"
game:GetService("ReplicatedFirst").Blocks.OakLog.Bottom.Texture = "rbxassetid://9359130096"
game:GetService("ReplicatedFirst").Blocks.OakLog.F.Texture = "rbxassetid://9359131807"
game:GetService("ReplicatedFirst").Blocks.OakLog.B.Texture = "rbxassetid://9359131807"
game:GetService("ReplicatedFirst").Blocks.OakLog.L.Texture = "rbxassetid://9359131807"
game:GetService("ReplicatedFirst").Blocks.OakLog.R.Texture = "rbxassetid://9359131807"
game:GetService("ReplicatedFirst").Blocks.JungleLog.T.Texture = "rbxassetid://17175996147"
game:GetService("ReplicatedFirst").Blocks.JungleLog.Bottom.Texture = "rbxassetid://17175996147"
game:GetService("ReplicatedFirst").Blocks.JungleLog.F.Texture = "rbxassetid://17175994462"
game:GetService("ReplicatedFirst").Blocks.JungleLog.B.Texture = "rbxassetid://17175994462"
game:GetService("ReplicatedFirst").Blocks.JungleLog.L.Texture = "rbxassetid://17175994462"
game:GetService("ReplicatedFirst").Blocks.JungleLog.R.Texture = "rbxassetid://17175994462"
game:GetService("ReplicatedFirst").Blocks.BirchLog.T.Texture = "rbxassetid://17151681352"
game:GetService("ReplicatedFirst").Blocks.BirchLog.Bottom.Texture = "rbxassetid://17151681352"
game:GetService("ReplicatedFirst").Blocks.BirchLog.F.Texture = "rbxassetid://17151684861"
game:GetService("ReplicatedFirst").Blocks.BirchLog.B.Texture = "rbxassetid://17151684861"
game:GetService("ReplicatedFirst").Blocks.BirchLog.L.Texture = "rbxassetid://17151684861"
game:GetService("ReplicatedFirst").Blocks.BirchLog.R.Texture = "rbxassetid://17151684861"
--Leaves--
for _, leaves in pairs(game.ReplicatedFirst.MetaBlocks.Leaves:GetChildren()) do
leaves.Texture = "rbxassetid://11589055088"
end
for _, jleaves in pairs(game.ReplicatedFirst.MetaBlocks.JungleLeaves:GetChildren()) do
jleaves.Texture = "rbxassetid://111295347358202"
end
for _, bleaves in pairs(game.ReplicatedFirst.MetaBlocks.BirchLeaves:GetChildren()) do
bleaves.Texture = "rbxassetid://136504352957570"
end
--Planks--
for _, planks in pairs(plank:GetChildren()) do
planks.Texture = "rbxassetid://9359126646"
end
game.ReplicatedFirst.Blocks.OakSlab.TextureID = "rbxassetid://9359126646"
--Desert--
for _, sand in pairs(game.ReplicatedFirst.MetaBlocks.Sand:GetChildren()) do
sand.Texture = "rbxassetid://9277770677"
end
--Underground--
for _, stone in pairs(game.ReplicatedFirst.MetaBlocks.Stone:GetChildren()) do
stone.Texture = "rbxassetid://17175732807"
end
--Building Blocks--
for _, cobblestone in pairs(game.ReplicatedFirst.MetaBlocks.Cobblestone:GetChildren()) do
cobblestone.Texture = "rbxassetid://12616185352"
end
game.ReplicatedFirst.Blocks.CobblestoneSlab.TextureID = "rbxassetid://12616185352"
--Others--
for _, ice in pairs(game.ReplicatedFirst.MetaBlocks.Ice:GetChildren()) do
ice.Texture = "rbxassetid://75408908999960"
end
game.ReplicatedFirst.Blocks.CraftingTable.TextureID = "rbxassetid://79176881242151"
game.ReplicatedFirst.Blocks.Cactus.TextureID = "rbxassetid://105791029617543"
--=====TOOLS=====--
game:GetService("StarterPlayer").StarterPlayerScripts.MainLocalScript.ItemTextures.woodensword.ImageLabel = "rbxassetid://15941608817"
game:GetService("StarterPlayer").StarterPlayerScripts.MainLocalScript.ItemTextures.woodenaxe.ImageLabel = "rbxassetid://15682969050"
game:GetService("StarterPlayer").StarterPlayerScripts.MainLocalScript.ItemTextures.woodenpickaxe.ImageLabel = "rbxassetid://130644035273341"