summaryrefslogtreecommitdiff
path: root/castle
diff options
context:
space:
mode:
Diffstat (limited to 'castle')
-rw-r--r--castle/arrow.lua92
-rw-r--r--castle/sounds/castle_reload.oggbin12213 -> 0 bytes
-rw-r--r--castle/sounds/throwing_sound.oggbin11011 -> 0 bytes
-rw-r--r--castle/textures/castle_arrow.pngbin213 -> 0 bytes
-rw-r--r--castle/textures/castle_arrow_2.pngbin208 -> 0 bytes
-rw-r--r--castle/textures/castle_arrow_back.pngbin228 -> 0 bytes
-rw-r--r--castle/textures/castle_arrow_front.pngbin190 -> 0 bytes
-rw-r--r--castle/textures/castle_broadsword.pngbin75 -> 0 bytes
-rw-r--r--castle/textures/castle_crossbow.pngbin576 -> 0 bytes
-rw-r--r--castle/textures/castle_day.pngbin297 -> 0 bytes
-rw-r--r--castle/textures/castle_jail_door_bottom.pngbin524 -> 0 bytes
-rw-r--r--castle/textures/castle_jail_door_top.pngbin532 -> 0 bytes
-rw-r--r--castle/textures/castle_jailbars_half.pngbin526 -> 0 bytes
-rw-r--r--castle/textures/castle_night.pngbin308 -> 0 bytes
-rw-r--r--castle/textures/castle_oak_door_bottom.pngbin650 -> 0 bytes
-rw-r--r--castle/textures/castle_oak_door_top.pngbin638 -> 0 bytes
-rw-r--r--castle/textures/castle_tapestry_overlay.pngbin477 -> 0 bytes
-rw-r--r--castle/textures/castle_workbench_1.pngbin593 -> 0 bytes
-rw-r--r--castle/textures/castle_workbench_2.pngbin593 -> 0 bytes
-rw-r--r--castle/textures/door_jail.pngbin70 -> 0 bytes
-rw-r--r--castle/textures/door_oak.pngbin70 -> 0 bytes
-rw-r--r--castle/textures/door_papyrus.pngbin70 -> 0 bytes
22 files changed, 0 insertions, 92 deletions
diff --git a/castle/arrow.lua b/castle/arrow.lua
deleted file mode 100644
index c135f5f..0000000
--- a/castle/arrow.lua
+++ /dev/null
@@ -1,92 +0,0 @@
-minetest.register_craftitem("castle:arrow", {
- description = "Arrow",
- inventory_image = "castle_arrow.png",
-})
-
-minetest.register_node("castle:arrow_box", {
- drawtype = "nodebox",
- node_box = {
- type = "fixed",
- fixed = {
- -- Shaft
- {-6.5/17, -1.5/17, -1.5/17, 6.5/17, 1.5/17, 1.5/17},
- --Spitze
- {-4.5/17, 2.5/17, 2.5/17, -3.5/17, -2.5/17, -2.5/17},
- {-8.5/17, 0.5/17, 0.5/17, -6.5/17, -0.5/17, -0.5/17},
- --Federn
- {6.5/17, 1.5/17, 1.5/17, 7.5/17, 2.5/17, 2.5/17},
- {7.5/17, -2.5/17, 2.5/17, 6.5/17, -1.5/17, 1.5/17},
- {7.5/17, 2.5/17, -2.5/17, 6.5/17, 1.5/17, -1.5/17},
- {6.5/17, -1.5/17, -1.5/17, 7.5/17, -2.5/17, -2.5/17},
-
- {7.5/17, 2.5/17, 2.5/17, 8.5/17, 3.5/17, 3.5/17},
- {8.5/17, -3.5/17, 3.5/17, 7.5/17, -2.5/17, 2.5/17},
- {8.5/17, 3.5/17, -3.5/17, 7.5/17, 2.5/17, -2.5/17},
- {7.5/17, -2.5/17, -2.5/17, 8.5/17, -3.5/17, -3.5/17},
- }
- },
- tiles = {"castle_arrow.png", "castle_arrow.png", "castle_arrow_back.png", "castle_arrow_front.png", "castle_arrow_2.png", "castle_arrow.png"},
- groups = {not_in_creative_inventory=1},
-})
-
-local castle_ARROW_ENTITY={
- physical = false,
- timer=0,
- visual = "wielditem",
- visual_size = {x=0.1, y=0.1},
- textures = {"castle:arrow_box"},
- lastpos={},
- collisionbox = {0,0,0,0,0,0},
-}
-
-castle_ARROW_ENTITY.on_step = function(self, dtime)
- self.timer=self.timer+dtime
- local pos = self.object:getpos()
- local node = minetest.get_node(pos)
-
- if self.timer>0.2 then
- local objs = minetest.get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 2)
- for k, obj in pairs(objs) do
- if obj:get_luaentity() ~= nil then
- if obj:get_luaentity().name ~= "castle:arrow_entity" and obj:get_luaentity().name ~= "__builtin:item" then
- local damage = 3
- obj:punch(self.object, 1.0, {
- full_punch_interval=1.0,
- groupcaps={
- fleshy={times={[1]=1/(damage-2), [2]=1/(damage-1), [3]=1/damage}},
- snappy={times={[1]=1/(damage-2), [2]=1/(damage-1), [3]=1/damage}},
- }
- }, nil)
- self.object:remove()
- end
- else
- local damage = 3
- obj:punch(self.object, 1.0, {
- full_punch_interval=1.0,
- groupcaps={
- fleshy={times={[1]=1/(damage-2), [2]=1/(damage-1), [3]=1/damage}},
- snappy={times={[1]=1/(damage-2), [2]=1/(damage-1), [3]=1/damage}},
- }
- }, nil)
- self.object:remove()
- end
- end
- end
-
- if self.lastpos.x~=nil then
- if node.name ~= "air" then
- minetest.add_item(self.lastpos, 'castle:arrow')
- self.object:remove()
- end
- end
- self.lastpos={x=pos.x, y=pos.y, z=pos.z}
-end
-
-minetest.register_entity("castle:arrow_entity", castle_ARROW_ENTITY)
-
-minetest.register_craft({
- output = 'castle:arrow 16',
- recipe = {
- {'default:stick', 'default:stick', 'default:steel_ingot'},
- }
-})
diff --git a/castle/sounds/castle_reload.ogg b/castle/sounds/castle_reload.ogg
deleted file mode 100644
index 47f7245..0000000
--- a/castle/sounds/castle_reload.ogg
+++ /dev/null
Binary files differ
diff --git a/castle/sounds/throwing_sound.ogg b/castle/sounds/throwing_sound.ogg
deleted file mode 100644
index c8911e5..0000000
--- a/castle/sounds/throwing_sound.ogg
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_arrow.png b/castle/textures/castle_arrow.png
deleted file mode 100644
index 9b72ee9..0000000
--- a/castle/textures/castle_arrow.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_arrow_2.png b/castle/textures/castle_arrow_2.png
deleted file mode 100644
index b5980d0..0000000
--- a/castle/textures/castle_arrow_2.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_arrow_back.png b/castle/textures/castle_arrow_back.png
deleted file mode 100644
index d680d88..0000000
--- a/castle/textures/castle_arrow_back.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_arrow_front.png b/castle/textures/castle_arrow_front.png
deleted file mode 100644
index 828a486..0000000
--- a/castle/textures/castle_arrow_front.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_broadsword.png b/castle/textures/castle_broadsword.png
deleted file mode 100644
index 4d7beb8..0000000
--- a/castle/textures/castle_broadsword.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_crossbow.png b/castle/textures/castle_crossbow.png
deleted file mode 100644
index e14c45c..0000000
--- a/castle/textures/castle_crossbow.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_day.png b/castle/textures/castle_day.png
deleted file mode 100644
index 6487fb6..0000000
--- a/castle/textures/castle_day.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_jail_door_bottom.png b/castle/textures/castle_jail_door_bottom.png
deleted file mode 100644
index 5e42083..0000000
--- a/castle/textures/castle_jail_door_bottom.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_jail_door_top.png b/castle/textures/castle_jail_door_top.png
deleted file mode 100644
index 7f27979..0000000
--- a/castle/textures/castle_jail_door_top.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_jailbars_half.png b/castle/textures/castle_jailbars_half.png
deleted file mode 100644
index 376428c..0000000
--- a/castle/textures/castle_jailbars_half.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_night.png b/castle/textures/castle_night.png
deleted file mode 100644
index f1516a7..0000000
--- a/castle/textures/castle_night.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_oak_door_bottom.png b/castle/textures/castle_oak_door_bottom.png
deleted file mode 100644
index b2c1df3..0000000
--- a/castle/textures/castle_oak_door_bottom.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_oak_door_top.png b/castle/textures/castle_oak_door_top.png
deleted file mode 100644
index 37b9d42..0000000
--- a/castle/textures/castle_oak_door_top.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_tapestry_overlay.png b/castle/textures/castle_tapestry_overlay.png
deleted file mode 100644
index 2ec8333..0000000
--- a/castle/textures/castle_tapestry_overlay.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_workbench_1.png b/castle/textures/castle_workbench_1.png
deleted file mode 100644
index da9d997..0000000
--- a/castle/textures/castle_workbench_1.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/castle_workbench_2.png b/castle/textures/castle_workbench_2.png
deleted file mode 100644
index da9d997..0000000
--- a/castle/textures/castle_workbench_2.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/door_jail.png b/castle/textures/door_jail.png
deleted file mode 100644
index dd09de7..0000000
--- a/castle/textures/door_jail.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/door_oak.png b/castle/textures/door_oak.png
deleted file mode 100644
index cbd49e4..0000000
--- a/castle/textures/door_oak.png
+++ /dev/null
Binary files differ
diff --git a/castle/textures/door_papyrus.png b/castle/textures/door_papyrus.png
deleted file mode 100644
index 4a633ae..0000000
--- a/castle/textures/door_papyrus.png
+++ /dev/null
Binary files differ