add icon and reenable sneaking

This commit is contained in:
chmodsayshello 2022-10-22 18:09:12 +02:00
parent fbe9c20522
commit f37b7fe202
3 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@ end
arena_lib.register_minigame("the_bridge", {
name = "The Bridge",
--icon = "magiccompass_the_bridge.png",
icon = "icon.png",
teams = { S("red"), S("blue") },
teams_color_overlay = { "crimson", "blue"},
celebration_time = 3,
@ -46,7 +46,7 @@ arena_lib.register_minigame("the_bridge", {
in_game_physics = {
speed = player_speed,
jump = player_jump,
sneak=false,
sneak=true,--allow sneaking (again)
},
disabled_damage_types = {},

BIN
textures/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 B

View File

@ -205,6 +205,7 @@ minetest.register_craftitem("the_bridge:knockback_stick",{
if not pointed_thing then return end
if not minetest.is_player(pointed_thing.ref) then return end
dir = user:get_look_dir()
dir.y = dir.y+0.2
pointed_thing.ref:add_player_velocity(vector.multiply(dir,8))
end,
})