Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
17 # Needed for 1.18
]
# and run on both Linux and Windows
os: [ubuntu-20.04, windows-latest]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: checkout repository
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,34 @@ Tiered is almost entirely data-driven, which means you can add, modify, and remo
"verifiers": [
{ "tag": "c:pickaxes" },
{ "tag": "c:shovels" },
{ "tag": "c:axes" }
{ "tag": "c:axes" },
{ "tag": "c:hoes" }
],
"style": {
"color": "green"
"color": "white"
},
"weight": 5,
"tooltip_image": 2,
"tooltip_border_start": 4283826005,
"tooltip_border_end": 4279880217,
"reforge_cost": 8,
"weight": 8,
"tooltip_image": [10],
"tooltip_border": ["FFFFFFFF"],
"reforge_cost": 5,
"attributes": [
{
"type": "generic.dig_speed",
"type": "tiered:generic.dig_speed",
"modifier": {
"name": "tiered:hasteful",
"operation": "MULTIPLY_TOTAL",
"operation": "MULTIPLY_BASE",
"amount": 0.10
},
"optional_equipment_slots": [
"MAINHAND"
"MAINHAND",
"OFFHAND"
]
}
]
}
```

Tiered currently provides 3 custom attributes: Dig Speed, Crit Chance, and Size. Dig Speed increases the speed of your block breaking (think: haste), Crit Chance offers an additional random chance to crit when using a tool, and Size changes the held and dropped item rendering.
Tiered currently provides 7 custom attributes: Attack Range, Crit Chance, Dig Speed, Projectile Damage, Reach, Size, and Step Height. Dig Speed increases the speed of your block breaking (think: haste), Crit Chance offers an additional random chance to crit when using a tool, and Size changes the held and dropped item rendering.

### Verifiers

Expand Down Expand Up @@ -81,7 +82,7 @@ Tiered provides five customization options regarding tooltips.

- `color` changes the text color
- `tooltip_image` specifies the border style (see below)
- `tooltip_border_start` and `tooltip_border_end` determine the top and bottom line colors of the border, respectively.
- `tooltip_border` determines the line colors of the border. It is an array of 0xAARRGGBB hexadecimal formatted strings. Use one value to color the entire border, or two to specify the start and end colors.
- `no_tooltip` can be used in the `name` section of an attribute to prevent it from showing. For example, this can be useful for the `reach` and `attack_range` modifier types, as they are often used together and can clutter a tooltip.

Here is the formatting for the border style. This image allows for up to 16 styles (0-15):
Expand All @@ -92,12 +93,11 @@ And here is how it looks in-game:

![debug_inventory](https://user-images.githubusercontent.com/57331134/145140685-ce11ff58-b277-4029-b588-83f0db4b237d.png)

In that image, the tooltip_border_start and tooltip_border_end colors are 4280615006 and 4279762996 (#25005e, #180034), for purple at the top and dark purple at the bottom. These are the same values Vanilla Minecraft uses. The format is 0xAARRGGBB converted to decimal (0xff25005e to decimal is 4280615006).

You can use any sized image (with a power of 2 resolution (128x, 256x, 512x, etc, like Vanilla Minecraft) to make as many borders as you like. Here is an example with 64 styles:

![debug-big](https://user-images.githubusercontent.com/57331134/145140359-26c8014a-dcfc-4fbf-8364-41e7235bcbd9.png)

The border image is stored in an array, to allow for animated borders. Use one value to have a static border, or multiple to animate it (in the frame order specified, with the last index being the framerate in milliseconds).

### License
Tiered is licensed under MIT. You are free to use the code inside this repo as you want.
Expand Down
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '0.10-SNAPSHOT'
id 'fabric-loom' version '0.12-SNAPSHOT'
id 'maven-publish'
}

Expand All @@ -10,8 +10,10 @@ archivesBaseName = project.archives_base_name
version = project.mod_version + "-" + project.minecraft_version
group = project.maven_group

/*
minecraft {
}
*/

repositories {
maven { url 'https://jitpack.io' }
Expand Down Expand Up @@ -41,7 +43,7 @@ dependencies {
modImplementation "com.github.emilyploszaj:step-height-entity-attribute:v1.0.1"
include "com.github.emilyploszaj:step-height-entity-attribute:v1.0.1"

modImplementation "curse.maven:iceberg-539382:3675784"
modImplementation "curse.maven:iceberg-539382:3832794"
}

processResources {
Expand Down
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.3
loader_version=0.14.6
minecraft_version=1.19
yarn_mappings=1.19+build.4
loader_version=0.14.8

# Mod Properties
mod_version=2.0.2-beta
maven_group=io.github.Andrew6rant
archives_base_name=tiered

# Dependencies
fabric_version=0.55.1+1.18.2
cardinal_version=2.7.4+
reach_entity_attributes_version=2.1.1+
fabric_version=0.57.0+1.19
cardinal_version=5.0.1+
reach_entity_attributes_version=2.3.0+
mod_menu_version=1.14+
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading