#General & Development Help

1 messages · Page 7 of 1

neat mango
#

I think so. I just need to check and update a value stored in the NBT tag of the ItemStack

zealous zenith
#

Reactive adds extra nbt when the craft finishes so that’s probably what you want

neat mango
#

oh cool. I will look at that for reference

radiant depot
#

Yeah you need a custom recipe type

sweet dock
#

anyone knows if it's possible to get the current frame/tick an animation is at with player animator? tried asking on their server but it's been 2 days and I got exactly 0 replies

sweet dock
#

eh doesn't matter found a workaround ig

#

not the prettiest one but it works

wide swan
#

is there an offset or something I could define that the sword wont disapear in the table ^^?

radiant depot
#

That's probably tied to one of the prospectives

#

I don't remember which one is used in the table, probably either ground or fixed

wide swan
#

Ok I will try thank you 😄

radiant depot
#

You can see the slider while you make the model in blockbench

#

And one of them is too different from the base offsets

wide swan
#

I think its this one right?

#

ah no found it

#

Ah yes thank you Alex.

wide swan
#

I tried to add patchouli but now I get these errors

wide swan
#

oh lol that is happening in IntelliJ only

ashen grail
#

invalidate and refresh caches

neat mango
#

while working on this I realised that Starbuncles dont pass the rightclick mobInteraction

radiant depot
#

it doesn't call super

#

i don't remember if i fix that in shoulderRider

#

but i remember seeing that

neat mango
#

cool

#

I will close the EnderIO issue as "not our issue". Will check if it has been fixed already in latest Ars Nouveau master else make an issue thread/look for fix from Ars Nouveau side

radiant depot
#

can confirm that i only fixed that with the shoulder riding demo

#

changing return dynamicBehavior.mobInteract(player, hand);

#

to InteractionResult ir = dynamicBehavior.mobInteract(player, hand);
//if nothing that consume the action happens on dynamicBehavior, pass to super
return ir == InteractionResult.PASS ? super.mobInteract(player, hand) : ir;

#

and also the other return Success with super call

neat mango
#

okay I will get to the fix. Will do a quick check on other mobs as well

radiant depot
#

not sure what's the extent of this pr

#

it should probably attempt to work on familiars

#

i didn't try yet since i expect a bunch of shenanigans

#

as the entity gets temporarily removed while on shoulder

#

but both passive effects and mana reserve mechanics need to remain active

#

familiars are too delicate, i already saw a bunch of possible duplication issues

neat mango
#

since you already have a PR up, I will not create a separate fix

neat mango
radiant depot
#

Will eventually redo the PR for 1.19 as backport later on

neat mango
#

why was 1.20.1 switched over to neoforge?

#

everyone seems to still build against 47.1.3

radiant depot
#

Kind of a "statement" to say that the mod will continue on neoforge if the split happens

#

Lex had just started merging very weird stuff and everyone on FC was switching

#

Building against neo shouldn't be too different from building on forge pre-madness

#

And this way the gradle migration doesn't need to happen during the 1.21 porting

neat mango
#

so the current builds should work on 47.1.3 just fine?

radiant depot
#

The server is on 47.1.3 as proof

neat mango
#

oh awesome

neat mango
#

Where can I find Ars Nouveau lore lol

#

I need to know what is the basis of source

radiant depot
#

There was something in the intro pages

#

But very little, it's probably just better ask @rugged urchin

wide swan
neat mango
#

don't use forge past 47.1.3

#

ars nouveau and alot of new mods don't support forge after 47.1.3

#

they all have moved over to neoforge (mostly). A proper split will happen in 1.20.2

rugged urchin
# neat mango I need to know what is the basis of source

It's pretty open ended, but the base idea is that source is basically everywhere all around you in the world that can be tapped into.

The only thing I'd like to add to the canon once we rewrite the doucmentation is that source can be tapped into by creatures that are uniquely adapted to converting it into mana (players & magical creatures) or by machines designed for its extraction and direct use (sourcelinks, spell turrets, etc)

#

The rest of it is left to interpretation and however add-ons want to explain things.

#

(though an addon that directly contradicts the source theory and pushed their own forward would also be interesting lol)

neat mango
#

I am going to do that to an extent lol

#

I have a pretty decent plan of introducing a "chaos mage" class that combines "source magic" (ars nouveau) with "void" (to be decided)

#

I still dont have a concrete plan of what I am going to do with it but understanding the basis of source can help me imagine and think about mechanics

mossy hollow
#

It sounds very similar to D&Ds explanation of Magic, with the weave existing all around the world and being this resource that can be tapped into and materialised into various effects

#

And to add, there's also a concept of Void, which is the space between the planes of D&D, like if the overworld, the end and the nether were all different planes, what exists between them?

neat mango
#

I have not played D&D before but tried a little bit of Divinity 2 (never got around chapter 2 lol) and it definitely inspired me :)

neat mango
mossy hollow
#

If you enjoyed Div2, try BG3

neat mango
#

it was fun but getting the whole party to play that game was harder lmao

#

we started the run twice but never got past chapter 2 ( left as soon as we reached chapter 3)

mossy hollow
#

Yeah, smaller parties are easier to handle, I did my Div2 playthrough with just one person

rugged urchin
#

It is very much like the Weave lol. I think the original idea sort of came from Thaumcraft with how their magical elements came from breaking down the magic in the world around you via the alembic.

radiant depot
#

Not too related but Wheel of Time uses similar terms too

#

Calling the magic from which the wizards draw power Source

#

But it's a bit more like the concept of a river, a spring

#

So they also have terms like "stilled" for when their flow of magic can't connect to the Source anymore

mossy hollow
#

my recipe isn't being read and I'm going crazy

#

So I'm generating recipes the exact same way as I was doing for the animal summoning ritual, but these recipes for some reason aren't being picked up by the getAllRecipesFor code:

return getWorld().getRecipeManager().getAllRecipesFor(RecipeRegistry.LOCATE_STRUCTURE_RITUAL_TYPE.get()).stream();
#

I may have just figured it out

#

thanks for being my rubber ducks

#

mistakes were made

radiant depot
#

What are you cooking?

