Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 134
    • Issues 134
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1152

Closed
Open
Created Jun 10, 2023 by Lxlp@LxlpDeveloper

variables' save attribute is not working

Summary

Variables are not persisting across server restarts despite the save attribute

Steps to reproduce

One can simply spawn this mob and then restart the server: when the mob first spawn, it will spam the value of the variable in chat. When the server reload, it will do the same, but this time the variable will be UNDEFINED

VariableProblem:
  Type: WITHER_SKELETON
  Options:
    Despawn: persistent
  AIGoalSelectors:
  - clear
  AITargetSelectors:
  - clear
  Skills:
  - setvariable{var=caster.test;val=1;save=true} @self ~onSpawn
  - command{c="say <caster.var.test>"} @self ~onTimer:20

Current behavior

The save attribute does nothing

Intended correct behavior

The save attribute allows the variable to be saved across restarts

Versions

  • Minecraft: 1.19.4
  • Paper: 527
  • MythicMobs: Dev Build 4516
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking