Compare commits
5 Commits
47fabeaf87
...
f3d31ce761
Author | SHA1 | Date |
---|---|---|
|
f3d31ce761 | |
|
992ea5422b | |
|
14f50c4ea6 | |
|
65f9ffff87 | |
|
a9a2529fbf |
14
README.md
14
README.md
|
@ -1,9 +1,19 @@
|
||||||
This is a Minetest mod than adds e-cigarettes.
|
This is a Minetest mod than adds e-cigarettes.
|
||||||
Currently, cigarettes only make your run faster for 190 seconds. This will be changed
|
When used they give you an effect depending on the flavor (only 5 exist).
|
||||||
in the very near future though. I plan on adding flavored eliquids which would give the player different effects.
|
|
||||||
|
Recipes:
|
||||||
|
|
||||||
|
E-Cigarette: https://forum.minetest.net/download/file.php?id=17731
|
||||||
|
E-Liquids: Place a steel_ingot in the middle bottom and one of these ingredients in the middle:
|
||||||
|
Speed - Obsidian Shard,
|
||||||
|
High Jump - Mese Crystal Fragment,
|
||||||
|
Low Grav - Diamond,
|
||||||
|
Anti-Grav - Diamond Block,
|
||||||
|
High Grav - Mese Crystal
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
default
|
default
|
||||||
|
electronics
|
||||||
playereffects
|
playereffects
|
||||||
|
|
||||||
Code and Textures License: CC0 (See LICENSE)
|
Code and Textures License: CC0 (See LICENSE)
|
||||||
|
|
BIN
happysmoking.png
BIN
happysmoking.png
Binary file not shown.
Before Width: | Height: | Size: 266 KiB After Width: | Height: | Size: 67 KiB |
12
init.lua
12
init.lua
|
@ -95,6 +95,18 @@ minetest.register_tool("ecigarettes:ecigarette_highgrav", {
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
--Special
|
||||||
|
minetest.register_tool("ecigarettes:ecigarette_flamable", {
|
||||||
|
description = "E-Cigarette [Flamable]",
|
||||||
|
inventory_image = "ecigarettes_ecigarette_flamable.png",
|
||||||
|
on_use = function(itemstack, player, pointed_thing)
|
||||||
|
local newpos = player:get_pos()
|
||||||
|
minetest.set_node(newpos, {name = "fire:fire"})
|
||||||
|
itemstack:replace("ecigarettes:ecigarette")
|
||||||
|
return itemstack
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("ecigarettes:ecigarette", {
|
minetest.register_craftitem("ecigarettes:ecigarette", {
|
||||||
description = "E-Cigarette",
|
description = "E-Cigarette",
|
||||||
inventory_image = "ecigarettes_ecigarette.png",
|
inventory_image = "ecigarettes_ecigarette.png",
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 344 B |
Binary file not shown.
After Width: | Height: | Size: 348 B |
Loading…
Reference in New Issue