#

ah, nvm it's pretty obvious

mossy hollow
#

Locate Structure ritual with a recipe datatype

#
{
  "type": "ars_nouveau:locate_structure_ritual",
  "augment": {
    "item": "minecraft:mossy_cobblestone"
  },
  "structure": "minecraft:jungle_pyramid"
}
#

compass + mossycobble = bound compass

mossy hollow
#

and now my compass is not saving an nbt tag 😭

#
ItemStack compass = new ItemStack(Items.COMPASS);
CompoundTag nbt = new CompoundTag();
compass.setTag(nbt);
nbt.put("LodestonePos", NbtUtils.writeBlockPos(pair.getFirst()));
Level.RESOURCE_KEY_CODEC.encodeStart(NbtOps.INSTANCE, serverLevel.dimension()).result().ifPresent(tag -> {
    nbt.put("LodestoneDimension", tag);
});
nbt.putBoolean("LodestoneTracked", true);
#

and yet LodestonePos is missing

radiant depot
#

I just tried to make an equivalent of the shocked ramp up

#

with full earth build it ended up giving poison spores 50 damage/resolve

#

and i feel like i have no idea if it's too much or just average

radiant depot
#

the other thing i was thinking about was this, as another type of st earth spell

#

well, kinda st

#

i was experimenting with molang variables to adjust the render scaling based on aoe and pierce

#

which would obv also scale the hitbox

neat mango
#

Are the spellbooks spells stored as NBT ?

shadow helm
#

Yep

#

Ars Instrumentum is basically Nbt utils

neat mango
#

oh cool

wide swan
#

Alex can you add my addon to the addon-index? peepoShy

mossy hollow
#

Okay pls help because I'm going insane:

ItemStack compass = new ItemStack(Items.COMPASS);
CompoundTag tag = compass.getOrCreateTag();
tag.put("LodestonePos", NbtUtils.writeBlockPos(pair.getFirst()));
Level.RESOURCE_KEY_CODEC.encodeStart(NbtOps.INSTANCE, serverLevel.dimension()).result().ifPresent(dimension -> {
    tag.put("LodestoneDimension", dimension);
});
tag.putBoolean("LodestoneTracked", true);
serverLevel.addFreshEntity(new ItemEntity(serverLevel, pos.getX(), pos.getY(), pos.getZ(), compass));

creates entity with the correct data:

#

but then when I pick it up:

#

where does the LodestonePos go

#

give it back pls 😦

radiant depot
#

I wonder if it is the same issue as name with item entities being random

mossy hollow
#

what do you mean?

#

I'm going to try now adding the item direct to the nearest players inventory

radiant depot
#

If you use name on an item entity, it gets applied to the entity but it's a bit random whether the name gets applied to the item itself once picked up

#

But in theory here you apply the tag directly on the itemstack, so there shouldn't be desyncs

#

Wild guess, try to make a break point on the item entity pickup and follow what happens ?

mossy hollow
#

it's not entity related:

Player player = serverLevel.getNearestPlayer(pos.getX(), pos.getY(), pos.getZ(), 5, true);
if (player != null) {
    player.addItem(compass);
}
#

Found it, there's some code that checks if the lodestone exists and if it doesn't it removes the lodestone pos tag

radiant depot
#

Oh, lol

mossy hollow
#

It should be LodestoneTracked: 0b

#

yikes

mossy hollow
#

Does anyone know how to get the bounding box of a Structure?

neat mango
#

anyone knows whats happening here ?

#

it seems like a desync between client and server states but it only happens with spellbook

#

every other item works fine

#

does spellbook have a right click handler except from the item use method ?

neat mango
#

okay I dont know what is causing this but it even more confusing

#

I enabled debugging and monitored level and player hand. When I use any other item except spell book I get 2 cycles, Client+Main Hand and Server+Main Hand

#

but for the book I get 3-4 -> Client+Main Hand, Server+Main Hand, Client+offhand(this is random) and Server+offhand

#

something about the book is triggering offhand

radiant depot
#

maybe there's something coded to give offhand priority

#

idk if you ever tried to hold the spellbook with a shield in hand

#

but it will cast once then start defending

neat mango
#

I cant find anything related to offhand at all

neat mango
#

@zealous zenith do you happen to know where and how the spellbook might be triggering the offhand ?

wanton ivy
#

I may be late to the party, but I love the new(ish) glyph system!

radiant depot
#

well, you started late

#

your addons were made in mid 1.18, right?

neat mango
#

new system ?

#

do you mean on player glyphs ?

radiant depot
#

the old is the glyph press

neat mango
#

oh from 1.16

#

forgot about that

radiant depot
#

but i guess they also mean the new glyphs?

wanton ivy
#

I didn't even see the new glyphs yet, just the way you make em. But yeah I started around August 2022

neat mango
#

Why does Ars Nouveau use mixin accessors over ATs ?

radiant depot
#

maybe to not trigger the recompile hell

#

only reason i can think of

mossy hollow
#

Accessors are easier generally

neat mango
#

I see

radiant depot
#

moving accessors to ATs wouldn't hurt anyone if combined with something else that triggers rebuild

#

but while developing, it's way faster to use a mixin that finding the srg name and waiting gradle

runic scaffold
#

Is there a resource pack that makes the spellbooks 2d?

#

I've been trying and its very difficult

radiant depot
#

Maybe not possible as it's coded to use a geckolib model

#

so it doesn't get to be overriden, at least for the hand

#

but not sure, maybe it does still follow the vanilla rules

runic scaffold
#

I've tried to use vanilla methods and it doesnt like it

shadow helm
#

I don't think you can override gecko textures with vanilla once there's a gecko renderer defined for the item, can you?

radiant depot
#

If the vanilla model swap doesn't work, it doesn't

#

Model can be swapped, but only with another geo

#

Textures shouldn't have issues

neat mango
#

Yes, ToB does that

neat mango
#

nvm I get it. Who tf made the MobEffect ctor protected lmao

#

the name also makes sense lol

wanton ivy
#

It's fiiine, at least it isn't private!

radiant depot
#

Took me a while to get it

neat mango
#

