Updated the mod to version 1.0.2; Changelog: removed unused functions from the telephone mod, changed the name of the README in the telephone mod, updated README.MD

This commit is contained in:
Functioning Member of Society 2022-10-08 11:08:47 -04:00
parent 685c9e6e66
commit 7f602e72ef
3 changed files with 4 additions and 40 deletions

View File

@ -1,15 +1,15 @@
Coconut Collection - Version 1.0.1 Coconut Collection - Version 1.0.2
A game heavily inspired by "Coconut Hut" for the Ouya, it's a competetive 2-player game where you collect coconuts and sell them in order to gain cash. A game heavily inspired by "Coconut Hut" for the Ouya, it's a competetive 2-player game where you collect coconuts and sell them in order to gain cash.
How to play: How to play:
mine coconuts w/ your pickaxe, you can click with coconuts on payphones to sell them and get a better pickaxe, you have to take the handset off Mine coconuts w/ your pickaxe, you can click with coconuts on payphones to sell them and get a better pickaxe, but you have to take the handset off
the hook first by left clicking. the hook first by left-clicking on it.
Prices: Prices:
you start out with a hatchet You start out with a hatchet
8 coconuts = steel pickaxe 8 coconuts = steel pickaxe
20 coconuts = 2nd tier pickaxe 20 coconuts = 2nd tier pickaxe
99 coconuts = coconut drill 99 coconuts = coconut drill

View File

@ -1,31 +1,6 @@
dofile(minetest.get_modpath('telephone')..'/api.lua') dofile(minetest.get_modpath('telephone')..'/api.lua')
minetest.register_chatcommand("call", {
description = "Displays the calling formspec",
func = function(name, param)
minetest.show_formspec(name, "telephone:call",
"size[10,10]" ..
"real_coordinates[true]" ..
"field[0.3,1;5,0.8;caller;Caller #;]" ..
"field[0.3,2;5,0.8;target;Target #;]" ..
"button[0.3,5;5,1;call;Call]")
end,
})
minetest.register_on_player_receive_fields(function(player, formname, fields)
if formname ~= "telephone:call" then
return false
end
minetest.chat_send_player(player:get_player_name(), minetest.get_node(fields.target))
--if minetest.get_node(fields.target).name == "telephone:neusonic_kxt2378mxwd" then
--minetest.chat_send_player(player:get_player_name(), "Calling the number " .. fields.target .. ". Your number is " .. fields.caller .. ".")
--end
return true
end)
minetest.register_node("telephone:neusonic_kxt2378", { minetest.register_node("telephone:neusonic_kxt2378", {
description = "Neusonic KX-T2378", description = "Neusonic KX-T2378",
@ -172,14 +147,3 @@ minetest.register_craftitem("telephone:coin_2", {
description = "2-Golden Coin", description = "2-Golden Coin",
inventory_image = "telephone_coin_2.png", inventory_image = "telephone_coin_2.png",
}) })
minetest.register_craftitem("telephone:card_magnetic", {
description = "Magnetic Payphone Card",
inventory_image = "telephone_card_magnetic.png",
})
minetest.register_craftitem("telephone:card_electronic", {
description = "Electronic Payphone Card",
inventory_image = "telephone_card_electronic.png",
})