Open Discord-Github-Bridge opened 7 months ago
yarden.zamir on Discord says
oh forgot about that, what happend with that?
autistic.sack.of.friends on Discord says
//by @reveter from the kubejs discord StartupEvents.postInit(event => { console.log("= predicate") if (!Platform.isClientEnvironment) return; const $ItemProperties = Java.loadClass('net.minecraft.client.renderer.item.ItemProperties') console.log("= got class") console.log($ItemProperties)
let addCountPredicate = [ "kubejs:andesite_pebble", "kubejs:zinc_dime", "kubejs:brass_dime", ]
addCountPredicate.forEach(i=>{ $ItemProperties.register(Item.of(i), new ResourceLocation('count'), (stack, world, living, seed) => { return stack.getCount() / stack.getMaxStackSize() }) }) })
autistic.sack.of.friends on Discord says
this isn't organized properly
autistic.sack.of.friends on Discord says
but all the json files go in the
models/item
and all the pngs go in thetextures/item
autistic.sack.of.friends on Discord says
i used subdirectories because again a lot of files
autistic.sack.of.friends on Discord says
it's not worth doing this to avoid creating sequenced assembly items
autistic.sack.of.friends on Discord says
please. it's not worth it yarden
No, not for that, was thinking about pizzas. I'm working on a toppings system that allows you to top a pizza with any two food items and I want it to choose a fitting textrue from a pool. I was thinking we have 8 color categores that each food needs to fit into, then we have 88+82 textrues, one for each combination of topping color
autistic.sack.of.friends on Discord says
oh ok that'd work great. to my knowledge the image parts would be able to stack pretty easy
Oh I thought i'll have to generate it
autistic.sack.of.friends on Discord says
minecraft models support that kinda multipart structure
autistic.sack.of.friends on Discord says
and items are models
awesome
autistic.sack.of.friends on Discord says
the predicate thing I sent earlier should be everything
autistic.sack.of.friends on Discord says
I might have missed the main json
Sounds important
autistic.sack.of.friends on Discord says
ok wait no I remember
autistic.sack.of.friends on Discord says
yeah it's there
autistic.sack.of.friends on Discord says
so for "ptdye:pizza" we'd add two predicates, ingredient1 and ingredient2
autistic.sack.of.friends on Discord says
and then just do the model+png thing
Sounds great to me
Do you wanna draw the pizzas?
autistic.sack.of.friends on Discord says
I'll give it a go later, not really enough time right now
<:thumbsup:1191476503750397982>
autistic.sack.of.friends on Discord says
ok... what ingredients are there even...
autistic.sack.of.friends on Discord says
i wonder if things would look nicer as 3d models
autistic.sack.of.friends on Discord says
it could be interesting if all the ingredients of the pizza were dyes
autistic.sack.of.friends on Discord says
although it mightnot make much sense
autistic.sack.of.friends on Discord says
i mean, it's been established that raw white is a usable part of a diet
autistic.sack.of.friends on Discord says
i wonder what distinguishes raw white and white dye
autistic.sack.of.friends on Discord says
nicely textured pizza base
autistic.sack.of.friends on Discord says
sauce (maybe too many colors?)
autistic.sack.of.friends on Discord says
cheese (maybe too few colors)
autistic.sack.of.friends on Discord says
and here's the misc toppings i drew
engineersmith_4628 on Discord says
I was wondering what the blue Tetris pizza was till it hit me it was meant to be mushroom
autistic.sack.of.friends on Discord says
it's minerals at that point
autistic.sack.of.friends on Discord says
you are putting raw light blue on your pizza
engineersmith_4628 on Discord says
Like red salt 'eh
Ingredients will be anything with food values, plus anything we manually choose to include like mushrooms
looks good
Can you send some of the textures here so i can start playing with it?
autistic.sack.of.friends on Discord says
sorry it's in an aseprite file, i guess you could ask engineersmith_4628 to quickly copy out the stuff if you don't have aseprite
I do, used it a bit ago, was really impressed by how fun it is to use
it being asprite is better
set the loc of me to the loc of
wait raw white is canonically edible?