Apugli

Apugli

Mod

A library for Apoli/Origins for use with certain mods/datapacks.

Client and server Library

29.7k downloads
21 followers
Created3 years ago
Updated2 months ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.
Filter loader...
Filter versions...

Bugfixes

  • Fixed modify_scale sometimes not syncing when scales are applied. (#70)

Bugfixes

  • Fixed modify_scale sometimes not syncing when scales are applied. (#70)
  • Fixed a modify_enchantment_level related NullPointerException crash. (#73)

Power Types

  • Added easing, priority, delay_modifier, and delay_modifiers fields to modify_scale.
  • modify_scales with delay and resource based modifier fields will now dynamically shift between scales.
  • Added limit field to action_on_harm and action_when_harmed. if not set, this is equal to the entity's max health * 4.

Bugfixes

  • Fixed modify_scale not forcing an update for scales that don't update frequently.
  • Fixed a crash upon having an invalid scale type in the scale_type or scale_types fields in the modify_scale power.
  • Fixed modify_scale not being removed when it should be.
  • Fixed modify_scales with delay fields not getting exact scale values when changing into a non divisible value.
  • Made modify_scale delay smoothing far more stable.
  • Fixed modify_scale unintentionally resetting when swapping dimensions.
  • Fixed compare_scales crashing when scale_type is specified.
  • Fixed compare_scaless scale_types field not being counted.
  • Fixed step_height power types sometimes causing entities to fly way up into the air when falling.

Miscellaneous

  • Rewrote modify_scale's scale modifiers.
  • texture_url fields will now tell you whether textures are loaded.

Power Types

  • Added easing, priority, delay_modifier, and delay_modifiers fields to modify_scale.
  • modify_scales with delay and resource based modifier fields will now dynamically shift between scales.
  • Added limit field to action_on_harm and action_when_harmed. if not set, this is equal to the entity's max health * 4.

Optimisation

  • Optimised modify_enchantment_level power type for compatibility.
  • Rewrote entity stack linking entirely, empty stacks do not tick, and Forge no longer uses capabilities for this due to it being totally overkill.

Bugfixes

  • Fixed modify_scale not forcing an update for scales that don't update frequently.
  • Fixed a crash upon having an invalid scale type in the scale_type or scale_types fields in the modify_scale power.
  • Fixed modify_scale not being removed when it should be.
  • Fixed modify_scales with delay fields not getting exact scale values when changing into a non divisible value.
  • Made modify_scale delay smoothing far more stable.
  • Fixed modify_scale unintentionally resetting when swapping dimensions.
  • Fixed compare_scales crashing when scale_type is specified.
  • Fixed compare_scaless scale_types field not being counted.
  • Fixed crash due to enchantment item condition mixin not applying.
  • Fixed step_height power types sometimes causing entities to fly way up into the air when falling.
  • Fixed edible_item not depleting the food item when a return stack is specified. #64
  • [FABRIC] Fixed edible_item crashing whilst using the NBT condition.
  • [FORGE] Fixed NPE with hits on target.
  • [FORGE] Fixed item capabilities being broken in a player's inventory. #67
  • [FORGE] Fixed modify_scale with modifiers with resource fields not functioning.

Miscellaneous

  • Rewrote modify_scale's scale modifiers.
  • texture_url fields will now tell you whether textures are loaded.
  • Updated to build off of Apoli 2.11.0/Origins 1.12.0 codebase.

Minor Changes

  • Implement write methods for Apugli's SerializableDataTypes. (#63

Bugfixes

  • Fixed sprinting power type deactivating when an entity is touching water but is not underwater.

Bugfixes

  • Fixed sprinting power type deactivating when an entity is touching water but is not underwater.

Known Issues

Modify Scale is broken, I know about it. I got frustrated trying to fix it, so I released this version early so TooManyOrigins players don't have to wait.

Power Types

  • Added stop_after field to the action_on_projectile_hit power type.
  • action_when_projectile_hit now functions when a non living entity is the owner of the projectile.

Entity Condition Types

  • Added space field to velocity entity condition type.

Bugfixes

  • Fixed compare_scales crashing when scale_type is specified.
  • Fixed compare_scaless scale_types field not being counted.
  • Fixed Modify Enchantment Level not functioning as expected.
  • Fixed mixin conflict with Horse Buff.
  • [FORGE] Fixed item capabilities being broken.

Miscellaneous

  • Allow Forge versions above Forge 47.1.3 now that it has backwards compatibility.
  • Update Mixin Extras to 0.3.1

Bugfixes

  • Fixed can_take_damage entity condition causing a crash.
  • Fixed priority on modify_scale Scale Modifiers being the same as a regular scale modifier.
  • Fixed flickering with modify_scale powers.
  • Fixed modify scale not stacking with a delay field higher than 0 and conditional. #61
  • Fixed a crash relating to explosions. #62
  • Fixed a crash relating to prevent_bee_anger and beehive blocks. #62 (part 2)

Bugfixes

  • Fixed can_take_damage entity condition causing a crash.
  • Fixed priority on modify_scale Scale Modifiers being the same as a regular scale modifier.
  • Fixed flickering with modify_scale powers.
  • Fixed modify scale not stacking with a delay field higher than 0 and conditional. #61
  • Fixed a crash relating to explosions. #62
  • Ported the mod to 1.20.2.

Notes on Apoli

edible_item and modify_enchantment_level from Apugli have made it into the base mod itself, so for these, we have a special case where the content will be aliased to their Apoli counterparts. Consider this a backwards compatible solution, not a permanent feature, you're best to swap to Apoli's implementations as they'll continue to be supported. All code for these two power types have been removed from Apugli.

  • Aliased apugli:edible_item to apoli:edible_item.
  • Aliased apugli:modify_enchantment_level to apoli:modify_enchantment_level.

Breaking Change Notes

  • apugli:sprinting now has a new field called requires_input, which defaults to false. This doesn't match the behaviour in previous versions, so set this to true if you wish to have the previous logic.

Known Issues

  • [FORGE] Modify Scale does not properly sync with resource values on the client. This is an Origins Forge bug that I'll go and fix next update.

Power Types

  • Added modify_scale power type. Requires Pehkui to function. If Pehkui isn't loaded, any powers with this power type will fail to load.
  • Added crawling, and prevent_entity_selection power types.
  • Added requires_input boolean field to sprinting power type (Defaults to false).
  • Added function field to modify_durability_change power type. Can be floor, round, or ceiling. Defaults to floor.
  • Added self_target_bientity_action, self_nearby_bientity_action, and target_nearby_bientity_action to damage_nearby_on_hit power type. (All optional).
  • Added attacker_target_bientity_action, attacker_nearby_bientity_action, and self_nearby_bientity_action to damage_nearby_when_hit power type. (All optional).
  • Added should_damage_condition to freeze power type.

Bi-entity Condition Types

  • Added compare_dimensions bi-entity condition type.
  • Added compare_scale bi-entity condition type. If Pehkui isn't loaded, this condition will return true.

Entity Condition Types

  • Added crawling, and dimensions entity condition types.
  • Added scale entity condition type. If Pehkui isn't loaded, this condition will always compare to 1.0.

Bugfixes

  • Fixed crash due to wrong locations of fields when creating damage sources inside damage_nearby_*_hit power types.
  • Fixed damage_nearby_on_hit not running at all.
  • Fixed damage_nearby_*_hit not considering for the damage_condition field.
  • Fixed hover power type's step_assist field not functioning for correcting upper bounds.
  • Fixed allow_anvil_enchant's comparison field not defaulting to >=.
  • Fixed modify_enchantment_level not syncing its initial values to clients. #58
  • [FABRIC] Fixed damage_nearby_when_hit using damage_nearby_on_hit's serializable data.
  • [FABRIC] Fixed fabric.mod.json not using the new fabric-api mod id. #56
  • [FORGE] Fixed incorrect behaviour with stopping from sprinting power type.
  • [FORGE] Update pack formats.
  • [FORGE] Fixed Forge specific damage source creation method referencing an invalid method.

Internal

  • Prefixed every mixin method. #59
  • [FABRIC] Changed fabric dependency in fabric.mod.json to fabric-api. #56

External resources



Project members

Pug

Owner


Technical information

License
LGPL-3.0-only
Client side
required
Server side
required
Project ID