Mrbysco / TelePastries

Pastries teleporting players.
https://www.curseforge.com/minecraft/mc-mods/telepastries
MIT License
2 stars 8 forks source link

[Bug]: Issue with Adding Custom Cakes #22

Open SaihaoDraw opened 1 month ago

SaihaoDraw commented 1 month ago

General Info

Forge version

forge 47.3.5

Minecraft version

1.20.1

Mod version

1.20.1.0.8.3

Java version

8

Issue Description

Hello,

I've decided to continue the conversation here on GitHub as it's the most appropriate place.

I'm encountering an issue with adding custom cakes. I modified the base cakes and tried to add a new one, but every time I restart the game, the custom cakes are removed from the config file.

I've double-checked the syntax multiple times. I'm using the same structure as for CustomCake3 and only changed the relevant numbers in the config. Despite this, I receive the following error in my logs:

Incorrect key CustomCake4 was corrected from SimpleCommentedConfig:{consumeCustomCake4=true, customCake4Name=Bumble Cake, customCake4Dimension=the_bumblezone:the_bumblezone, customCake4RefillItem=[the_bumblezone:beespire_catalyst], customCake4MinY=2, customCake4MaxY=254} to its default, null.

I'm a bit lost at this point 😅. Any help would be appreciated!

Additional Information

No response

Mrbysco commented 1 month ago

Are you removing line-breaks? as you can't touch those

SaihaoDraw commented 1 month ago

No, normally not.

The basic custom cakes (1, 2, 3) all work perfectly. But when I add the 4 and then launch the game. It is automatically deleted when the game is loaded.

Capture

Mrbysco commented 1 month ago

Wait, is the refill item an array in that screenshot? I think it should just be customCake3RefillITem = "blue_skies:everdawn_catalyst" etc

SaihaoDraw commented 1 month ago

Yes, but it's the same for custom cake 1 and 2. I just copied and pasted and changed the number to 4. The first three custom cakes also work with arrays, and everything functions properly

Capture

Mrbysco commented 4 weeks ago

I'll look into it this weekend

Mrbysco commented 4 weeks ago

Have you tried editing it in-game using a mod like Configured btw?

SaihaoDraw commented 4 weeks ago

I just tried adding custom cakes via the in-game config, but it's impossible to add new custom cakes that way. I can modify existing ones slightly, but adding anything new doesn’t work.

Mrbysco commented 4 weeks ago

There is no way to add more than the existing ones currently

SaihaoDraw commented 4 weeks ago

Do you think it would be possible to add an option or a way to create new custom cakes in a future update ?

Mrbysco commented 4 weeks ago

I wouldn't know what the best way would be. I think you should be able to add new ones using KubeJs

SaihaoDraw commented 3 weeks ago

I just looked into making a custom cake with KubeJS. After asking on Discord, I was advised to use the Farmer's Delight extension to create the custom pies. Additionally, I need to add a teleportation code. There's also the risk of spawning and suffocating in blocks.

Overall, it's complex and quite a hassle xD.

I hope it will be possible for you to add an option or something similar to make it easier to add custom cakes.

Thank you for your help! I'll keep an eye out for any updates!