Craftings, Randomly spawning amonguses and more
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
local loot_texture = {
|
||||
"amogus_entity.png",
|
||||
"amogus_entity_b.png",
|
||||
"amogus_entity_br.png",
|
||||
"amogus_entity_g.png",
|
||||
}
|
||||
-- create a random number from 0 to 3
|
||||
|
||||
|
||||
local entity = {
|
||||
physical = true,
|
||||
collisionbox = {-0.5, 0, -0.5, 0.5, 1, 0.5},
|
||||
@@ -12,10 +9,7 @@ local entity = {
|
||||
visual_size = {x=10, y=10, z=10},
|
||||
|
||||
mesh = "amogus_entity.obj",
|
||||
textures = {"amogus_entity.png"},
|
||||
-- get a random texture from loot_texture table
|
||||
--textures = {loot_texture[math.random(#loot_texture)]},
|
||||
|
||||
textures = {"amogus_entity.png",},
|
||||
on_rightclick = function(self, clicker)
|
||||
minetest.chat_send_player(clicker:get_player_name(), "WHY ARE YOU SUCH SUSSY BAKA?")
|
||||
end,
|
||||
@@ -48,7 +42,6 @@ local entity = {
|
||||
|
||||
-- kill itself (debugging)
|
||||
--self.object:remove()
|
||||
|
||||
end,
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user