#Hide Quark Variants

23 messages · Page 1 of 1 (latest)

split marten
#

So Quark has this amazing Variant Selector that allows you to place a variant of the block that you're holding. These variant items (slabs, stairs, walls, etc) are not supposed to be craftable or in your inventory and will change back to their full block when dropped.

What I want to do

  • remove all recipes for Variants
  • replace Variant inputs with their full block (there will be some problems with this, for example the recipe for chests and barrels will be the same but I'll fix those manually)
  • remove Vatiants from JEI

It seems really weird that I'm the first one trying to do this but the only other pack I found where they did is Vazkii's Musketeer (https://www.curseforge.com/minecraft/modpacks/musketeer) and it seems like they did it manually.

I have a verry basic understanding of KubeJS but I can't figure out how I am supposed to find all Variant's and their full blocks

amber axleBOT
#

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

night sail
#

From a game code perspective there's nothing like variants of a block. You could go by item / block tag or by a specific string in the item name. For example quark does this by scanning for each block if the block exists if you add _stairs, _slab and so on and sometimes also removes some string at the end like _planks. https://github.com/VazkiiMods/Quark/blob/master/src/main/java/org/violetmoon/quark/content/experimental/config/VariantsConfig.java#L22 this is probably a config file somewhere.

#

Vazkii is the dev for quark btw and they did this manually. probably for a reason

split marten
#

Thanks but quark must have a list somewhere. Can’t I just.. access it?

night sail
#

they store all thier variants in blockVariants though you are probably not ment to interact with it manually as it's private.
The link posted above contains the functions how you can get the varians for a block, get the block from a varians and many more

split marten
#

sorry but how do you call a function?pain

night sail
#

This is how you would call a function inside of the above class

const $VariantsConfig = Java.loadClass("org.violetmoon.quark.content.experimental.config.VariantsConfig")

$VariantsConfig.getAllVariants("block")
split marten
#

tysm

vagrant ivyBOT
#

🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.

split marten
#
const $VariantsConfig = Java.loadClass("org.violetmoon.quark.content.experimental.config.VariantsConfig")

ServerEvents.tags('item', e => {

    e.add('kubejs:testsstdst', $VariantsConfig.getOriginalBlock("minecraft:smooth_stone_slab"))
})
night sail
#

that doesn't fit the error you provided. If this gives a different error can you resend it?

split marten
split marten
#

Bump

wooden epoch
# split marten Bump

To be perfectly honest it might just be easier do it the way Vazkii did it in the Musketeer pack, since he’s the guy that made quark and all that

#

It looks like a couple messages were deleted since I last checked this post (?) so that info may not be correct

wooden epoch
split marten
wooden epoch
#

It does

#

Are you able to ask Vaskii about it?

split marten