Search found 1838 matches

by kaeza
Sat Mar 25, 2017 00:09
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 572324

Re: Post your modding questions here

Mwamba wrote:
  • Any good way to find out if player's wielded item is a tool (and not a block)?
An alternative and probably faster:

Code: Select all

local stack = player:get_wielded_item()
local def = stack:get_definition()
if def.type == "tool" then
  -- do something
end
by kaeza
Sun Mar 19, 2017 04:56
Forum: General Discussion
Topic: Random tricks and tips (Minetest Game)
Replies: 64
Views: 10014

Re: Random tricks and tips (Minetest Game)

If you are standing at the edge of the cliff with [Shift] button pressed (in order not to fall down), do not open inventory. You will fall down. Not anymore. The new sneaking fixes (will be available on 0.4.16) make the player be always "standing" on the node, so no matter what happens yo...
by kaeza
Thu Mar 16, 2017 02:28
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 572324

Re: Post your modding questions here

Thank you orwell, but the file is in the /.minetest/textures directory (texture packs) (and it is a .png file). You can't do that. Mods (currently) run only on the server. Texture packs are on the client. Can you specify what you're actually trying to do? Anyway I have to change the secure.trusted_...
by kaeza
Thu Mar 09, 2017 20:55
Forum: Feature Discussion
Topic: select grass sides in advanced game menu?
Replies: 10
Views: 751

Re: select grass sides in advanced game menu?

You can use texture overrides to control how you want the grass to look.

Example to see "full" grass side:

Code: Select all

default:dirt_with_grass sides default_grass.png
by kaeza
Thu Mar 09, 2017 20:29
Forum: General Discussion
Topic: Can I run Luacheck on Github without a pull request?
Replies: 5
Views: 723

Re: Can I run Luacheck on Github without a pull request?

Check the LuaCheck config file used by minetest_game.
See also the LuaCheck documentation.
by kaeza
Thu Mar 09, 2017 20:21
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 572324

Re: Post your modding questions here

A, ok, it's a little bit confusing that a rightclick callback is sometimes called on_rightclick and sometimes on_place. Doc could be more clear at this point When you interact (in this case, right click) with a node, there are two items involved: the wielded item, and the node you're pointing at. N...
by kaeza
Thu Mar 09, 2017 19:52
Forum: Feature Discussion
Topic: Setup a Poll in a Reply?
Replies: 5
Views: 655

Re: Setup a Poll in a Reply?

Your post text contains of 3 lines. Your signature contains of 13 lines. Is that normal? The old punBB-based forum restricted sigs to 2 lines. phpBB doesn't seem to have that (or maybe not enabled?). Anyway, back to topic, posting a separate topic and linking to it is the most reasonable option IMH...
by kaeza
Wed Mar 08, 2017 07:55
Forum: Mod Releases
Topic: [Mod] Internationalization Library [intllib]
Replies: 119
Views: 49322

Re: [Mod] Internationalization Library [intllib]

Is there somewhere a tutorial how to use intllib? I try to add it, but it doesn't work. And if I use Getter I get this message WARNING[Main]: intllib.Getter is deprecated.Please use intllib.make_gettext_pair instead. I want to use and support this Edit: It's working now. And I just replaced Getter ...
by kaeza
Wed Mar 08, 2017 05:46
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 572324

Re: Post your modding questions here

Byakuren wrote:There is a collision box (though only on the lowered bridge), I think Minetest just doesn't detect collisions that far.
Indeed, Minetest has serious bugs with collision boxes >1 node in size.
by kaeza
Tue Mar 07, 2017 21:32
Forum: Mod Releases
Topic: [Mod] Away Mod [1.0] [away]
Replies: 9
Views: 9337

Re: [Mod] Away Mod [1.0] [away]

From a quick look at the sources it looks like it may still work, but do note that it's very outdated and doesn't use capabilities we take for granted now.

You may be better looking for alternatives (unless teh kahrl wants to update :) ). A quick Google search brought up this one.
by kaeza
Mon Mar 06, 2017 08:12
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 572324

Re: Post your modding questions here

