Go to file
adrido ee1ebe776b Add better screenshot 2022-06-06 13:58:57 +02:00
indev Fix PNG warning: iCCP: known incorrect sRGB profile 2017-01-09 09:19:53 +01:00
models worked on mesh nodes. 2014-12-20 14:15:08 +01:00
sounds convert sound to mono 2015-06-13 15:27:15 +02:00
textures Fix deprecation warnings 2022-06-06 13:42:17 +02:00
bower.json correct license 2015-08-12 07:24:09 +02:00
cannonballs.lua Move cannons config to minetest.conf 2022-06-06 10:31:47 +02:00
convert.lua fix converting old nodes 2015-06-13 15:26:49 +02:00
depends.txt add support for tnt mod 2015-06-13 15:34:59 +02:00
description.txt added screenshot.png and description.txt for minetest 0.4.8 2013-11-29 06:06:13 +01:00
functions.lua Fix deprecation warnings 2022-06-06 13:42:17 +02:00
init.lua Move cannons config to minetest.conf 2022-06-06 10:31:47 +02:00
items.lua Move cannons config to minetest.conf 2022-06-06 10:31:47 +02:00
license.txt added some clang sounds 2013-12-04 16:28:00 +01:00
locks.lua removed lock texture from the shared locked cannon 2013-12-05 22:52:25 +01:00
mod.conf Move cannons config to minetest.conf 2022-06-06 10:31:47 +02:00
moreores.lua Fix Mithril Ball, Fix craft Rezieps, Tidy up 2016-07-16 15:43:55 +02:00
readme.md Move cannons config to minetest.conf 2022-06-06 10:31:47 +02:00
screenshot.png Add better screenshot 2022-06-06 13:58:57 +02:00
settingtypes.txt Move cannons config to minetest.conf 2022-06-06 10:31:47 +02:00
tnt.lua add support for tnt mod 2015-06-13 15:34:59 +02:00

readme.md

Welcome to the cannons mod

cannons is a mod for the game minetest written by Kingarthurs Team (Semmett9, eythen, and addi)

if you have some muni in the cannon and some gunpowder you can shot the cannon if you punch it with a torch.

the cannonball will damage the other players. if it wears armor the damage will be calculated.

configure cannons

change the settings in your minetest.conf:

cannons_enable_explosion = "true"
cannons_enable_fire = "true"

thats all :-)

Dependencies

  • default
  • bucket
  • fire(optional)

get cannons

relases are in the donwloads Tab swith there to tab 'Tags'

its also aviable as a git repo:

git clone https://kingarthursteam@bitbucket.org/kingarthursteam/canons.git

Craft Rezieps

Bucket with salt:

Bucket with salt salt

Salt (shapeless):

salt

Gunpowder (schapeless):

craft gunpowder

cannons:

cannon & bronce cannon Wooden stand:

wooden stand

Stone Stand:

stone stand

Screenshots

Cannon Tower Cannon Tower 2 Cannon Tower 3

Create your own Cannonball


local ball_wood={
 physical = false,
 timer=0,
 textures = {"cannons_wood_bullet.png"},
 lastpos={},
 damage=20,
 range=1,
 gravity=10,
 velocity=40,
 name="cannons:wood_bullet",
 collisionbox = {-0.25,-0.25,-0.25, 0.25,0.25,0.25},
 on_player_hit = function(self,pos,player)
  local playername = player:get_player_name()
  player:punch(self.object, 1.0, {
   full_punch_interval=1.0,
   damage_groups={fleshy=self.damage},
   }, nil)
  self.object:remove()
  minetest.chat_send_all(playername .." tried to catch a cannonball")
 end,
 on_mob_hit = function(self,pos,mob)
  mob:punch(self.object, 1.0, {
   full_punch_interval=1.0,
   damage_groups={fleshy=self.damage},
   }, nil)
  self.object:remove()
 end,
 on_node_hit = function(self,pos,node)
  if node.name == "default:dirt_with_grass" then   
   minetest.env:set_node({x=pos.x, y=pos.y, z=pos.z},{name="default:dirt"})
   minetest.sound_play("cannons_hit",
    {pos = pos, gain = 1.0, max_hear_distance = 32,})
   self.object:remove()
  elseif node.name == "default:water_source" then
  minetest.sound_play("cannons_splash",
   {pos = pos, gain = 1.0, max_hear_distance = 32,})
   self.object:remove()
  else
  minetest.sound_play("cannons_hit",
   {pos = pos, gain = 1.0, max_hear_distance = 32,})
   self.object:remove()
  end
 end,

}
cannons.register_muni("cannons:ball_wood",ball_wood)

Have fun!