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

Ranged Attribute Error - What is causing this?


Recommended Posts

So I got the error pasted below quite a bit lately [random when generating a world] and I don't know what causes it or how to fix it.

 

The error:

 

 

Unreported exception thrown!

java.lang.IllegalArgumentException: Default value cannot be lower than minimum value!

at net.minecraft.entity.ai.attributes.RangedAttribute.<init>(RangedAttribute.java:22) ~[RangedAttribute.class:?]

at net.minecraft.client.network.NetHandlerPlayClient.handleEntityProperties(NetHandlerPlayClient.java:1834) ~[NetHandlerPlayClient.class:?]

at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:96) ~[s20PacketEntityProperties.class:?]

at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:104) ~[s20PacketEntityProperties.class:?]

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:242) ~[NetworkManager.class:?]

at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:339) ~[PlayerControllerMP.class:?]

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1689) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1036) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

---- Minecraft Crash Report ----

// Oh - I know what I did wrong!

 

Time: 5/27/14 3:47 PM

Description: Unexpected error

 

java.lang.IllegalArgumentException: Default value cannot be lower than minimum value!

at net.minecraft.entity.ai.attributes.RangedAttribute.<init>(RangedAttribute.java:22)

at net.minecraft.client.network.NetHandlerPlayClient.handleEntityProperties(NetHandlerPlayClient.java:1834)

at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:96)

at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:104)

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:242)

at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:339)

at net.minecraft.client.Minecraft.runTick(Minecraft.java:1689)

at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1036)

at net.minecraft.client.Minecraft.run(Minecraft.java:951)

at net.minecraft.client.main.Main.main(Main.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.entity.ai.attributes.RangedAttribute.<init>(RangedAttribute.java:22)

at net.minecraft.client.network.NetHandlerPlayClient.handleEntityProperties(NetHandlerPlayClient.java:1834)

at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:96)

at net.minecraft.network.play.server.S20PacketEntityProperties.processPacket(S20PacketEntityProperties.java:104)

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:242)

at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:339)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Player390'/110, l='MpServer', x=221.50, y=68.52, z=264.50]]

Chunk stats: MultiplayerChunkCache: 85, 85

Level seed: 0

Level generator: ID 00 - default, ver 1. Features enabled: false

Level generator options:

