#(survivalpro) Strange behavior of MapTag
25 messages · Page 1 of 1 (latest)
(survivalpro) Strange behavior of MapTag
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
We'll need a bit more information
!info paste debug
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!
Content of Denizen Script Paste #119819: bug_map_command... pasted 2024/01/28 02:54:54 UTC-08:00, Paste length: 600 characters across 23 lines, Content: bug_map_command: type: command
Content of Server Log Paste #119820: Denizen Debug Logs From A Minecraft Server... pasted 2024/01/28 02:55:38 UTC-08:00, Paste length: 4405 characters across 45 lines, Content: Java Version: 17.0.9Up-time: 2h 17m
I dont know whether the order of definitions is important
I would generally avoid using the | syntax when passing arguments to tasks, especially with maps and lists
!c run
queue
run [<script>] (path:<name>) (def:<element>|.../defmap:<map>/def.<name>:<value>) (id:<name>) (speed:<value>/instantly) (delay:<value>)
Runs a script in a new queue.
Runs a script in a new queue.
You must specify a script object to run.
Optionally, use the "path:" argument to choose a specific sub-path within a script.
Optionally, use the "def:" argument to specify definition values to pass to the script,
the definitions will be named via the "definitions:" script key on the script being ran,
or numerically in order if that isn't specified (starting with <[1]>).
Alternately, use "defmap:<map>" to specify definitions to pass as a MapTag, where the keys wi...
Use either def.map:<[map]> def.element:<[element]> or use the defmap to pass a map with the arguments
def.map:<[map]>
it's justdefmapw no dot,def.mapwould pass a map as a single definition
I'm pretty sure that's what they're trying to do?
Yeah I know, but defmap and def.def_name are pretty different, I'm just pointing out the difference so they don't confuse the two
Oh yeah, if you want to use defmap you'll need to create a new map with both of these definitions in it
Or you can just directly specify them using def.name
If I want to pass 2 variables without mapping or the usage of - run example def:def1|def2 as an example, do I have to define them like this? - run example def.name1:value1 def.name1:value2
Except your definitions having the same name that command looks right
oh just a typo 😄
Eg for the script you posted, you'd do
- define map <map[Valueee=1;Value=2]>
- define element:5
- run my_task def.element:<[element]> def.map:<[map]>```
Thanks for the help !