Final changes

This commit is contained in:
2022-11-21 22:32:31 -05:00
parent 889b9f0b59
commit fd6e8ed98a
4 changed files with 27 additions and 39 deletions

View File

@@ -25,27 +25,20 @@ function you_win(player)
}
minetest.show_formspec(player:get_player_name(), "poop:story", table.concat(storyFormspec, ""))
end
--[[
minetest.register_item(":", { -- Hand
type = "none",
wield_image = "Poop.png",
wield_scale = {x=1.5,y=2,z=4.5},
wield_scale = {x=.1,y=2,z=1.5},
range = 5,
tool_capabilities = {
max_drop_level = 0,
full_punch_interval = 0.4,
groupcaps =
{
oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0},
snappy = {times={[3]=0, [2]=0, [1]=0}, uses=0, maxlevel=3},
crumbly = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3},
cracky = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3},
choppy = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3},
},
damage_groups = {fleshy = 3, snappy = 2},
damage_groups = {fleshy = 8, snappy = 8, cracky = 8},
}
})]]
})
minetest.register_on_player_receive_fields(function(player, formname, fields)
if formname ~= "poop:cutscene" then
return
@@ -56,7 +49,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if currentPage >= 4 then
minetest.close_formspec(player:get_player_name(), "poop:cutscene")
-- teleport player to 10 9.5 18
player:setpos({x=15,y=21,z=15})
player:set_pos({x = 32, y = 13, z = 34})
return
end
currentPage = currentPage + 1
@@ -101,9 +94,14 @@ end
is_game_started = false
is_game_finished = false
minetest.register_on_respawnplayer(function(ObjectRef)
minetest.after(1, function() ObjectRef:set_pos({x = 42, y = 13, z = 46})end)
end)
minetest.register_on_newplayer(function(ObjectRef)
minetest.set_node({x = 32, y = 12, z = 34}, {name = "poop:floor"})
ObjectRef:set_pos({x = 32, y = 13, z = 34})
ObjectRef:set_pos({x = 32, y = 15, z = 34})
minetest.after(1, function()
minetest.place_schematic({x = 0, y = 0, z = 0}, minetest.get_modpath("poop") .. "/map.mts", "0", nil, true)
minetest.fix_light({x = 0, y = 0, z = 0}, {x = 100, y = 100, z = 100}) end)
@@ -130,26 +128,6 @@ local idText
local idMeter
minetest.register_item(":", { -- Hand
type = "none",
wield_image = "Poop.png",
wield_scale = {x=1.5,y=2,z=4.5},
range = 5,
tool_capabilities = {
max_drop_level = 0,
full_punch_interval = 0.4,
groupcaps =
{
oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0},
snappy = {times={[3]=0, [2]=0, [1]=0}, uses=0, maxlevel=3},
crumbly = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3},
cracky = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3},
choppy = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3},
},
damage_groups = {fleshy = 3, snappy = 2},
}
})
@@ -389,8 +367,16 @@ minetest.register_alias("mapgen_stone", "poop:floor")
local pooped_things = 0
local b = false
minetest.register_craftitem("poop:plumba", {
type = "tool",
description = "Plumba",
inventory_image = "plumba.png",
tool_capabilities = {
max_drop_level = 0,
full_punch_interval = 0.4,
damage_groups = {fleshy = 8, snappy = 8}
},
on_use = function(itemstack, user, pointed_thing)
-- check if pointing at a node
if pointed_thing.type ~= "node" then