diff options
author | Maverick2797 <git.maverick2797@gmail.com> | 2024-08-09 19:47:27 +0800 |
---|---|---|
committer | gpcf <gpcf@gpcf.eu> | 2024-08-09 14:15:42 +0200 |
commit | 9d7cec6151c0a9eca2454e9d6c85bc5596c5e946 (patch) | |
tree | 5d3a17c890b049ace321cdf905ebcb34a70e86c6 /advtrains/wagons.lua | |
parent | 45e5ad3b378b17be7e0ce314ba964e01792d673d (diff) | |
download | advtrains-9d7cec6151c0a9eca2454e9d6c85bc5596c5e946.tar.gz advtrains-9d7cec6151c0a9eca2454e9d6c85bc5596c5e946.tar.bz2 advtrains-9d7cec6151c0a9eca2454e9d6c85bc5596c5e946.zip |
Add Wagon Properties Tool
Also added the Wagon ID to the Wagon Properties formspec
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r-- | advtrains/wagons.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index 677014a..73200a3 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -868,6 +868,7 @@ function wagon:show_wagon_properties(pname) ]] local data = advtrains.wagons[self.id] local form="size[5,5]" + form=form.."label[0.2,0;"..attrans("This Wagon ID")..": "..self.id.."]" form = form .. "field[0.5,1;4.5,1;whitelist;Allow these players to access your wagon:;"..minetest.formspec_escape(data.whitelist or "").."]" form = form .. "field[0.5,2;4.5,1;roadnumber;Wagon road number:;"..minetest.formspec_escape(data.roadnumber or "").."]" local fc = "" |