Level spawn location: World: (228,64,256), Chunk: (at 4,4,0 in 14,16; contains blocks 224,0,256 to 239,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 22 game time, 22 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false

Forced entities: 54 total; [EntityBat['Bat'/821, l='MpServer', x=178.07, y=16.41, z=208.85], EntityFallingBlock['Falling Block'/1102, l='MpServer', x=134.50, y=9.34, z=221.50], EntityZombie['Zombie'/1103, l='MpServer', x=143.50, y=28.00, z=202.50], EntityZombie['Zombie'/141, l='MpServer', x=158.78, y=37.00, z=238.50], EntityCreeper['Creeper'/142, l='MpServer', x=161.50, y=37.00, z=236.50], EntityCreeper['Creeper'/948, l='MpServer', x=168.50, y=30.00, z=230.50], EntityItem['item.tile.rail'/8, l='MpServer', x=166.88, y=32.13, z=225.72], EntityItem['item.tile.flower1.dandelion'/9, l='MpServer', x=184.84, y=11.05, z=231.41], EntityItem['item.tile.flower1.dandelion'/10, l='MpServer', x=186.31, y=11.13, z=230.13], EntityPig['Pig'/11, l='MpServer', x=217.78, y=68.00, z=197.91], EntityZombie['Zombie'/133, l='MpServer', x=187.50, y=24.00, z=207.50], EntityPig['Pig'/12, l='MpServer', x=220.50, y=67.00, z=196.50], EntityPig['Pig'/13, l='MpServer', x=216.03, y=68.00, z=199.81], EntityPig['Pig'/14, l='MpServer', x=217.66, y=68.00, z=199.81], EntityZombie['Zombie'/134, l='MpServer', x=183.50, y=24.00, z=210.50], EntityBushBaby['Bush Baby'/17, l='MpServer', x=223.22, y=67.00, z=185.47], EntityFallingBlock['Falling Block'/1117, l='MpServer', x=131.50, y=9.38, z=221.50], EntityFallingBlock['Falling Block'/1116, l='MpServer', x=134.50, y=9.38, z=220.50], EntityFallingBlock['Falling Block'/1119, l='MpServer', x=132.50, y=10.38, z=220.50], EntityFallingBlock['Falling Block'/1118, l='MpServer', x=132.50, y=8.38, z=222.50], EntityFallingBlock['Falling Block'/1113, l='MpServer', x=133.50, y=8.38, z=222.50], EntityFallingBlock['Falling Block'/1112, l='MpServer', x=132.50, y=9.38, z=221.50], EntityFallingBlock['Falling Block'/1115, l='MpServer', x=133.50, y=10.38, z=220.50], EntityFallingBlock['Falling Block'/1114, l='MpServer', x=133.50, y=9.38, z=221.50], EntityFallingBlock['Falling Block'/1111, l='MpServer', x=134.50, y=10.42, z=221.50], EntitySheep['Sheep'/34, l='MpServer', x=248.50, y=69.00, z=189.22], EntitySheep['Sheep'/35, l='MpServer', x=248.50, y=69.00, z=190.81], EntityPig['Pig'/38, l='MpServer', x=265.50, y=63.00, z=304.22], EntityPig['Pig'/39, l='MpServer', x=265.50, y=63.00, z=305.81], EntitySheep['Sheep'/36, l='MpServer', x=251.50, y=69.00, z=192.50], EntitySheep['Sheep'/37, l='MpServer', x=249.50, y=69.00, z=195.50], EntityFallingBlock['Falling Block'/1126, l='MpServer', x=131.50, y=10.38, z=219.50], EntityPig['Pig'/40, l='MpServer', x=264.50, y=64.00, z=301.50], EntityFallingBlock['Falling Block'/1124, l='MpServer', x=130.50, y=9.38, z=219.50], EntityPig['Pig'/41, l='MpServer', x=266.50, y=67.00, z=297.50], EntityFallingBlock['Falling Block'/1125, l='MpServer', x=130.50, y=9.38, z=220.50], EntityFallingBlock['Falling Block'/1122, l='MpServer', x=132.50, y=10.38, z=219.50], EntitySkeleton['Skeleton'/521, l='MpServer', x=212.50, y=22.00, z=199.50], EntityFallingBlock['Falling Block'/1123, l='MpServer', x=133.50, y=10.38, z=219.50], EntitySkeleton['Skeleton'/522, l='MpServer', x=209.50, y=22.00, z=201.50], EntityFallingBlock['Falling Block'/1120, l='MpServer', x=135.50, y=8.38, z=221.50], EntityFallingBlock['Falling Block'/1121, l='MpServer', x=131.50, y=10.38, z=220.50], EntityPig['Pig'/53, l='MpServer', x=298.50, y=63.00, z=269.50], EntityPig['Pig'/52, l='MpServer', x=301.50, y=64.00, z=271.50], EntityZombie['Zombie'/661, l='MpServer', x=156.50, y=42.00, z=243.50], EntityCreeper['Creeper'/659, l='MpServer', x=161.50, y=42.00, z=243.50], EntityBat['Bat'/614, l='MpServer', x=189.98, y=28.76, z=194.37], EntityBat['Bat'/615, l='MpServer', x=190.75, y=28.51, z=197.35], EntityBat['Bat'/613, l='MpServer', x=191.66, y=28.50, z=195.25], EntityClientPlayerMP['Player390'/110, l='MpServer', x=221.50, y=68.52, z=264.50], EntitySkeleton['Skeleton'/833, l='MpServer', x=279.50, y=36.00, z=301.50], EntitySkeleton['Skeleton'/597, l='MpServer', x=145.50, y=32.00, z=242.50], EntitySkeleton['Skeleton'/598, l='MpServer', x=142.50, y=32.00, z=243.50], EntitySkeleton['Skeleton'/1078, l='MpServer', x=158.50, y=16.00, z=185.50]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:418)

at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2557)

at net.minecraft.client.Minecraft.run(Minecraft.java:980)