EffectBlink uses InventoryManager#highestPrefInventory to get access to warp scrolls

#

I am assuming this considers priority of offhand as well as hotbar before going into rest of the inventory

neat mango
#

Is the warp scroll restricted to only the hotbar ?

radiant depot
#

iirc it can check the other slots of inventory too when on a rune

neat mango
#

cool

radiant depot
#

Anyway, i suggest checking via debugger

neat mango
#

it doesnt have access to offhand nor the main inventory. it only access hotbar

#

got any idea on how I can get a priority for offhand -> hotbar-> main inventory search for an item ?

radiant depot
#

Wasn't there an overloaded method with additional param

#

You might be using the wrong one perhaps

neat mango
#

cant find the method. from what I can understand, it hardcodes it to hotbar ig

#

except Blink glyph is there any glyph that interacts with an item in the inventory ?

neat mango
#

You were correct alex. It wasnt a overloaded function but I could just create my own inventory wrapper and pass it in

#

it doesnt work with offhand but it works in rest of the inventory so that works for me

gleaming fox
#

hello there, is the Curios library included in the addon repo?

#

if not how can i add it there?

#

(i will often be asking dumb question as this is the first time im doing a mc mod)

shadow helm
#

All dependencies necessary for ars should be. Do note that it's only 1.19 as far as I saw (on mobile though so... i may have missed)

gleaming fox
#

thank uou very much friend 👍

#

seems like my brain still hasn't grown enough

#

anyway

#

time to go to sleep

#

bye bye

wanton ivy
#

Another one for the horde

radiant depot
#

1.20 is on my fork

#

The open PR was not merged by Bailey

gleaming fox
#

in build.gradle, what does this do?

neat mango
#

it sets the base name for the final jar

gleaming fox
#

ok thanks

#

👍

gleaming fox
#

ok this was the dumbest fix ever

neat mango
#

your filename starts with a capital letter while your class name doesnt

gleaming fox
#

i found it out

neat mango
#

Java things TM

gleaming fox
#

another reason to hate java

neat mango
#

its fine lol

gleaming fox
#

it is time for me to create even moar trinkets

#

because you never have enough mana

neat mango
#

why do you need so much mana lol

gleaming fox
#

because

#

i have a spellbook and each spell is a part of a bigger spell

#

so when i put all the spell in order it does a lot of damage

neat mango
#

ah

#

do send the spell afterwords :)

#

also I am gonna do self promotion and ask you to check out ToB if you wanna get rid of mana cap

gleaming fox
#

im stuck on 1.19.2 ;-;

#

no ToB

#

i had ToB and it was great

#

(1.16

#

but it can only cast T3 spels

#

as of rn i barely have enough mana

neat mango
#

weird. from what I see T3 Armor+trinkets+ good number of unlocked glyphs gets rid of mana for the most part

gleaming fox
#

one spell consumes on average 3k mana, and a 'composite spell' is composed of like 6-8 smaller spells

#

so even if i have a metric ton of mana after i use the spell im litteraly a sitting duck waiting to be finished

#

also it would be cool to have almost unlimited mana

gleaming fox
#

i need to paint 5 different items

#

...

#

time to 'borrow' pictures

wanton ivy
#

We do that subconciously anyways :3

#

Don't quote me on that.

ashen grail
#

is development for Ars still primarily for 1.19 or have things more or less stabilised on 1.20.1 now?

radiant depot
#

At the moment development is kinda paused, so bugfixing and little features manage to get on both vers

#

And I don't know of any breaking change planned in short time, only the little art restyle

wanton ivy
#

Epic socks

gleaming fox
#

how can i have several item types in the EnchantingApparatusProvider.run() method?

neat mango
#

as ingredients ?

gleaming fox
#

yes

#

ingredients

neat mango
#

you can repeat .pedestalItem() if you want a different ingredient

gleaming fox
#

oh ok

gleaming fox
#

is this the display name or the item name?

neat mango
#

no

#

that is the registry name for the item

#

you will have to create a lang entry for the item name

gleaming fox
#

ah ok

#

this makes sense when i think about it

#

thanks for the tips

neat mango
#

you need to create a file in assets/<modid>/lang/en_us.json

gleaming fox
#

its already there

neat mango
#

and add an entry in this format

#

if you are familiar with data generation, you can use that as well. if not, typing by hand is not much work either

radiant depot
#

If you use the replace in files tool (in intelliJ) you should manage to transform all example stuff into a base for you modid

#

But don't forget to rename folders too

gleaming fox
#

i made sure th rename every sensitive things before coding

gleaming fox
#

i succeeded in starting the game

#

this is going to be annoying

radiant depot
#

you added that many items?

#

Model errors or need the textures for them

gleaming fox
#

i have the textures

#

i found the error

radiant depot
#

Always watch out for typos

gleaming fox
#

tahnks for making me think of looking at the models

#

i copied and pasted a lot of things

#

and i didn't update the modid

radiant depot
#

Like an s or an underscore

gleaming fox
#

btw where do i put the curios slots if i want an item to be a curio trinket?

#

fixed almost all of the texture errors

neat mango
gleaming fox
#

i think i fugured it out

radiant depot
#

All tag based now basically

gleaming fox
#

its all working now

#

i just need to create recipies (its going to be VERY VERY VERY painful to get the last item)

gleaming fox
#

are therea any ways to reduce the time required to 'build' an item with the enchanting apparatus?(not necessary anymore)

#

can anyone explain what this does?

#

i know that it crafts an item using the imbument chamber but i have trouble with understanding how the snipet works

#

what is the id in new ImbumentRecipe used for?

neat mango
#

id is the id of the recipe it will create

#

you can set it to whatever you want. its the name of the json file that it will generate for the recipe

gleaming fox
#

ah thanks

gleaming fox
#

its working :^)

runic scaffold
neat mango
#

Tome of Blood

#

addon mod which adds Blood Magic compat

gleaming fox
#

my recipies aren't showing in JEI. What do i do?

#

btw how do i set the result of an apparatus recipe to a block included in ars nouveau?

neat mango
#

what recipes are they ?

neat mango
#

look into the patchouli Provider section for data generation

gleaming fox
#

