Does $drone work?
duncanwebb opened this issue ยท 2 comments
Minecraft Version
1.12.2
Forge Version
forge-1.12.2-14.23.5.2768-universal
Mod Version
pneumaticcraft-repressurized-1.12.2-0.10.3-337
Describe your problem, including steps to reproduce it
The drone variable always shows 0,0,0 wherever it is. More that likely I'm doing something incorrectly.
https://pastebin.com/2Qrhezwt
Any other comments?
The patchouli manual says use
Yeah, the docs are a bit muddled here, my fault. There are actually three types of variable:
- Local variables (no prefix)
- Global variables (prefix the var with a '#')
- Special variables (prefix the name with a '$') - these are documented in the Coordinate Operator manual page
On top of that, there is the ${varname}
syntax used to interpolate variables into text in places like the sign edit widget or drone rename widget.
So, to interpolate the special $drone
variable into the drone name, you would need ${$drone}
.
Yeah, it's confusing. Had me scratching my head for a bit too :) Variable handling might deserve its own manual page in the Programming section, I'm thinking.