Giter VIP home page Giter VIP logo

size-entity-attributes's People

Contributors

moriyashiine avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sschr15 theessem

size-entity-attributes's Issues

Creepers and Wither Skeletons do not visiby resize.

I am using:
Fabric-Loader: 0.8.9+build203
Fabric-API: 0.17.0+build.386
SizeEntityAttributes: 1.16-3 (discovered on initially), also tested: 1.16-r2

What happened:
My mod spawns more of the same type of mob, at 75% of the height and width of the original mob. This works well for the majority of mobs I have tested. However, I have found that Wither Skeletons and Creepers only resize their hitbox, but not their physical appearance.

What I mean: (regular skeletons included to show that other mobs work fine)
2020-08-15_20 22 38
2020-08-15_20 24 20

Errors/Stacktraces:
None

Sample from my code:

entity.world.spawnEntity(allSlime);
LivingEntity ent = (LivingEntity) allSlime;

double width = entity.getAttributeInstance(SizeEntityAttributes.WIDTH_MULTIPLIER).getValue();
double height = entity.getAttributeInstance(SizeEntityAttributes.HEIGHT_MULTIPLIER).getValue();

ent.getAttributeInstance(SizeEntityAttributes.HEIGHT_MULTIPLIER).setBaseValue((height * 0.75));
ent.getAttributeInstance(SizeEntityAttributes.WIDTH_MULTIPLIER).setBaseValue((width * 0.75));```

Pehkui and Size Entity Attributes are incompatible with each other.

(Posted in the Pehkui repo as well)

Both Pehkui and Size Entity Attributes require mixing into HorseBaseEntity to modify a passenger's offsets. Both mods require it for the same reason, but since they both use @ModifyConstant with the same priority, they force only one of the two mods to succeed, which causes problems.

I will submit a PR soon to disable this mod's Mixin for HorseBaseEntity if it detects the other mod, and I will create a small bridge mod to sit between the two to provide compatibility.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.