at net.minecraft.client.main.Main.main(Main.java:112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

 

 

 

 

Link to post
Share on other sites

java.lang.IllegalArgumentException: Default value cannot be lower than minimum value!

That pretty much says it all right there; whatever ranged attribute you added / changed, you have either an invalid default value or you set the minimum value incorrectly. Ranged attributes are things like attackDamage, movementSpeed, maxHealth, etc.

Link to post
Share on other sites

java.lang.IllegalArgumentException: Default value cannot be lower than minimum value!

That pretty much says it all right there; whatever ranged attribute you added / changed, you have either an invalid default value or you set the minimum value incorrectly. Ranged attributes are things like attackDamage, movementSpeed, maxHealth, etc.

I see, I'm not sure what is causing it though considering it happens on world creation. I also don't have any mobs that should be spawning.

Link to post
Share on other sites

If you posted the full log, we could see where the error was happening - it is probably after the world has already finished generating, but the player is trying to join. Did you change or add any attributes for the player, such as in IExtendedEntityProperties?

I haven't touched any of those player properties, I also went through all mobs [mine and Vanilla], none of them are an issue.

 

I'll go back through my logs as soon as I get home in a couple hours and post the full thing.

 

edit: I think I might know what is causing it. It seems one of my mobs was spawned in all the different occurrences, so I'm going to look into that.  The mob itself works fine, but it seems it might have Overriden the Horse ID [in spawn code, even though it's a registered mod entity].

Link to post
Share on other sites
  • 1 year later...

java.lang.IllegalArgumentException: Default value cannot be lower than minimum value!

That pretty much says it all right there; whatever ranged attribute you added / changed, you have either an invalid default value or you set the minimum value incorrectly. Ranged attributes are things like attackDamage, movementSpeed, maxHealth, etc.

 

I am having the same problem and I think that in my case it is my own TiC Heart Cannister. I will test this later today.

If someone is having trouble finding out what attribute is causing this, use NBT-Explorer to open your player.dat file.

This is my player.dat file.

 

Note: This is the first occurrence of this crash that Google found, so solving it here may actually help people. Necroing/bumping this thread is merely a side effect of this.

I walk amongst titans.

Link to post
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.

