Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to ose non cubic model as mod-item?


Recommended Posts

1 hour ago, Drachenbauer said:

but in "SharedMonsterAttributes" i cannot find the "ENTITY_GRAVITY" attribute.

6 hours ago, diesieben07 said:

You need to use ForgeMod.ENTITY_GRAVITY,


1 hour ago, Drachenbauer said:

If i replace "SharedMonsterAttributes" with "ForgeMod", it also cannot find "ENTITY_GRAVITY" in there...

No idea what you are doing, but it definitely exists:


Link to comment
Share on other sites

I try to use this:

public Multimap<String, AttributeModifier> getAttributeModifiers(EquipmentSlotType equipmentSlot)
        Multimap<String, AttributeModifier> multimap = super.getAttributeModifiers(equipmentSlot);
        if (equipmentSlot == EquipmentSlotType.MAINHAND)
            multimap.put(LivingEntity.ENTITY_GRAVITY.getName(), new AttributeModifier(LivingEntity.SLOW_FALLING_ID, "Slow falling acceleration reduction", -0.07, AttributeModifier.Operation.ADDITION).setSaved(false));
        return multimap;

But i still have a problem with this line:

multimap.put(LivingEntity.ENTITY_GRAVITY.getName(), new AttributeModifier(LivingEntity.SLOW_FALLING_ID, "Slow falling acceleration reduction", -0.07, AttributeModifier.Operation.ADDITION).setSaved(false));

i cannot use LivingEntity.SLOW_FALLING_ID, because it´s private

So i tryed this:

multimap.put(LivingEntity.ENTITY_GRAVITY.getName(), LivingEntity.SLOW_FALLING);

But LivingEntity.SLOW_FALLING is also private.

what is the right setup for this line?

Link to comment
Share on other sites

6 minutes ago, Drachenbauer said:

In the existing one letters where uppercase, in the one from the page, letters are lowercase.

Does this matter?

Please try to get into the habit of doing some very basic research.

The UUID instance is created using UUID.fromString in the example. Searching for "Java uuid from string case sensitive" leads to this very informative StackOverflow post: https://stackoverflow.com/a/13833488. I recommend you read and understand it before working with UUIDs.

Link to comment
Share on other sites


here he hoints his arm up while holding an umbrella.at the end of the video.


but there in no link to the mod with the umbrella...


I notived, i fall slower with the umbrella, bot still get a tiny little bit of damage on landing.

How to remove the fall damage compleetely, if holding that item?


Edit: i canceled the LivingFallEvent, if holding the umbrella.

Now i can jump from as high as i want with the umbrella without being damaged.

Edited by Drachenbauer
Link to comment
Share on other sites

  • 2 weeks later...
Posted (edited)

I noticed, that i can jump higher, if holding this umbrella.

Than i saw a video of someone, who made a tower of scaffolding, placed a cage of scaffolfing ontop and filled it with chckens.

Then he removed the bottom scaffolding and the chickens fell down slowly and took no damage at landing on the ground.

how can i attach this exact behavior to my umbrella?


In the ChickenEntitx-Class i find just this:

    public boolean onLivingFall(float distance, float damageMultiplier)
        return false;

But nothing about the falling-speed.

Edited by Drachenbauer
Link to comment
Share on other sites

Now i used PlayerTickEvent.

With this, i could check for holding the umbrella very similar to the LivingFallEvent.

And after testing, it looks very much like gliding with a parachute.

That´s what i want.

It reminds me also abit to elythra-flying.

Link to comment
Share on other sites

now i try this solution:



It uses the deprecated variant of getQuads.

but if i try to replace it with the better one, new IBakedModel() says, that i have to use the old one, because it´s an unimplemented method.

How can i use the new one without this error?


Now i found IForgeBakedModel.

How can i use it instead of IBakedModel here?

Edited by Drachenbauer
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • I have been trying to download Forge but the Windows Installer isn't coming up, I can see the installer one would use for Linux but no Windows, I have downloaded Java and Jarfix but nothing is working, can someone help?  
    • So I thought that when a capability is attached to an item/entity/etc... the capability will stay until whatever it's attached to is gone. But this doesn't seem to be the case, as when I printed to console whenever a capability is attached, it seems as though a new version of the capability is attached to an item every time I select it in my hotbar, hover over it in inventory, etc. Is this how it's supposed to work? If so, why?
    • Hi, I'm trying to set up a simple forge server just to play with a couple of my friends, but no matter what I do or try I cannot seem to get a Mods folder and for the actual forge part of the server to actually launch. Every time I try to launch the forge.jar via a .bat file I just get a bunch of errors [Errors below] I'm not sure what I'm doing wrong. If I can get some help that would be awesome, thanks C:\Users\User\Desktop\Server>java -Xms2G -Xmx6G -jar forge-1.12.2- nogui A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.base/java.lang.reflect.Method.invoke(Method.java:567)         at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)         at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34) Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')         at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)         at net.minecraft.launchwrapper.Launch.main(Launch.java:28)         ... 6 more C:\Users\User\Desktop\Server>pause Press any key to continue . . .  
    • Is it ok if i ask what that is?
  • Topics

  • Who's Online (See full list)

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.