diff --git a/chapters/folders.md b/chapters/folders.md index 9fe4add..7174fbc 100644 --- a/chapters/folders.md +++ b/chapters/folders.md @@ -45,7 +45,8 @@ Dependencies The depends text file allows you to specify what mods this mod requires to run, and what needs to be loaded before this mod. - depends.txt +**depends.txt** + modone modtwo modthree? diff --git a/chapters/node_drawtypes.md b/chapters/node_drawtypes.md index 945165a..0fad50d 100644 --- a/chapters/node_drawtypes.md +++ b/chapters/node_drawtypes.md @@ -13,8 +13,13 @@ First of all, what is a drawtype? A drawtype defines how the node is to be drawn. 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 * Airlike +* Liquid + * FlowingLiquid * Glasslike * Glasslike_Framed * Glasslike_Framed_Optional @@ -142,7 +147,7 @@ minetest.register_node("default:water_source", { }) {% endhighlight %} -### Flowing Liquids +### FlowingLiquid See default:water_flowing in the default mod in minetest_game, it is mostly the same as the above example diff --git a/chapters/nodes_items_crafting.md b/chapters/nodes_items_crafting.md index 1c8a195..44efa42 100644 --- a/chapters/nodes_items_crafting.md +++ b/chapters/nodes_items_crafting.md @@ -44,7 +44,9 @@ Declaring an item as ``:default:dirt`` will override the default:dirt in the def 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``.\\ 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!") -- 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) if result then return result