random color of amoguses
This commit is contained in:
parent
2b97c8ba4a
commit
8ecc69cea0
@ -29,17 +29,41 @@ minetest.register_node("amogus_blocks:tv", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("amogus_blocks:bricks", {
|
minetest.register_node("amogus_blocks:bricks", {
|
||||||
description = "Bricks",
|
description = "Red Bricks",
|
||||||
tiles = {"Bricks.png"},
|
tiles = {"Bricks.png"},
|
||||||
|
|
||||||
drop = 'amogus_blocks:grey_bricks', groups = {stone=3},
|
drop = 'amogus_blocks:bricks', groups = {stone=3},
|
||||||
})
|
})
|
||||||
minetest.register_node("amogus_blocks:grey_bricks", {
|
minetest.register_node("amogus_blocks:grey_bricks", {
|
||||||
description = "Bricks 2",
|
description = "Bricks",
|
||||||
tiles = {"Bricks2.png"}, groups = {stone=3},
|
tiles = {"Bricks2.png"}, groups = {stone=3},
|
||||||
|
|
||||||
drop = 'amogus_blocks:grey_bricks',
|
drop = 'amogus_blocks:grey_bricks',
|
||||||
})
|
})
|
||||||
|
minetest.register_node("amogus_blocks:blue_bricks", {
|
||||||
|
description = "Bricks",
|
||||||
|
tiles = {"Bricks_blue.png"}, groups = {stone=3},
|
||||||
|
|
||||||
|
drop = 'amogus_blocks:blue_bricks',
|
||||||
|
})
|
||||||
|
minetest.register_node("amogus_blocks:yellow_bricks", {
|
||||||
|
description = "Bricks",
|
||||||
|
tiles = {"Bricks_yellow.png"}, groups = {stone=3},
|
||||||
|
|
||||||
|
drop = 'amogus_blocks:yellow_bricks',
|
||||||
|
})
|
||||||
|
minetest.register_node("amogus_blocks:green_bricks", {
|
||||||
|
description = "Bricks",
|
||||||
|
tiles = {"Bricks_green.png"}, groups = {stone=3},
|
||||||
|
|
||||||
|
drop = 'amogus_blocks:green_bricks',
|
||||||
|
})
|
||||||
|
minetest.register_node("amogus_blocks:purple_bricks", {
|
||||||
|
description = "Bricks",
|
||||||
|
tiles = {"Bricks_purple.png"}, groups = {stone=3},
|
||||||
|
|
||||||
|
drop = 'amogus_blocks:purple_bricks',
|
||||||
|
})
|
||||||
minetest.register_node("amogus_blocks:planks", {
|
minetest.register_node("amogus_blocks:planks", {
|
||||||
description = "Planks",
|
description = "Planks",
|
||||||
tiles = {"Planks.png"},
|
tiles = {"Planks.png"},
|
||||||
@ -268,6 +292,7 @@ minetest.register_node("amogus_blocks:stone", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
--sounds = default.node_sound_stone_defaults(),
|
--sounds = default.node_sound_stone_defaults(),
|
||||||
|
|
||||||
groups = {stone = 3},
|
groups = {stone = 3},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
-- create a random number from 0 to 3
|
local textures_b = {
|
||||||
|
"amogus_entity.png",
|
||||||
|
"amogus_entity_b.png",
|
||||||
|
"amogus_entity_g.png",
|
||||||
|
"amogus_entity_br.png"
|
||||||
|
}
|
||||||
|
|
||||||
local entity = {
|
local entity = {
|
||||||
physical = true,
|
physical = true,
|
||||||
@ -9,7 +13,6 @@ local entity = {
|
|||||||
visual_size = {x=10, y=10, z=10},
|
visual_size = {x=10, y=10, z=10},
|
||||||
|
|
||||||
mesh = "amogus_entity.obj",
|
mesh = "amogus_entity.obj",
|
||||||
textures = {"amogus_entity.png",},
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
minetest.chat_send_player(clicker:get_player_name(), "WHY ARE YOU SUCH SUSSY BAKA?")
|
minetest.chat_send_player(clicker:get_player_name(), "WHY ARE YOU SUCH SUSSY BAKA?")
|
||||||
end,
|
end,
|
||||||
@ -36,6 +39,8 @@ local entity = {
|
|||||||
last_y_velocity = 0,
|
last_y_velocity = 0,
|
||||||
|
|
||||||
on_activate = function(self, staticdata)
|
on_activate = function(self, staticdata)
|
||||||
|
local texture = textures_b[math.random(#textures_b)]
|
||||||
|
self.object:set_properties({textures = {texture}})
|
||||||
self.object:set_yaw(math.random() * 2 * math.pi)
|
self.object:set_yaw(math.random() * 2 * math.pi)
|
||||||
self.rotation_direction = math.random(-1, 1)
|
self.rotation_direction = math.random(-1, 1)
|
||||||
self.min_max_jump_force_diff = self.max_jump_force - self.min_jump_force
|
self.min_max_jump_force_diff = self.max_jump_force - self.min_jump_force
|
||||||
|
Before Width: | Height: | Size: 614 B After Width: | Height: | Size: 614 B |
Binary file not shown.
Before Width: | Height: | Size: 430 B After Width: | Height: | Size: 432 B |
Loading…
x
Reference in New Issue
Block a user