From fbe9c205222c8d17427eb9849795cc6741f5d319 Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sun, 16 Oct 2022 19:30:20 +0000 Subject: [PATCH] give "grapple" to player if mod is present --- the_bridge.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/the_bridge.lua b/the_bridge.lua index fa27278..8c9880b 100644 --- a/the_bridge.lua +++ b/the_bridge.lua @@ -9,6 +9,9 @@ local function set_player_inventory(player) local inv = player:get_inventory() local hotbar = {swordstack,pickstack,gapplestack,stickstack,stonestack} + if minetest.get_modpath("grapple") then + table.insert(hotbar,ItemStack("grapple:grapple")) + end inv:set_list("main", hotbar) end