[Bug] Reload command does not work
EwyBoy opened this issue ยท 5 comments
Reload command works in dev environment but not in live version.
This is a tough nut to crack, I fucking hate issues like this.
Reload does do something, but not what we'd like it to. Currently, it reverts the .json back to what it was when Minecraft was first launched.
Reload command will be removed in version 2.4.0 and will remain gone. I have done several tests and after taking to a bunch of other developers we have confirmed that everything that is using the Minecraft CODEC system requires a full game restart no matter what to take effect. Therefor there is no need to have a reload command when it function no matter what I do due to Minecraft limitations.
My best guess is that CraftTweaker has a /reload command and that it overrides your /reload command. I used /help in game with my mod pack which includes your mod and this is the list of commands I got.
/advancement (grant|revoke)
/ae2 (chunklogger|spatial|supporters)
/attribute <target> <attribute> (base|get|modifier)
/bossbar (add|get|list|remove|set)
/c (clone|coupling|dismissFabulousWarning|experimentalRendering|fixLighting|highlight|overlay|ponder|rainbowDebug|u|util)
/cca_api
/clear [<targets>]
/clone <begin> <end> <destination> [filtered|masked|replace]
/config showfile <mod> <type>
/crafttweaker (blockInfo|copy|discord|dump|dumpBrackets|examples|format|give|hand|help|inventory|issues|log|patreon|reload|scripts|syntax)
/create (clone|coupling|dismissFabulousWarning|experimentalRendering|fixLighting|highlight|overlay|ponder|rainbowDebug|u|util)
/csg_config (give|item_deletion_blacklist|set)
/csg_kits (add|give|list|remove)
/ct (blockInfo|copy|discord|dump|dumpBrackets|examples|format|give|hand|help|inventory|issues|log|patreon|reload|scripts|syntax)
/ctrl -> incontrol
/cucumber fillenergy
/curios (add|clear|lock|remove|reset|set|unlock)
/cyclopscore (config|debug|dumpregistries|ignite|infobooktest|reloadresources|version)
/data (get|merge|modify|remove)
/datapack (disable|enable|list)
/deathhistory (<player>|<player_uuid>)
/debug (report|start|stop)
/defaultgamemode (adventure|creative|spectator|survival)
/difficulty [easy|hard|normal|peaceful]
/dumpHandlers
/effect (clear|give)
/enchant <targets> <enchantment> [<level>]
/evilcraft (config|version)
/evilcraftcompat (config|version)
/execute (align|anchored|as|at|facing|if|in|positioned|rotated|run|store|unless)
/experience (add|query|set)
/fill <from> <to> <block> [destroy|hollow|keep|outline|replace]
/forceload (add|query|remove)
/forge (dimensions|entity|generate|mods|setdimension|tps|track)
/function <name>
/gamemode (adventure|creative|spectator|survival)
/gamerule (announceAdvancements|commandBlockOutput|disableElytraMovementCheck|disableRaids|doDaylightCycle|doEntityDrops|doFireTick|doImmediateRespawn|doInsomnia|doLimitedCrafting|doMobLoot|doMobSpawning|doPatrolSpawning|doTileDrops|doTraderSpawning|doWeatherCycle|drowningDamage|fallDamage|fireDamage|forgiveDeadPlayers|keepInventory|logAdminCommands|maxCommandChainLength|maxEntityCramming|mobGriefing|naturalRegeneration|randomTickSpeed|reducedDebugInfo|sendCommandFeedback|showDeathMessages|spawnRadius|spectatorsGenerateChunks|universalAnger)
/give <targets> <item> [<count>]
/hbm (debugLevel|digSpeed|downSpeed|exhaustionType|info)
/help [<command>]
/incontrol (debug|kill|reload|showmobs)
/kick <targets> [<reason>]
/kill [<targets>]
/list [uuids]
/locate (appliedenergistics2:meteorite|bastion_remnant|betterendforge:eternal_portal_structure|betterendforge:giant_ice_star_structure|betterendforge:giant_mossy_glowshroom_structure|betterendforge:megalake_small_structure|betterendforge:megalake_structure|betterendforge:mountain_structure|betterendforge:painted_mountain_structure|buried_treasure|desert_pyramid|endcity|evilcraft:dark_temple|fortress|igloo|jungle_pyramid|mansion|mineshaft|monument|nether_fossil|ocean_ruin|pillager_outpost|quark:big_dungeon|ruined_portal|shipwreck|stronghold|swamp_hut|village)
/locatebiome <biome>
/loot (give|insert|replace|spawn)
/me <action>
/msg <targets> <message>
/open-patchouli-book <targets> <book> [<entry>]
/particle <name> [<pos>]
/performant (collidenearby|disableLoadBalancing|enableLoadBalancing|recordMessages|reportEntities|reportEvents|reportMessages|reportTileEntities|startGatherData|whatsnearby)
/playsound <sound> (ambient|block|hostile|master|music|neutral|player|record|voice|weather)
/publish [<port>]
/recipe (give|take)
/refinedstorage (disk|network|pattern)
/reload
/replaceitem (block|entity)
/say <message>
/sbp (give|list|removeNonPlayer)
/schedule (clear|function)
/scoreboard (objectives|players)
/seed
/setblock <pos> <block> [destroy|keep|replace]
/setworldspawn [<pos>]
/sophisticatedbackpacks -> sbp
/spawnpoint [<targets>]
/spectate [<target>]
/spreadplayers <center> <spreadDistance> <maxRange> (under|<respectTeams>)
/stopsound <targets> [*|ambient|block|hostile|master|music|neutral|player|record|voice|weather]
/summon <entity> [<pos>]
/tag <targets> (add|list|remove)
/team (add|empty|join|leave|list|modify|remove)
/teammsg <message>
/teleport (<destination>|<location>|<targets>)
/tell -> msg
/tellraw <targets> <message>
/time (add|query|set)
/title <targets> (actionbar|clear|reset|subtitle|times|title)
/tm -> teammsg
/tp -> teleport
/trigger <objective> [add|set]
/w -> msg
/waterstrainer (nbt_export|reload_loottable)
/weather (clear|rain|thunder)
/worldborder (add|center|damage|get|set|warning)
/worldstripper [config|dress|profile|reload|strip]
/xp -> experience
The /reload command is from CraftTweaker, which, when run, will reload their recipes and nothing else. I can not seem to find any commands for your mod whatsoever. Perhaps creating something like a "/ot reload" or "/ore_tweaker reload" command will fix the problem?
I think it could be a file access issue but I have almost the same system implemented for my mod Seed Drop
and I am pretty sure it works just fine there.