thanks !

radiant depot
#

The recipes ain't showing, or the items aren't showing at all?

gleaming fox
#

the items are here, but the recipies in JEI/REI aren't showing

gleaming fox
#

i have a little question; where can i access the mana of the player and modify it if possible?

zealous zenith
#

do you want it to adjust it a single time on demand or hook into the regen and max values?

gleaming fox
#

i want the total mana capacity to stay the same, but it should drop before going back up naturally

#

liek when using a spell

zealous zenith
#

so you just want to expend mana?

gleaming fox
#

yes

#

please

zealous zenith
#

CapabilityRegistry.getMana( <player> ).ifPresent(mana -> mana.removeMana(totalCost));

gleaming fox
#

thanks a lot

#

the mana function is storedMana() in 1.19.2

#

or the current AN template

zealous zenith
#

hm? looks the same to me

#

what file?

gleaming fox
zealous zenith
#

thats just the param name, you can name that anything you want

gleaming fox
#

oh ok

#

thanks

gleaming fox
#

so i just went down way too deep of a rabbithole

#

but what is the best way to have a persistent variable for a player?

#

should i create a new attribute or take the hashmap route?

#

both seem equally as TERRIBLE as the other to me

radiant depot
#

Depends on what s said variable

gleaming fox
#

a hashmap used to store mana

#

like in ToB (the way its used to do things ingame)

#

well similar

#

i'll give it my own spin

radiant depot
#

Then maybe a capability? If it needs to persist and is not something you can simply slap in the persistent data

gleaming fox
#

capability?

#

what is that?

radiant depot
#

@neat mango more context on what you're doing in ToB?

gleaming fox
#

he is most likely using the Blood Magic LP pool to turn it into mana

#

im preparing to do something similar

#

like you sacrifice 'essence' (an in mod ressource) and then you get some mana which you can store and use to fill your own mana bar

gleaming fox
#

i will look into it

neat mango
#

blood magic uses 'SavedData' which is a way of attaching data to the world/level

#

and which stores map with list of players and soul data

gleaming fox
#

this is the road i wanted to take

#

but it seems slow

gleaming fox
#

yes

neat mango
gleaming fox
#

but not directly inside the mana bar

#

it would be like having a glass of water, a tap and a bottle

#

the bottle stores water (mana)

#

but you can only drink from the cup

#

however with the bottle you can fill the cup faster than going to the tap

#

but when the bottle runs out you need to fill it or go to the tap

neat mango
#

I don't understand that exactly but yeah player cap is meant for this

#

saved data will be slower because it is attached to the world and it is not that big of a deal either

gleaming fox
#

thanks for the advice

#

time to read some docs

neat mango
gleaming fox
#

oh interesting

gleaming fox
#

wrong channel

#

mb

gleaming fox
#

can anyone explain what the CapabilityManager.get method does? I can't find it and it may have been changed

shadow helm
gleaming fox
#

so i found the problem

#

tabnine did a thing and decided to place a new before the capabilitymanager#get could do its things

mossy hollow
#

The issues with AI auto-complete

gleaming fox
#

yep

#

its convenient but it creates a lot o fbugs

gleaming fox
neat mango
#

this is what Ars Nouveau does

#

is CopyFrom even a method ?

gleaming fox
#

not this one

#

its a method i added

#

used for my mana holding crystal ball

#

ill push to my git

neat mango
#

whats the exact error you are getting ?

#

also dont know if its intentions but both vars are the same

gleaming fox
#

i found the error

#

thanks chonkey

#

so i created the recipes in the arsprovider.java file
but i tried to create the items and it didn't work

neat mango
#

do any of the addons add custom recipe type of enchanting apparatus ?

#

ArsNouveauAPI.getInstance().getEnchantingRecipeTypes().add(RecipeRegistry.ENCHANTMENT_UPAGRADE.type().get());

#

is this enough to register a new RecipeType ?

mossy hollow
#

Ars Artifice does I think

#

It's either Enchanting or Imbuement

#

Elemental also does one

neat mango
#

nice! I will look at their code

gleaming fox
#

did you make any progress in your quest chonkey?

neat mango
#

Yeah

gleaming fox
#

oh?

gleaming fox
#

😮

#

can i know how you made the recpie?

#

i added one in the ars provider

#

but then its not in game

#

very frustrating

neat mango
#

the provider is just for recipe generation

#

you need to create a recipe type

#

wait

gleaming fox
#

how so?

neat mango
#

do you want to add a custom recipe ?

gleaming fox
#

ys

#

yes

neat mango
#

thats pretty straightforward. after you add the recipe in provider, switch your run type to runData and launch

gleaming fox
#

run type?

neat mango
#

1 sec

gleaming fox
#

oh will it create some .json files?

#

and then i put the in ressources?

neat mango
#

switch to runData and launch. That will run your game in data generation mode. It will generate all files you want it to

neat mango
#

the way it is configured is that generates the files and puts it in the correct folder

#

shit, I deleted your message by mistake

#

I was supposed to reply to it lol

#

what I was going to say was, datagen is super convenient. I use it to generate lang files, basic item and block models, recipes, etc

gleaming fox
neat mango
#

read the whole log

gleaming fox
#

where is it located?

#

those 2 are empty

neat mango
#

it should show up in the intellij console itself

#

or you can just scroll up in the console

gleaming fox
#

here

neat mango
#

Yeah click on the :runData to see full log

#

from the second pic

wide swan
#

why is your IntelliJ white Wokege

#

flashbang

gleaming fox
#

all of the errors

gleaming fox
#

and white mod kinda stayed with me afterwards

neat mango
#

regen runs and see if that helps

gleaming fox
#

same errors

#

would this work?

gleaming fox
#

so i think that there is some level of progress?

radiant depot
#

Isn't that just the success error?

gleaming fox
#

it is the success error?????

radiant depot
#

Depends on what the actual log says

#

But runData gets killed once it has done its work

#

So it shows up as an error there

gleaming fox
#

here is the console

#

it worked

#

thanks for the help friend

gleaming fox
#

how can i get the Hotbar slot an item was used from?

#

btw i know when the click is triggered

#