D00Med wrote:I already tried just copying dirt with grass using register_on_generated but it was really slow
D00Med wrote:Ok...I should probably learn how then...
Maybe you should post the actual code to see if somebody can suggest improvements?
by kaeza
Sat Mar 04, 2017 09:09
Forum: General Discussion
Topic: Can I run Luacheck on Github without a pull request?
Replies: 5
Views: 723

Re: Can I run Luacheck on Github without a pull request?

Uh... use LuaCheck?

For Debian/Ubuntu:

Code: Select all

sudo apt install luarocks
sudo luarocks install luacheck
by kaeza
Sat Mar 04, 2017 06:31
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 572324

Re: Post your modding questions here

No, that should be part of the name already.

Code: Select all

local node = minetest.get_node(value) --> node.name == "default:leaves"
node.name = node.name .. "_dry" --> "default:leaves_dry" 
I don't think that node exists.
by kaeza
Sat Mar 04, 2017 06:08
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 572324

Re: Post your modding questions here

It means the node you are trying to place doesn't exist.
by kaeza
Fri Mar 03, 2017 20:37
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 572324

Re: Post your modding questions here

Ah. If you're using stable 0.4.15, you will see your own message but other players shouldn't.

There's this commit which will be available in 0.4.16.
by kaeza
Fri Mar 03, 2017 20:00
Forum: General Discussion
Topic: Run minetest without GUI
Replies: 11
Views: 2186

Re: Run minetest without GUI

Have you tried reading the error?
by kaeza
Fri Mar 03, 2017 19:19
Forum: Modding Discussion
Topic: Post your modding questions here
Replies: 4208
Views: 572324

Re: Post your modding questions here

Is there a way to "ignore" chat messages? For example, when a player says "i am new", i want the message to stop getting sent, and instead send my custom message, like "player is new to this server!" I am currently using register_on_chat_message and everything i want t...
by kaeza
Fri Mar 03, 2017 19:07
Forum: General Discussion
Topic: Run minetest without GUI
Replies: 11
Views: 2186

Re: Run minetest without GUI

$ minetest --help --gameid <value> Set gameid ("--gameid list" prints available ones) --server Run dedicated server --terminal Feature an interactive terminal (Only works when using minetestserver or with --server) --world <value> Set world path (implies local game) ('list' lists all) --w...
by kaeza
Fri Mar 03, 2017 00:03
Forum: Feature Discussion
Topic: Colored chat
Replies: 14
Views: 2762

Re: Colored chat

Sires wrote:We need colored chat and a way to put colors in the chat commands like using tags minetest.chat_send_all("%1A color%0 and other color")
That would be cool
You mean something like this?
by kaeza
Thu Mar 02, 2017 22:09
Forum: Problems
Topic: I can't install mods to save my life
Replies: 9
Views: 1618

Re: I can't install mods to save my life

Check the topic from where you got the mod. The title should be something like "[Mod] An Awesome Mod! [awesome_mod]". The last item in brackets ("awesome_mod") is how you should name the folder. When reporting mod-related errors, first try posting in the mod's topic. A Google sea...
by kaeza
Wed Mar 01, 2017 22:36
Forum: Português
Topic: Nova versão do Minetest já está disponível
Replies: 8
Views: 4374

Re: Nova versão do Minetest já está disponível

Os mods devem funcionar corretamente.

Você devería usar a versão estável mais recente (0.4.15).
by kaeza
Wed Mar 01, 2017 00:18
Forum: Modding Discussion
Topic: [20MM] 20 Minute Mods
Replies: 2
Views: 493

Re: [20MM] 20 Minute Mods

I have a couple of these: Chat command for rainbow text: https://gist.github.com/kaeza/6b84b70f891f973b818de36a18f82184 Item to change a node's owner: http://pastebin.com/7cijcnQe Internet Explorer mod: http://pastebin.com/0AxTtzuj Don't allow users to register accounts: http://pastebin.com/RviYFzHB
by kaeza
Sun Feb 26, 2017 02:12
Forum: WIP Mods
Topic: How to Install and enable a mod?
Replies: 12
Views: 9559

Re: How to Install and enable a mod?

como instalo mods y los habilito en linux gnu Extrae los mods en el directorio `~/.minetest/mods` (créalo si no existe). Toma nota que el nombre es `.minetest` con un punto al principio, y es un directorio oculto. Luego de instalarlo, selecciona el mundo en la pestaña de "Un jugador", pre...