Compare commits
5 Commits
fbc471c8e4
...
dd7bf29dea
Author | SHA1 | Date |
---|---|---|
AiTechEye | dd7bf29dea | |
AiTechEye | 36df92a5b2 | |
AiTechEye | f71631e8d7 | |
AiTechEye | cf6817e0a1 | |
AiTechEye | 4e0feb8173 |
|
@ -1,7 +1,8 @@
|
|||
# smartshop
|
||||
mod for minetest
|
||||
|
||||
code/media license: CC0
|
||||
Licenses: code: LGPL-2.1, media: CC BY-SA-4.0
|
||||
|
||||
Version: 7.11
|
||||
|
||||
Like the title says, this is a smart and easy shop, that will also fit everywhere.
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
default
|
|
@ -1 +0,0 @@
|
|||
Smart and easy shop
|
8
init.lua
8
init.lua
|
@ -117,15 +117,15 @@ smartshop.receive_fields=function(player,pressed)
|
|||
meta:set_int("sellall",0)
|
||||
minetest.chat_send_player(pname, "Sell your stock only")
|
||||
end
|
||||
elseif pressed.tooglelime then
|
||||
elseif pressed.toogleee then
|
||||
local meta=minetest.get_meta(pos)
|
||||
local pname=player:get_player_name()
|
||||
if meta:get_int("type")==0 then
|
||||
meta:set_int("type",1)
|
||||
minetest.chat_send_player(pname, "Your stock is limeted")
|
||||
minetest.chat_send_player(pname, "Your stock is limited")
|
||||
else
|
||||
meta:set_int("type",0)
|
||||
minetest.chat_send_player(pname, "Your stock is unlimeted")
|
||||
minetest.chat_send_player(pname, "Your stock is unlimited")
|
||||
end
|
||||
elseif not pressed.quit then
|
||||
local n=1
|
||||
|
@ -251,7 +251,7 @@ smartshop.update_info=function(pos)
|
|||
local gve=0
|
||||
if meta:get_int("sellall")==1 then gve=1 end
|
||||
if meta:get_int("type")==0 then
|
||||
meta:set_string("infotext","(Smartshop by " .. owner ..") Stock is unlimeted")
|
||||
meta:set_string("infotext","(Smartshop by " .. owner ..") Stock is unlimited")
|
||||
return false
|
||||
end
|
||||
local name=""
|
||||
|
|
Loading…
Reference in New Issue