i just need to get the current hadn slot

#

preferably its number

radiant depot
#

I think usually you check the slots and try to match

#

As there are no other information about that

gleaming fox
#

can you please elaborate?

#

i don't think i quite understood

#

wait

shadow helm
#

you get all slots while knowing which item triggered the code you're executing right now.
Then you iterate over the slots until you find the matching item

gleaming fox
#

what if i made the item a 'food' since its going to be a consumable

#

time ti use a roundabout way to do stuff

gleaming fox
#

found the correct method

shadow helm
#

Huh. Nice to know that exists!

gleaming fox
#

idk if it works

#

i will have to test it

wanton ivy
#

Lul

wide swan
#

how do you get the ARMOR_MODIFIER_UUID_PER_TYPE into the armor class? I want to add more base max mana to the highest armor tier I am working on

#

or is it done via accesstranformer?

#

allthemodium x ars nouveau

radiant depot
#

Didn't I left a getter method for that?

#

Otherwise AT, yeah

wide swan
#

I think you changed it there too right?

#

the max mana

radiant depot
#

public net.minecraft.world.item.ArmorItem f_265987_

you gotta AT this then

wide swan
#

ok thank you

radiant depot
#

There are _ between the f and 2 and after the 7

#

But discord treats them as italic

#

Sad for my hook being removed tho, I don't know why I didn't PR that back

shadow helm
#
Const doubleBackticks = ``won't be _formatted_``
radiant depot
#

I think those don't appear on my phone keyboard

#

Oh, they work for this

#

Just not for the code block

#

Fixed then

shadow helm
#

All the braces and characters you ever need for mobile dev support

nocturne mason
wide swan
#

is there a way to use the path of the different colored armor textures in the .json ?

gleaming fox
#

idk

#

probably

#

how can i get the supreme addon role?

trail sinew
#

which addon did you make

gleaming fox
#

its not public yet (no compiled version publicly added)

#

still a wip

#

guess i'll take my time to do it

gleaming fox
#

aint no way ars omega is getting a celestial school 😻

trail sinew
#

yeah link the curseforge page once you have it and we'll slap the role on ya

gleaming fox
#

thanks

#

its on my git atm

bright shore
#

I'm gonna move divine smite and have a new upgraded lightning for school of air

neat mango
#

#announcements message

#

does this require an update to addons ?

#

patchouli one

zealous zenith
#

No

neat mango
#

cool

gleaming fox
#

how should i go about creating a beam like water glyph? particle or something more convinient?

shadow helm
#

You can check how TMG does it for ray ?

gleaming fox
#

not that beam

#

i know kust need to create a water beam

#

like the hydro pump attack from pokemon

#

oh wait

#

figured it out

#

what if i create a ´ray’ of particles from the sender to the target

#

that would work

#

if the glyph doesn’t hit anything then no need for particles polliting servers

bright shore
#

So, what TMG does for ray?

#

I thought it was a beam if the purple spell particles that fade quickly

gleaming fox
#

no

#

it would trace a beam of particles between the caster and teh target

neat mango
#

#1166172194871705721

gleaming fox
#

thanks

#

i managed to get semi decetn results

#

so i'm having troubles dealing damage with my spell resolver

#

i wanted to do this.attemptDamage(args) but i can't find the method

bright shore
#

I think there's an interface now for glyphs that do damage, and that's a default method there

#

oh wait, resolver?

#

um

gleaming fox
#

yes

bright shore
#

... why with a resolver?

gleaming fox
bright shore
#

oh that method

gleaming fox
#

it kinda works

#

so im fine with it

#

