Correct typos and mistakes
This commit is contained in:
parent
02cda4eb0e
commit
1bf1b61bb3
@ -45,7 +45,8 @@ Dependencies
|
|||||||
The depends text file allows you to specify what mods this mod requires to run, and what
|
The depends text file allows you to specify what mods this mod requires to run, and what
|
||||||
needs to be loaded before this mod.
|
needs to be loaded before this mod.
|
||||||
|
|
||||||
depends.txt
|
**depends.txt**
|
||||||
|
|
||||||
modone
|
modone
|
||||||
modtwo
|
modtwo
|
||||||
modthree?
|
modthree?
|
||||||
|
@ -13,8 +13,13 @@ First of all, what is a drawtype?
|
|||||||
A drawtype defines how the node is to be drawn.
|
A drawtype defines how the node is to be drawn.
|
||||||
A torch looks different to water, water looks different to stone.
|
A torch looks different to water, water looks different to stone.
|
||||||
|
|
||||||
|
The string you use to determine the drawtype in the node definition is the same as
|
||||||
|
the title of the sections, except in lower case.
|
||||||
|
|
||||||
* Normal
|
* Normal
|
||||||
* Airlike
|
* Airlike
|
||||||
|
* Liquid
|
||||||
|
* FlowingLiquid
|
||||||
* Glasslike
|
* Glasslike
|
||||||
* Glasslike_Framed
|
* Glasslike_Framed
|
||||||
* Glasslike_Framed_Optional
|
* Glasslike_Framed_Optional
|
||||||
@ -142,7 +147,7 @@ minetest.register_node("default:water_source", {
|
|||||||
})
|
})
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
### Flowing Liquids
|
### FlowingLiquid
|
||||||
|
|
||||||
See default:water_flowing in the default mod in minetest_game, it is mostly
|
See default:water_flowing in the default mod in minetest_game, it is mostly
|
||||||
the same as the above example
|
the same as the above example
|
||||||
|
@ -44,7 +44,9 @@ Declaring an item as ``:default:dirt`` will override the default:dirt in the def
|
|||||||
Textures
|
Textures
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Normally textures have a resolution of 16x16, but they can be in the order of 2: 16, 32, 64, 128, etc.
|
Textures are usually 16 by 16 pixels.
|
||||||
|
They can be any resolution, but it is recommended that they are in the order of 2 (eg, 16, 32, 64, 128, etc),
|
||||||
|
as other resolutions may not be supported correctly on older devices.
|
||||||
|
|
||||||
Textures should be placed in textures/. Their name should match ``modname_itemname.png``.\\
|
Textures should be placed in textures/. Their name should match ``modname_itemname.png``.\\
|
||||||
JPEGs are supported, but they do not support transparency and are generally bad quality at low resolutions.
|
JPEGs are supported, but they do not support transparency and are generally bad quality at low resolutions.
|
||||||
@ -105,7 +107,7 @@ minetest.register_craftitem("mymod:mudpie", {
|
|||||||
minetest.chat_send_player(user:get_player_name(), "You ate an alien mud pie!")
|
minetest.chat_send_player(user:get_player_name(), "You ate an alien mud pie!")
|
||||||
|
|
||||||
-- Support for hunger mods using minetest.register_on_item_eat
|
-- Support for hunger mods using minetest.register_on_item_eat
|
||||||
for _, callback in pairs(core.registered_on_item_eats) do
|
for _, callback in pairs(minetest.registered_on_item_eats) do
|
||||||
local result = callback(hp_change, replace_with_item, itemstack, user, pointed_thing)
|
local result = callback(hp_change, replace_with_item, itemstack, user, pointed_thing)
|
||||||
if result then
|
if result then
|
||||||
return result
|
return result
|
||||||
|
Loading…
x
Reference in New Issue
Block a user