Compare commits
13 Commits
742042729b
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e9061cbc5d | |||
| 041dfe138a | |||
| 22bdfba03e | |||
| 2c55301e7e | |||
| 4ae451d15e | |||
| 346e410cfd | |||
| f5f3af44e4 | |||
| ad7931a469 | |||
| 59562a6a9c | |||
| f607a3c454 | |||
| bcfc53e348 | |||
| 0c97b63c2a | |||
| 2fcfe46ba8 |
@@ -2,4 +2,4 @@
|
||||
|
||||
* Dumb MineTest game made for the MineTest Game Jam 2022 made in less than 1 day on the last day of the jam
|
||||
|
||||
* Made by : kacperks, Looki2000, and Kacperek; with the help of Migdyn from MCL Software (XtreemSoft Ltd)
|
||||
* Made by : kacperks, Looki2000, and Kacperek; with the help of Migdyn from MCL Software
|
||||
|
||||
@@ -29,7 +29,7 @@ end
|
||||
minetest.register_item(":", { -- Hand
|
||||
type = "none",
|
||||
wield_image = "Poop.png",
|
||||
wield_scale = {x=.1,y=2,z=1.5},
|
||||
wield_scale = {x=.3,y=2,z=2.5},
|
||||
range = 5,
|
||||
tool_capabilities = {
|
||||
max_drop_level = 0,
|
||||
@@ -72,7 +72,7 @@ storyText[0] = "Click next to continue. Do NOT close the formspec by pressing th
|
||||
storyText[1] = "Welcome to the state-of-the-art Shitting Simulator! A very advanced, educational, and culturally significant Minetest Game!"
|
||||
storyText[2] = "So the story is simple: You've eaten so many pickles and beans and drank so much milk that your rectum will burst if you don't take a shit in the next two minutes."
|
||||
storyText[3] = "You accidently use your flux capacitor and travel in time to the far future, where you find yourself in a city where you are shitting all over the place."
|
||||
storyText[4] = "You have to run from the robocops and pack 100 pieces of shit into boxes! Good luck!"
|
||||
storyText[4] = "You have to run from the robocops and pack 200 pieces of shit into boxes! Good luck!"
|
||||
|
||||
function getStoryFormspec(number)
|
||||
storyFormspec =
|
||||
@@ -169,7 +169,7 @@ function destruction_counter.updateCounter(player)
|
||||
end
|
||||
|
||||
local totalDestruction = destruction_counter.nodesDestroyed + math.floor(nodesDestroyedByHand / 10)
|
||||
local percentage = (totalDestruction / 200 * 4)
|
||||
local percentage = (totalDestruction / 100 * 4)
|
||||
if percentage > 100 then
|
||||
percentage = 100
|
||||
end
|
||||
@@ -275,7 +275,7 @@ minetest.register_node("poop:floor", {
|
||||
minetest.register_node("poop:Poop", {
|
||||
description = "Just Shit",
|
||||
tiles = {"Poop.png"},
|
||||
drop = 'poop:PoopItem', groups = {cracky=3, stone=1},
|
||||
drop = 'poop:PoopItem', groups = {falling_node = 1, cracky=3, stone=1},
|
||||
})
|
||||
|
||||
minetest.register_node("poop:tv", {
|
||||
@@ -342,10 +342,10 @@ minetest.register_node("poop:glass", {
|
||||
drop = 'poop:glass', groups = {cracky=3, stone=1},
|
||||
})
|
||||
minetest.register_node("poop:Poop2", {
|
||||
description = "Poop with more density",
|
||||
description = "Diarrhea",
|
||||
tiles = {"sraka.png"},
|
||||
|
||||
drop = 'poop:Poop', groups = {cracky=3, stone=1},
|
||||
drop = 'poop:Poop', groups = {falling_node = 1, cracky=3, stone=1},
|
||||
})
|
||||
|
||||
minetest.register_node("poop:glowing_block", {
|
||||
@@ -362,6 +362,16 @@ minetest.register_node("poop:flux_capacitor", {
|
||||
|
||||
drop = 'poop:Poop', groups = {cracky=3, stone=1},
|
||||
})
|
||||
|
||||
minetest.register_node("poop:transparent", {
|
||||
description = "Transparent",
|
||||
drawtype = "glasslike",
|
||||
tiles = {"transparent.png"},
|
||||
paramtype = "light",
|
||||
is_ground_content = false,
|
||||
sunlight_propagates = true,
|
||||
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||
})
|
||||
minetest.register_alias("mapgen_stone", "poop:floor")
|
||||
|
||||
local pooped_things = 0
|
||||
@@ -391,10 +401,12 @@ minetest.register_craftitem("poop:plumba", {
|
||||
local node = minetest.get_node(pointed_thing.under)
|
||||
-- check if node is poop
|
||||
if node.name == "poop:Poop" then
|
||||
pooped_things = pooped_things + 1
|
||||
destruction_counter.nodesDestroyed = pooped_things
|
||||
destruction_counter.updateCounter(user)
|
||||
minetest.remove_node(pointed_thing.under)
|
||||
minetest.add_node(pointed_thing.under, {name="poop:box"})
|
||||
minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.." shits!")
|
||||
pooped_things = pooped_things + 1
|
||||
minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.."/200 shits!")
|
||||
|
||||
if pooped_things >= 100 then
|
||||
if(b == false)then
|
||||
@@ -410,18 +422,18 @@ minetest.register_craftitem("poop:plumba", {
|
||||
end
|
||||
end
|
||||
|
||||
destruction_counter.nodesDestroyed = pooped_things
|
||||
destruction_counter.updateCounter(user)
|
||||
|
||||
pakuj_guwno()
|
||||
return itemstack
|
||||
else if node.name == "poop:Poop2" then
|
||||
pooped_things = pooped_things + 1
|
||||
destruction_counter.nodesDestroyed = pooped_things
|
||||
destruction_counter.updateCounter(user)
|
||||
minetest.remove_node(pointed_thing.under)
|
||||
minetest.add_node(pointed_thing.under, {name="poop:box"})
|
||||
minetest.chat_send_player(user:get_player_name(), "You packed "..pooped_things.." shits!")
|
||||
pakuj_guwno()
|
||||
pooped_things = pooped_things + 1
|
||||
destruction_counter.nodesDestroyed = pooped_things
|
||||
destruction_counter.updateCounter(user)
|
||||
|
||||
return itemstack
|
||||
end
|
||||
|
||||
@@ -444,15 +456,19 @@ minetest.register_craftitem("poop:pooper", {
|
||||
local node = minetest.get_node(pointed_thing.above)
|
||||
if node.name == "air" then
|
||||
minetest.add_node(pointed_thing.above, {name="poop:Poop"})
|
||||
minetest.check_for_falling(pointed_thing.above)
|
||||
else
|
||||
minetest.add_node(pointed_thing.under, {name="poop:Poop"})
|
||||
minetest.check_for_falling(pointed_thing.under)
|
||||
end
|
||||
else
|
||||
local node = minetest.get_node(pointed_thing.above)
|
||||
if node.name == "air" then
|
||||
minetest.add_node(pointed_thing.above, {name="poop:Poop2"})
|
||||
minetest.check_for_falling(pointed_thing.above)
|
||||
else
|
||||
minetest.add_node(pointed_thing.under, {name="poop:Poop2"})
|
||||
minetest.check_for_falling(pointed_thing.under)
|
||||
end
|
||||
end
|
||||
sraj_dzwiek()
|
||||
|
||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 712 B |
|
Before Width: | Height: | Size: 1.5 KiB |
BIN
mods/shit_poop/textures/shit_count.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
mods/shit_poop/textures/shit_count1.png
Normal file
|
After Width: | Height: | Size: 768 B |
BIN
mods/shit_poop/textures/transparent.png
Normal file
|
After Width: | Height: | Size: 163 B |
@@ -1,9 +1,15 @@
|
||||
local numberOfCops = 0
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"poop:grey_bricks"},
|
||||
interval = 30,
|
||||
chance = 200,
|
||||
|
||||
interval = 20,
|
||||
chance = 300,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
if numberOfCops < 50 then
|
||||
minetest.add_entity({x = pos.x, y = pos.y + 1, z = pos.z}, "robocops:robocop")
|
||||
numberOfCops = numberOfCops + 1
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
@@ -32,8 +38,8 @@ mobs:register_mob("robocops:robocop", {
|
||||
makes_footstep_sound = true,
|
||||
|
||||
|
||||
walk_velocity = 4,
|
||||
run_velocity = 5,
|
||||
walk_velocity = 2,
|
||||
run_velocity = 3,
|
||||
jump_height = 1,
|
||||
stepheight = 0,
|
||||
floats = 0,
|
||||
|
||||