(i just need to figure out how to do the stupid damage

bright shore
#

no no this is the correct way of making glyphs

#

like I said, I think there's an interface now

#

are you on 1.20? or 1.19.2? or something else?

gleaming fox
#

1.19.2

#

brb

#

parents

bright shore
#

look for IDamageEffect

#

it has a default method that does exactly what you want

#
default boolean attemptDamage(Level world, @NotNull LivingEntity shooter, SpellStats stats, SpellContext spellContext, SpellResolver resolver, Entity entity, DamageSource source, float baseDamage)
gleaming fox
#

thanks

#

ill check it out tomorrow

#

gn

wanton ivy
#

1.19.2 ftw

neat mango
#

data attachments look pretty cool. it would make the ars mana system very concise

gleaming fox
#

its working, thanks for the help Dkmk ^o^

#

does the DamageSource#...#bypassInvul makes it so that IFrames are ignored?

#

or does it work against things like fire invincibility, fall invincibility, etc

bright shore
#

whole nine yards

#

IIRC

gleaming fox
#

time for the water school to get some new shit

#

also wind

gleaming fox
#

i love java 😠

shadow helm
#

Hey, Java's fine, Minecraft development realities are just 15 years behind the conveniences of actual Java dev work

gleaming fox
#

java is just weird at times

#

found out why intellij was cursing at me

#

turns out it got deprecated

#

anyway

#

i just wanted to know, but if i create a fifth tier of glyph, will I need to create a 5th tier spellbook?

#

would this set the glyph's base damage (spaghetti code i know)

neat mango
#

use the config system instead

#

it lets users/modpacks change values if they need

#

just follow what HarmEffect does

gleaming fox
#

im not smart enough

#

so imma just do the recommended way forst

#

first

#

then ill implement all config stuff later o,

gleaming fox
#

wait building a config is not that bad

neat mango
neat mango
gleaming fox
#

so i just need to put this here and let it sit?

#

like that?

mossy hollow
#

Pretty much yeah

radiant depot
#

you should look at omega code for how to make the upper tier

#

But it's totally possible

#

Might be enough also to look at the SpellTier class

gleaming fox
#

thanks

#

👍

#

anyways

#

im currently doing 'util' glyphs

#

as the game critically needs some

gleaming fox
#

so i tried testing my things

#

turns out the game is not liking them at all

#

what does this bit of code does?

shadow helm
#

Calls the onResolve method of the class you inherit from

gleaming fox
#

is it necessary to use it?

shadow helm
#

🤷‍♂️
Can't give a blanket answer to that

gleaming fox
#

IT WORKEd

#

YAY

#

now i just need to link the textures

#

and the names

#

found the error

radiant depot
#

since onResolve calls one of the two based on what's been hit

gleaming fox
#

yeah

#

i figured it out

#

thanks anyway

gleaming fox
#

so my code is mostly working

#

but i can't seem to be able to get my attacks to ignore the IFrames

trail sinew
#

Why would you want to ignore them?

gleaming fox
#

because my vision of a glyph im working on is that it will create a spear of water which will do TONS of small damage hits

radiant depot
#

This is 1.19 right?

gleaming fox
#

at least 2 per ticks

#

yes

radiant depot
#

target.invulnerableTime = 0

#

Will manually reset them

gleaming fox
#

won't this make it permanant?

#

ohhh

#

i get it

#

thanks

radiant depot
#

It's like a timer

gleaming fox
#

thanks a lot

#

btw how can i make certain augment glyphs accessible?

#

found it

mossy hollow
#

I'm finally trying to update to 1.20.1, any idea why all my textures broke? 😦

gleaming fox
#

idk

radiant depot
#

atlas change

#

would be first guess

#

the second guess is that iirc Bailey finally fixed the block folder being called blocks and item items

zealous zenith
#

Folder plural?

radiant depot
#

so you simply need to rename that s

mossy hollow
#

it works, bailey sabotaged my mod

mossy hollow
#

Just got to register my items in the Ars tab and then I'm good to release 1.20.1 I think

gleaming fox
#

her

gleaming fox
#

so i did a lot of tweaking

#

and now it does decent amounts of mana

#

however with enough preparation and sourjars, it can deal 200k+ damage

neat mango
#

woah

radiant depot
#

Hard to tell what's happening with all these particles

gleaming fox
#

how can i make it so that a player has got more mana (temporary) than his max limit?

#

like eating a food grants bonus mana

radiant depot
#

easy way is having a potion effect

#

mimic how source rolls give mana regen, but with max mana instead

gleaming fox
#

wait

#

how can i make this?

radiant depot
#

as i said, look into how the source roll is made

#

and how mana regen potion effect is made

gleaming fox
#

ok

#

thanks

radiant depot
#

then you simply need to change the attribute it boosts

gleaming fox
#

ah

#

i get it

#

i love ars' addons 😻

radiant depot
#

is that meant to be a gilgamesh moment?

gleaming fox
#

idk

#

i just thought it looked cool

#

base is a burst sensitive with propagate missile

gleaming fox
#

hahaha

#

yes

#

i guess it kinda is

#

expensive ahh spell

nocturne mason
#

is there a way to use both block shaping focus and focus of earth

radiant depot
#

Hold earth_focus in offhand

#

Or edit curio config to allow to focus slots

nocturne mason
#

ok

bright shore
#

I kind of miss the can be used on method in effects

#

So I might add it to my glyphs and have a class to manage custom ones for base ars plus any addon compats

neat mango
#

does ars provide any helper for JEI stuff or should I create my own plugin for it ?

#

I need to register a new recipe type

zealous zenith
#

you have to make your own if you arent using the AN recipes

neat mango
#

okay

mossy hollow
#

Is there a way to update the glyph tooltip based on the spell crafted?

#

or just using runtime config values?

#

Ah, I can use getBookDescLang

mossy hollow
#

What's the 0 above the mana bar?

gleaming fox
#

the spell number probably

#

maybe mana regen?

radiant depot
#

Supposed to be the mana reserved by familiar

gleaming fox
#

what does that mean?

radiant depot
#

When you summon a familiar, (or with the future summon rework when you summon anything) it takes a bit out of your max mana

zealous zenith
#

The 0 is the selected spell slot

#

or is that a debug thing alex?

radiant depot
#

The debug, which is also enabled by instrumentum thing

zealous zenith
#

ah

radiant depot
#

But that number should probably remain hidden

#

I added that info there while reworking the bar

#

But it can be confusing

gleaming fox
#

should i add more 'ice and snow' glyphs and effects?

#

atm the school feels really fucking lame

#

water as a whole

#

air is cool with wind shears

#

and lightning

#

but like

#

water is just

#

lame

#

alright time for more water based school

nocturne mason
#

Earth has a hard time with undead and flying mobs, only got crush and harm for those really, all the poison stuff don't work 😦 and bosses bc they can't get effects.

#

Also for some reason homing doesn't really work for me at all

#

Wont home, and it goes straight but doesn't hit anything

#

Even if it did hit something, effect doesn't trigger

nocturne mason
#

Where do sirens spawn

neat mango
#

#1019900714044100699

#

also you are probably going to get faster and better responses in #general-and-help. This channel is mostly used for development

gleaming fox
#

where do yall get your textures?

#

im really lazy

#

and i dont wanna do pixel art

shadow helm
#

Or by annoying my girlfriend to make them for me which is why the Armarium looks decent, compared to the rest of the stuff. Mixels it may be, but I like it

gleaming fox
#

fortunatly i got a friend to do the textures

#

how do i add his name to the list of contributors?

shadow helm
#

of your mod? Both need a curseforge account. for the curseforge contribution credits
Github, once they commit there they'll be listed automatically

gleaming fox
#

oh ok

#

then i guess i will make them contributor once i submit toe mod to the forge team

#

what's the maximum nomber of pedestal an enchanting apparatus can support?

gleaming fox
#

chonkey is it possible to get the square particle texture pack?

#

it looks really cool ngl

gleaming fox
#

just finished 0.5 version of my mod

#

ill try to get 4 more versions in before making it public

gleaming fox
gleaming fox
#

burst can give birth to so many spells

#

i love it

wide swan
#

How hard is it to make my addon compatible with ars elemental? To have elemental armor sets.

gleaming fox
#

you could try to have an embedded ars elemental library

#

or just get the source code and place it in your java folder

#

here

gleaming fox
#

👍

neat mango
#

Ik that sounds hypocritical given Heretic Armor is basically a rip off at the moment but if I could change it, I would have already done so ( PRs to blood magic havent been merged and I cant change much right now)

gleaming fox
#

how does mana shield work?

#

with 26k mana and 2k mana regen, i could barely sustain it

vestal knot
#

hey guys, i have question. I want to use ae2 api in the project. Is doesnt show that dependency in "External Libraries".

#
```(build.gradle in dependencies)
neat mango
#

did you do a gradle sync ?

vestal knot
#

i want to use api from that mod in my own mod but it doesnt installing at all

neat mango
#

just the api wont show up in loaded mods

vestal knot
#

but also i dont see in it libraries

neat mango
#

you need to add the whole mod for runtime for it to show up

neat mango
vestal knot
#

how can i do that

neat mango
#

top right of screen, open gradle menu and click on the reload menu (assuming you are on intellij)

vestal knot
#

Realod all gradle projects?

#

yes im on intellij

neat mango
#

yes

vestal knot
#

o

#

it worked

#

thanks!

gleaming fox
#

how do i change this?

#

the project name and all has already been changed

#

found it

#

i am big dumb

vestal knot
#

when I added the mod to the "mods" folder, an error appeared:

#

I can't install mods on runClient?

zealous zenith
#

Configured in the build.gradle

gleaming fox
#

where can i modify the AN server config on startup?

zealous zenith
#

Added like patchouli or grckolib

#

Edit or add your own values?

gleaming fox
#

i need to edit the max mana limit

zealous zenith
#

There isn’t a hard limit, you want to modify the starter limit?

gleaming fox
#

no

#

the mana cap

#

the max is like 10000

#

i need to be able to modify it

vestal knot
zealous zenith
#

Runtime if you don’t want the code to be accessible in your mod yes

zealous zenith
gleaming fox
#

yes

vestal knot
zealous zenith
#

Yep

vestal knot
#

okay thanks

gleaming fox
#

so does anyone know how i could modify the max mana attribute limit ?

vestal knot
zealous zenith
#

I dont think you can change the max values on attributes after they are made

#

did you reimport gradle?

vestal knot
#

i want to ae2 shows here

#

when i run the client

gleaming fox
#

just place it in the run folder

zealous zenith
#

it will add it if you rerun the gradle sync

gleaming fox
#

run>mod>ae2

vestal knot
#

i synced gradle but still the same

zealous zenith
#

thats the API jar, that isnt what you want

#

that is the API just for integrating with AE2, it isnt the full mod

vestal knot
#

ah so i need to delete api from this?

zealous zenith
#

I dont know how their maven is setup, there should be a few links

vestal knot
#

but when i imprting whole mod i have an error like this:

zealous zenith
#

click on runclient to see the whole error stck

#

in that error box

vestal knot
zealous zenith
#

do you have the maven repository listed that AE2 uses?

vestal knot
zealous zenith
#

you should already have a repositories declared if you have patchouli and curios

#

that looks like its under your buildscript?

#

put it where the theillusivec4.top maven is listed

vestal knot
vestal knot
zealous zenith
#

please just post the build.gradle file lol

vestal knot
neat mango
#

you need to add a compileOnly for their api and implementation for whole mod

vestal knot
#

i used that lines you sent and also implementation

#

gradle.properties

#

build.gradle

zealous zenith
#

this isnt for an ars addon?

vestal knot
#

no

zealous zenith
#

what gradle is this? doesnt look like forgegradle

#

no minecraft artifactg

vestal knot
#

forge gradle

#

1.19.2

#

i downloaded mdk

vestal knot
radiant depot
gleaming fox
#

per hit?

#

hmm

radiant depot
#

oh wait

#

for hitpoint reduced

#

damn, this can scale horribly

gleaming fox
#

this explain why it drained so much mana

#

i went from 26k to 0 mana in a second

radiant depot
#

need to cut down that multiply

#

otherwise having the water gear can become harmful instead of useful

gleaming fox
#

?

#

why

radiant depot
#

having more amps allows to reduce more damage

#

but also leads to higher mana usage

#

and higher chance to pop the bubble

#

i'd need either to drain it on hit or adjust the damage -> mana cost ratio

#

in case 1) it would only change a thing for water gear users
in case 2) it would be a reduction for everyone using it

wide swan
radiant depot
#

i'd have to know what the compat actually is

#

if it's like, an upgrade with a different model

#

or a thread that mimic the bonus

#

cause i'm fine with the former, i'm in a bit of a mess rn and i can't work on the next step (aka armor restyle), since some interaction with the addon would still be required

#

latter is a bit of a stretch as many would just skip that, and i'm not even sure you could have the effects without duplicating the code as ElementalArmors are identified by interface

gleaming fox
#

alex can i add ars elemental as a dependency to my mod? If yes how can i integrate it?

radiant depot
#

if you check a curseforge file, there is a CurseMavenSnippet option. copy paste that in your build.gradle then refresh

#

it will add the mod to your dev-env

#

and allow to use its code there

#

unless you want to make it an hard dependency, you will need to be careful with loading AE code when the addon is not loaded tho

#

with ModList.get().isLoaded(modid)

gleaming fox
#

thanks

#

👍

wide swan
wide swan
#

I think this would be easier

#

is there a way to make specific threads not compatible with ohter threads ? so they cant use a fire and water elemental thread at the same time?

#

Otherwise I will make my own check for it

gleaming fox
#

alex your code is actually soo helpful

gleaming fox
#

does anyone have any plans of making a meteorite/asteroide?

#

im planning to make one

gleaming fox
#

idk if yall know this but it sounds very very useful when making focus and glyphs in general.

#

(please ignore the noodle code)

bright shore
#

um is it just me or is that a screenshot from Omega's code?

bright shore
gleaming fox
bright shore
#

any particular reason why?

#

Ars Omega is already so niche lol

bright shore
#

@gleaming fox are you willing to share more about what you're planning to add?

gleaming fox
#

btw sorty for not anwsering i was sleeping

bright shore
# gleaming fox glyphs and some curios

I meant, are you ok with comparing notes on what glyphs we each have planned? So we don't start working on the same thing? That way I can cancel plans for anything you really wanna make and let you know what's already gonna be added

gleaming fox
#

-sacrifice exp/health and mana for damage
-meteorite shower
-water wave, deals drown damage and knocks entity back
-ice spikes, creates an ice spike. If the spell is used with water before, it will freeze the target in place, locking them
-earth shield, scales with max health and max mana
-solar flare, like hellfire flare but for the celestial school
-shadow veil, gives darkness to the hit entity
-'net', will execute glyphs in a spidernet-like form (much larger than linger, but has got holes in it)
-blood thunder, like lightning but on steroid and it will deal armor piercing damage at the cost of health. Demonic school

#

all the thing i have planned

bright shore
#

I was planning to add something similar to your net idea to Omega

gleaming fox
#

oh?

#

anyway it sounds like a pain to code so do as you wish

#

does anyone know how make a beam of particle from one point to another

#

it'd be really helpful

shadow helm
#

depending on what you're looking for, you still might want to check out how TMG implements ray

gleaming fox
#

ohhh

#

i didn't think of taht

#

thanks a lot

radiant depot
#

There is also the particles from relay linking iirc

gleaming fox
#

yeah

#

checked it out and TMG's way of doing things is more like what i want to do

gleaming fox
#

it worked

gleaming fox
#

what is this doing here 💀

#

"god have mercy on our protected souls"

#

who sufferd this much that he had to pull out a bible while coding

#

(least painful mod development)

#

idk what im saying

#

all i know is that exam seasons is over

#

that means i can go back to coding

#

yay

shadow helm
gleaming fox
#

lmao

#

just found out i have to drop my blood thunder idea

#

mojang updated the lightningbolt class

#

and i cant bother to adapt (steal) someone else's code

radiant depot
gleaming fox
#

sounds like a pain

radiant depot
#

Or something like that, unsure if ATs would have had the same effect if that was the reason

zealous zenith
#

everyone questions it until they realiize the mojank before them

gleaming fox
#

minecraft truly was coded with someone's ass

gleaming fox
#

does anyone know how the Perks.SpellDamage attribute work?

#

is it flat added damage or percentage added damage

radiant depot
#

Flat

gleaming fox
#

ok

#

thanks for the imfo

steep spruce
#

clement is your addon planned for 1.20 or 1.19

gleaming fox
#

1.19.2

#

ill port it at the same time as ars omega as it is a dependency

steep spruce
#

yea makes sense

bright shore
gleaming fox
#

im still very much enjoying 1.19.2

gleaming fox
#

does anyone have a 'leveling' system in mind?

neat mango
#

I think Bailey doesn't like such systems which is why ars nouveau progression system doesn't block anything

gleaming fox
#

i was thinking about a leveling system which will grant perks like faster mana regen, more spell damage, etc

#

stats, not glyphs or powers

neat mango
#

like astral perk system ?

#

would be cool

gleaming fox
#

what is astral perk?

radiant depot
#

astral sorcery's perk system

#

one of the possible compats for scalaes was planned to be jobs+

#

but at the time the mod was too hardwired to do that

gleaming fox
#

👍

gleaming fox
#

what i want to add, updated
GLYPHS:
-sacrifice exp/health and mana for damage Implemented both
-meteorite shower Indev
-water wave, deals drown damage and knocks entity back
-ice spikes, creates an ice spike. If the spell is used with water before, it will freeze the target in place, locking them
-earth shield, scales with max health and max mana
-solar flare, like hellfire flare but for the celestial school
-shadow veil, gives darkness to the hit entity Indev
-'net', will execute glyphs in a spidernet-like form (much larger than linger, but has got holes in it) dkmk wants to create it
-blood thunder, like lightning but on steroid and it will deal armor piercing damage at the cost of health. Demonic school Dropped
-permanant rune
MECHANICS:
-leveling perk system
-eating essence will grant a mana bonus
-artefacts sets.

neat mango
#

@radiant depot do you share any code between any of your mods ? If yes, how do you do it ?

radiant depot
#

No, I probably would jarjar a little library if there was too much shared code

#

For now there are too little interactions

gleaming fox
#

what is a jarjar?

#

like having someone's code inside a part of your project?

radiant depot
#

Like having a mod or library inside your mod

#

It will load as its own, so forge will only pick the highest ver if more mods ship the same thing

#

For example, Ars jarjar geckolib

gleaming fox
#

ooooh

#

that's good

#

anyway

#

i created a sonic boom attack

#

how cool is that????

#

and the particle method is also nice

#

(i stole it)

radiant depot
#

I tried once to look how the warden attack is made

#

That thing is just cheating

#

The particles for it are cool tho, used them for trail

gleaming fox
#

?

#

where does this glyph come from???

gleaming fox
#

also if we convert its cost to emc its like 500m

radiant depot
#

Warden doesn't fire a projectile, it's more like a ray with a delay on when to hit

gleaming fox
#

yeah

#

what i do is that when the spell hits en entity, it will create a 'ray' of particle from the player to the entity

#

then it will gets all entities in a sphere around the hit entity

#

with ray it can be instant hit

gleaming fox
#

should i make the sonic boom glyph hit like a truck or bypass armor?

radiant depot
#

Called trail

gleaming fox
#

why are my dependencies not showing up?

neat mango
#

you need to set those when you upload a jar (bottom of the page)

#

or you can set some permanent ones for your project settings

gleaming fox
#

btw im just oging to say that the mod (when it will be released) is extremely easy to get into at first, but the ressources requirements increase exponentially for each tier

#

basically: i needed to add ars omega otherwise getting enough ressources with just good ol' ars would've been impossible

gleaming fox
#

Q: is it possible to get the HP of an entity contained in a containment jar?

neat mango
#

you have access to the mob directly so you can do whatever with it

gleaming fox
#

ok thanks

#

why is making a meteorite such a pain in the rear??????

gleaming fox
#

my project got approved

#

yay

shadow helm
#

Link or it didn't happen 😛

gleaming fox
#

if you need me to do modifications justdm me

#

i got a fancy name now

#

nice

neat mango
#

congrats on you first mod!

gleaming fox
#

thanks

#

most of it was easy

#

except for the balancing

neat mango
#

your license on CF doesnt match source license

gleaming fox
#

uh

neat mango
#

oh also why is the repo a template. Did you fork it instead of using the template lol ?

gleaming fox
#

yes?

#

oh