#axiom.isEditorOpen()

1 messages · Page 1 of 1 (latest)

faint beacon
#

is there a way for other mods to check if the editor is open, i want to add a control, but i do not want this to be able to be run when in the axiom editor

upbeat umbra
#

EditorUI.isActive()

faint beacon
#

is that a part of the api?

upbeat umbra
#

No

#

But you should be able to use modCompileOnly("maven.modrinth:axiom:3.0.0")

#

Assuming modrinth's maven isnt still bugged

faint beacon
#

thnx, i will try it

upbeat umbra
#

If 3.0.0 doesn't work, try JMpH3gnj

#

Oh wait 3.0.0 isn't on modrinth

#

Either 2.8.1 or JMpH3gnj

faint beacon
#

instead of 3.0.0 or the entire string

#

got it

faint beacon
#

hmm, i tried both, but they both give the same error

#

the build log

A problem occurred configuring root project '<mod>'.
> Could not resolve all files for configuration ':modCompileOnly'.
   > Could not find maven.modrinth:axiom:2.8.1.
     Searched in the following locations:
       - file:/D:/programming/java/minecraft/<mod>/.gradle/loom-cache/remapped_mods/maven/modrinth/axiom/2.8.1/axiom-2.8.1.pom
       - file:/C:/Users/<user>/.gradle/caches/fabric-loom/minecraftMaven/maven/modrinth/axiom/2.8.1/axiom-2.8.1.pom
       - file:/D:/programming/java/minecraft/<mod>/.gradle/loom-cache/minecraftMaven/maven/modrinth/axiom/2.8.1/axiom-2.8.1.pom
       - https://maven.fabricmc.net/maven/modrinth/axiom/2.8.1/axiom-2.8.1.pom
       - https://libraries.minecraft.net/maven/modrinth/axiom/2.8.1/axiom-2.8.1.pom
       - https://libraries.minecraft.net/maven/modrinth/axiom/2.8.1/axiom-2.8.1.jar
       - https://repo.maven.apache.org/maven2/maven/modrinth/axiom/2.8.1/axiom-2.8.1.jar
       - https://repo.maven.apache.org/maven2/maven/modrinth/axiom/2.8.1/axiom-2.8.1.pom
     Required by:
         project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

late sparrow
#

It doesn't seem to be looking in it

faint beacon
late sparrow
#

Yeah, that's the dependency

#

But you need to add the modrinth maven repo

faint beacon
#

it looks like that will do it, but i will need to do that when i get home

late sparrow
faint beacon
#

well, it made gradle happy

thats about where it stops

[22:13:24] [Render thread/WARN] (FabricLoader/Mixin) Error loading class: com/moulberry/axiom/editor/EditorUI (java.lang.ClassNotFoundException: com/moulberry/axiom/editor/EditorUI)
#

of course adding axiom in the mods folder fixes this, but this makes it a required dependency

faint beacon
#

got it

upbeat umbra
#

You need to add the modrinth maven

#

Oh there you go

#

I love when discord doesn't scroll down

upbeat umbra
#

i.e. it should be a soft dependency