#EntityJS mob works in SP but not on server

76 messages · Page 1 of 1 (latest)

west kernel
#

Client error: https://mclo.gs/CsLnspN
There are no errors on the server. When I use a spawn egg for the mob on the server, nothing appears but if I run /kill @e[type=kubejs:spring_eggentity], it successfully dies. I have the same startup_script (easterEggs.js) on both the client and the server.

The mob spawns normally in single player. Help is appreciated!

west crystalBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

wooden leafBOT
#

Paste version of whimsyitems.js, mclo.gs/CsLnspN from @west kernel

west kernel
wooden leafBOT
#

Paste version of easterEggs.js from @west kernel

west kernel
#

@hidden plover I need your expertise ❤️

hidden plover
#

does this work fine on singleplayer?

west kernel
hidden plover
#

hmm

west kernel
#

Um, so after coming out of single player and back into my server, now the mob spawns properly. Even though it wasn't showing right before I left, and nothing on the server changed.

#

And I'm not receiving an error anymore in my client log. Wth?

#

It wasn't working when I went to bed last night or when I logged in today before I opened this thread but when I logged out to take that screenshot in single player and logged back into my server, now it works..

hidden plover
#

show me your file structure for your animation resource

#

oh wait

#

you have 2 removewhenfaraway methods @west kernel

west kernel
#

Oh

hidden plover
#

maybe thats it idk

#

if its still broke after that then remove the .animationResource line as well as the .addAnimationcontroller line and see if it still doesnt spawn

west kernel
#

But the weird thing is that after I came back from single player back into my server, only then it worked

#

And it did spawn because I can /kill it

#

I just can't see it

west kernel
#

@hidden plover I reproduced the error. Even though I got it working, I closed my client and rebooted. I immediately went to join my server and I can no longer see my mob and the error is back.

I go to my single player world and spawn my mob and it's fine. Then I go back to my server and then I can see the mob on my server.

So apparently, it fixes itself if the mob is viewed in single player before going on the server. But sadly that's not a realistic fix...

#

I removed the extra removewhenfaraway method but no change yet. I'll try removing the .addAnimationcontroller line

hidden plover
#

its some desync issue then

west kernel
#

I've also reproduced the bug with another player on the server. If I come back from single player and join the server so I can see the egg, my players that haven't seen eggs in single player still can't see the eggs on the server even though I can see them.

#

How would I fix a desync issue?

#

Could it be a client side cache issue?

hidden plover
#

ill test your script in my own fabric server tomorrow and see if i can reproduce the issue, its saying entityData is null or something, i dont really support fabric anymore like i've said before and i know this isnt an issue on the forge version but for your sake i will take a look

west kernel
#

Thank you 🥺 🙏

west kernel
#

I tried a few things for testing purposes. I wiped the server and made sure only these mods were installed and I minimized the EntityJS file to 1 easter egg mob with no attributes or builder methods. Sadly even the most minimal script still produces the error 😔

wooden leafBOT
#

Paste version of easterTest.js from @west kernel

west kernel
#

Same client error as well.

hidden plover
#

alright ill run a test

#

there isnt server only mode enabled in kubejs configs is there?

hidden plover
#

oh huh

#

attribute supplier is null? hmmm

west kernel
#

🤷‍♀️ I tried removing attributes entirely but it didn't make a difference sadly.

west kernel
#

Is that the problem?

hidden plover
#

server only mode would make it so the server's startup scripts dont work, if you dont know about it then nvm

hidden plover
#

theorhetically you could try the nonliving builder and see if that works

#

or "minecraft:boat" though that one has a hard colliding hitbox

hidden plover
west kernel
#

Is that an issue with the mod or something I did?

hidden plover
#

nah, thats on me and where i registered attributes, fabric is a bit different with the attribute registries than forge so this is just a skill issue on my part

#

ill let you know if/when its fixed, will work on it today

west kernel
#

Thank you so much for your efforts! ❤️

hidden plover
#

yup

#

i will try to save you from the dreaded mcreator path

#

if i can

west kernel
#

L;OL

#

I mean yea, but EntityJS would be much better if possible. I do have a ton of experience with MCreator. Taught it in public school classes and summer camps with over 30 kids per class and stuff.

#

But it's not meant for Fabric sadly.

hidden plover
#

ah fr

#

yeah i mean mcreator's a cool concept but debugging and really fixing it/updating it in any way is pain

west kernel
#

MCreator is the reason I stuck with Forge for so long. The only Fabric support it has is a player-made plugin, so it's extremely limited. But these days, my 11 year old desktop can't run Forge like it used to so I switched to Fabric, thinking I wouldn't end up modding on my server

#

Honestly, I haven't had many issues in the later versions of MCreator. I've been using it since 1.12.2 and you're right about that being a pain. But I think MCreator 1.18+ is easier and more user friendly than KubeJS.

#

I've made some incredible things that you wouldn't think could be made with earlier versions of MCreator.

hidden plover
#

now thats actually cool

west kernel
#

Zero coding, and I believe even that was on 1.16.4

#

I've also made a Capture the Dragon Egg mod which is basically manhunt on whoever holds the dragon egg, and the mod also gives up to 3 rewards and/or potion effects to the holder. Whoever holds the egg receives permanent glowing and their dimension & coordinates are broadcasted to the server via bossbar. Everything is customizable via command and config to whether or not the holder glows to the rewards and how often rewards are given.

hidden plover
#

nice

hidden plover
#

@west kernel entityjs 0.2.8 should be up on curseforge/modrinth in a couple minutes with the fix

west kernel
#

Ty!

hidden plover
#

let me know if it fixed the issue

west kernel
#

Sorry! I'm going to test it soon. I've been so busy today. My foster rabbit gave birth to 5 newborns this morning and didn't put her babies in the nest, plus the other bunny she came with needs to be separated into a whole new enclosure so momma can tend to her babies. It's hectic 😅

hidden plover
#

awe

west kernel
#

It works!!! Thanks so much!

wooden leafBOT
#

Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue!
This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.

Do you have any other questions regarding your issue? Feel free to ask!
Note: You should create a new post for unrelated issues.

hidden plover
#

@west kernel