mirror of
https://github.com/LoneWolfHT/grenades.git
synced 2024-11-22 06:43:45 +01:00
Fix markdown
This commit is contained in:
parent
3e85df539a
commit
94f311b43f
10
api.md
10
api.md
@ -1,10 +1,11 @@
|
|||||||
#Grenades API
|
# Grenades API
|
||||||
|
|
||||||
Still WIP. Please suggest new features here: https://forum.minetest.net/viewtopic.php?f=9&t=21466
|
Still WIP. Please suggest new features here: https://forum.minetest.net/viewtopic.php?f=9&t=21466
|
||||||
|
|
||||||
##API
|
## API
|
||||||
|
|
||||||
grenades.register_grenade("name", { -- Name of the grenade (Like 'smoke' or 'flashbang')
|
```lua
|
||||||
|
grenades.register_grenade("name", { -- Name of the grenade (Like 'smoke' or 'flashbang')
|
||||||
description = "", -- A short description of the grenade.
|
description = "", -- A short description of the grenade.
|
||||||
image = "", -- The name of the grenade's texture
|
image = "", -- The name of the grenade's texture
|
||||||
on_explode = function(pos, name)
|
on_explode = function(pos, name)
|
||||||
@ -21,4 +22,5 @@ Still WIP. Please suggest new features here: https://forum.minetest.net/viewtopi
|
|||||||
glow = 0, -- Brightens the texture in darkness
|
glow = 0, -- Brightens the texture in darkness
|
||||||
interval = 5, -- How long it takes before a particle can be added
|
interval = 5, -- How long it takes before a particle can be added
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user