Guest
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

    • In order, X}   1.  (Force class to load, as was explained)  and was how it was shown.. I am up for 'changing it up' & optimizing it later,     That's  just the method that was shown.  I want to optimize it later for sure. 2.o_hand  ->   is offhand   I got sick to death of doing typos, and used it & m_hand for main hand ...   (offhand is the shield slot typically) 2. .... actually [ target = (LivingEntity)event.getTarget(); ]  inside of  (AttackEntityEvent event) is 100% capable of causing an error. -- Try setting it up & smacking with any melee attack (fist or weapon) the following a.  Any Minecart b. Any End Crystal c. Any Item Frame. d. Any Boat    ----  it literally causes the game to close with an exception.   All those things can both 'trigger the attackEntity event'  and be inside the target of the player, which will cause an exception when cast into a (Living Entity), which was used to apply the potion effects... ~~ Strangely enough,  a armor stand  not only is uneffected by it, but can accept potions applied to it as well. 3.  It does do something,  It fails & does nothing, which means 'target' is null still, and no potion effects get applied to the target that was hit. --- which means, it prevents the game from being shut down from an unintended casting of a target into a living entity object (which is needed to apply potion effects on) 4.  That's just nitpicking really,  That's an old logic habit....    Some reason it slipped my mind,  either way,     (!(thing == thing)) same effect of (thing != thing)   ---likely I honestly fell back into an old habit when inverse of true statement was my thought on that. 5. I know...  It's not complete (i've not  finished the blocks, as I'm working towards combat centric things, and I'm debating what I want to do with it) --- also,  to note, I remember why I put try { atker = (LivingEntity)livi.getAttackingEntity(); } catch (Exception e) { }  (for future use)      things like minecarts & end crystals can harm the player & other entities, and that event fires when an entity get hurt.... and given I just got off of just randomly finding out that casting the target of my hit into a (living entity) object can cause fatal exceptions, it's there to 'do NOTHING' if that happens, and an prevent fatal exceptions from going off because of a weird entity causing damage that isn't a livingentity for some reason. ~~~  Yes I plan to use it later..    that was for an armor thing. 6. meh...   Again   alot of the primary page is tutorial code....   I left what was shown,  and I'm learning what does what.. .and pruning what doesn't work.    -- yes, it annoys me as well but that's not on the short list atm. 7. as for 'fall = falls'  . I don't like doing that, as i prefer the geniune fallback if some unknown reason happens  a valid variable gets assign (right or wrong) and prevents weird unknown errors. 8.  The method is 100% straight forward    It's just a nested if loop that of course tests each string once (effectively) and doesn't attempt to assign an empty tooltip. _NormToolTip Is on it w/ no shift or cntl held down (either one) _When shift or cntrl is held down,  it shows the correct one. _When Shift & Cntrl are held down.. it shows Cntrl over Shift. ---- to be fair I actually didn't think to check for a method that checks if  a string is empty. ~~~  It uses Exclusionary logic, but if you can think of a faster way of doing  -normal tooltip (no keys held) -Shift Tooltip (either shift held) -Cntl ToolTip (either Cntrl held) -Cntl tooltip over  Shift tooltip (when a Cntrl & Shift is held, either side)  I'm all ears if you think you can do that faster and prevent it from using a null value.
    • What I've been trying to do is I have been attempting to implement an item that can create a transparent blue layer around the entire player. I am using Curios' API for this, as the item is meant to be an equippable accessory. There are also other accessories I have implemented to the mod using the API. I have been able to implement everything that handles this rendering with the accessory item, however I've become stuck after running into a specific issue: when the transparent blue layer is active, it will prevent any accessories specifically on the player's arms from rendering. As far as I can tell, this only happens with the accessories on the player's arms (such as the gloves or even Curios' template knuckles item), as accessories rendering on the player's body for some reason render just fine under the transparent layer. Images for better context: I have been at this for quite awhile but haven't able to figure out what is causing this issue, especially since the inconsistency between rendering for body parts has made me even more confused. It could be a Curios issue, but nothing in its accessory layer code exactly stands out as a cause (if it is indeed Curios' fault though it would at least be good to know what the issue is to pass on to the mod dev). The pendant and glove accessories both render with the same RenderType and render buffer, which I duplicated based on the vanilla armor layer's choices for that, as the vanilla armor layer is also immune to the transparency issue on the arm model part: The relevant code for items and renderers can be found below: Pendants: - https://github.com/Gilded-Games/The-Aether/blob/1.16/src/main/java/com/gildedgames/aether/common/item/accessories/pendant/PendantItem.java - https://github.com/Gilded-Games/The-Aether/blob/1.16/src/main/java/com/gildedgames/aether/client/renderer/accessory/model/PendantModel.java Gloves: - https://github.com/Gilded-Games/The-Aether/blob/1.16/src/main/java/com/gildedgames/aether/common/item/accessories/gloves/GlovesItem.java - https://github.com/Gilded-Games/The-Aether/blob/1.16/src/main/java/com/gildedgames/aether/client/renderer/accessory/model/GlovesModel.java Repulsion Shield (the item creating the transparency layer): - https://github.com/Gilded-Games/The-Aether/blob/1.16/src/main/java/com/gildedgames/aether/common/item/accessories/misc/RepulsionShieldItem.java - https://github.com/Gilded-Games/The-Aether/blob/1.16/src/main/java/com/gildedgames/aether/client/renderer/accessory/model/RepulsionShieldModel.java and, if necessary, Curios' Accessory Layer (code not mine, obviously): - https://github.com/TheIllusiveC4/Curios/blob/1.16.x-forge/src/main/java/top/theillusivec4/curios/client/render/CuriosLayer.java Any help would be appreciated, as I've run out of ideas for what could be causing this issue and how I could fix it. I can provide more information if needed.
    • Ok that's fair. But it's still terrible.
    • Really old Minecraft versions are no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • Ah sorry, you're right. I can refer you to the way Lycanites renders all of their .obj model entities, and best of all it's up to date for 1.16, but it is pretty complicated than just your standard java model. Depending on what you're doing it might not be worth it... https://gitlab.com/Lycanite/LycanitesMobs/-/tree/master/src/main/java/com/lycanitesmobs/client
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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