Formspec Hidden Field or Data

Post Reply
User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Formspec Hidden Field or Data

by runs » Post

I need send data (hidden) to a formspec and then recover it thru 'minetest.register_on_player_receive_fields' to act in consequence. This is because the player is not a node nor a player, is a entity.

I know about ActiveFormspec mod adding a hidden field to a formspec. But without any dependency is there another simple method?

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: Formspec Hidden Field or Data

by rubenwardy » Post

Hidden fields are insecure, and should never be used. You should use a context instead, as explained here: https://rubenwardy.com/minetest_modding ... l#contexts
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Post Reply

Who is online

Users browsing this forum: Blockhead and 10 guests