Everything posted by Luis_ST
-
Texture isn't appearing on custom armor model 1.16
and what exactly do I have to check this map for
-
Texture isn't appearing on custom armor model 1.16
you have to tell minecraft where to find the texture for your model use this as a practical example
-
Texture isn't appearing on custom armor model 1.16
you need to stitch the texture in the TextureStitchEvent.Pre
-
[1.16.5] How to get all mod classes?
I fixed it, thank you for your help
-
[1.16.5] How to get all mod classes?
If I look at the AnnotationData and the methods you have listed, I cannot find a usable method since I can't do anything with the target/class type, the name of the target doesn't help with fields and methods either. what does the map contain, the AnnotationData#getAnnotationData returns
-
[1.16.5] How to get all mod classes?
with which method do I get the object which has the annotation
-
[1.16.5] How to get all mod classes?
I have a custom recipe system, I use annotations to register the recipe methods faster and easier, which currently only works in classes that extend my recipe helper. I would like to extend this to all classes that have an annotation similar to the event registration of forge. I also need the classes for a config system in which I add an annotation to a fields and these are automatically added to my config, the implementaion is not perfect/finished but here is a small example: @ConfigValue(valueName = "example", comment = "This is an example") public static int example;
-
Two outputs from a standard crafting table 1.15.2?
you return the actual method in the method that does not work and is there a reason why you are not using the code feature?
-
Two outputs from a standard crafting table 1.15.2?
define "isn't working", and show what you tried
-
[1.16.5] How to get all mod classes?
As the title says i need all classes of my mod, because i want to output them firstly on the console (for debugging), and secondly for a custom registration of recipes. I looked at the code from forge for the AutomaticEventSubscriber registration and understand it only partially. I also have this code that gives me a ModFileScanData: ModList.get().getModFileById(Nero.MOD_ID).getFile().getScanResult() ModFileScanData has the getClasses method, which unfortunately gives me an unusable class, because I don't get any classes or anything back from a ClassData is there a way to get all classes of my mod?
-
[1.16.5] Custom entity scale problem
try adding MatrixStack#push (before your render code) and MatrixStack#pop (after your render code): matrixStack.push(); your code matrixStack.pop();
-
[1.16.5] Creating a potion with a custom colour?
then I have no idea Edit: I will look at the whole thing again as soon as possible, i will find a usable solution for your problem, i hope.
-
How can i store energy in a nbt tag
do something like that: replaced <capability> with the following: and you should have something like this for your capability somewhere: @CapabilityInject(IEnergyStorage.class) public static Capability<IEnergyStorage> ENERGY = null; stack.getCapability(<capability>, null).orElseThrow(NullPointerException::new); Edit: I just saw that you are using CapabilityEnergy#ENERGY for your capability (should work too)
-
How can i store energy in a nbt tag
if I understand your item code correctly you want to add the energy to the item as information if this is correct you can get your energy with ItemStack#getCapability
-
How can i store energy in a nbt tag
and where exactly is your problem now?
-
[1.16.5] Config values change order
no ideas?
-
How can i store energy in a nbt tag
show the class where you need it, and normally you use CompoundNBT to save data
-
[1.16] Enable slots only under certain conditions
yes you probably don't use mojang mappings, which is why the methods have different names. (and update to a newer version there is no reason to use an "outdated" version) did not use my suggestion but the one from @diesieben07, isEnabled the better solution for your project
-
[1.16] Enable slots only under certain conditions
use the Container#clicked method, check whether something has changed after clicking (item before clicked != item after clicked)
-
[1.16] Enable slots only under certain conditions
as far as I know, yes
-
[1.16] Enable slots only under certain conditions
the container / inventory is not updated when you add / remove the backpack. a container is created when it is opened and saved when it is closed. between opening and closing the slot size is not updated. the simplest solution would be to close the container and reopen it
-
[1.16.5] Creating a potion with a custom colour?
Use the PotionColorCalculationEvent, check whether the effects of the event match those of your potion, if this is the case you can set the color in the event
-
Want higher than lvl 5 enchant on efficiency
used reflection or overwrite the enchachantment this is an example of how you overwrite an enchantment Note: overwriting vanilla objects can lead to problems if a second mod overwrites the same object
-
[1.16.5] Config values change order
I have created a common config that works, but the values that I save in the config change the order each time the game is started. this is the config Now my question is there a way to prevent this, or give the values a fixed sequence?
-
[1.16.5] World Feature error, only 3x3 chunk area is load
the problem has been fixed, unfortunately i still have a problem with my structure because i had to recreate it (because my hard drive crashed and destroyed many files). unfortunately i can't remember how i fixed the problem last time. The error is probably due to the fact that the structure is not correctly registered, because the game is always chrashed when I want to create a new world or i load a old world: This is the log: log.log I hope you can help me one last time
IPS spam blocked by CleanTalk.