Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TNT for CTF #1284

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mods/ctf/ctf_modebase/crafting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,13 @@ crafting.register_recipe({
items = { "default:cobble 6", "default:steel_ingot" },
always_known = false,
})

crafting.register_recipe({
output = "ctf_tnt:tnt_stick 2",
items = { "default:papyrus", "ctf_ranged:ammo 2" },
})
crafting.register_recipe({
output = "ctf_tnt:tnt",
items = { "ctf_tnt:tnt_stick 8" },
})

3 changes: 3 additions & 0 deletions mods/ctf/ctf_modes/ctf_mode_nade_fight/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,14 @@ ctf_modebase.register_mode("nade_fight", {

["grenades:smoke"] = {rarity = 0.2, max_stacks = 3},
["grenades:poison"] = {rarity = 0.1, max_stacks = 2},
["ctf_tnt:tnt_stick"] = {rarity=0.35, max_stacks=3},
},
crafts = {
"ctf_map:damage_cobble",
"ctf_map:spike",
"ctf_map:reinforced_cobble 2",
"ctf_tnt:tnt_stick",
"ctf_tnt:tnt",
},
physics = {sneak_glitch = true, new_move = false},
blacklisted_nodes = {"default:apple"},
Expand Down
11 changes: 11 additions & 0 deletions mods/ctf/ctf_tnt/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
This is a fork of original TNT game by MTG. The original code is under LGPLv2.1+ and so is this.

The main differences between the original TNT mod and CTF's TNT mod are:

- CTF TNT does not damage teammates of the placer
- CTF TNT can be placed only within a radius of enemy flag
- CTF TNT gives points for blocks removed
- CTF TNT does not remove unremovable blocks in CTF, such as map borders, flags and chests


Copyright (C) 2024 Farooq Karimi Zadeh and MTG contributors. Some rights are reserved under GNU Lesser General Public License as publish by FSF, version 2.1 or at your option and later version.
Loading