• Stars
    star
    336
  • Rank 125,601 (Top 3 %)
  • Language
    Java
  • License
    The Unlicense
  • Created about 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Food-related HUD improvements for Minecraft (AppleCore without the core)

AppleSkin

Minecraft mod that adds various food-related HUD improvements formerly provided by AppleCore (basically, AppleCore without the core).

Features

  • Adds food value information to tooltips:

  • Adds a visualization of saturation and exhaustion to the HUD:

  • Adds a visualization of potential hunger/saturation restored while holding food:

  • Adds a visualization of potential health restored while holding food:

  • Adds hunger/saturation/exhaustion info to the debug overlay (F3)
  • Syncs the value of saturation and exhaustion to the client.

Building AppleSkin

  1. Clone the repository
  2. Open a command line and execute gradlew build

Note: To give the build a version number, use gradlew build -Pversion=<version> instead (example: gradlew build -Pversion=1.0.0).


For Mod Developers

Note: These instructions are Forge-specific. For Fabric, see the instructions in the relevant -fabric branch.

If followed, the directions below will make it so that your mod's Maven dependencies won't include AppleSkin at all, and your mod will load fine with or without AppleSkin installed.

To compile against the AppleSkin API, include the following in your build.gradle:

repositories {
	maven { url "https://maven.ryanliptak.com/" }
}

and add this to your dependencies block:

compileOnly fg.deobf("squeek.appleskin:appleskin-forge:<version>:api")

where <version> is replaced by the appropriate version found here:

https://maven.ryanliptak.com/squeek/appleskin/appleskin-forge

Once you're compiling against the AppleSkin API, you can create an event handler and only register it when appleskin is loaded. Here's an example implementation:

In your @Mod annotated class:

private void clientInit(final FMLClientSetupEvent event) {
    if (ModList.get().isLoaded("appleskin")) {
        MinecraftForge.EVENT_BUS.register(new AppleSkinEventHandler());
    }
}

and the AppleSkinEventHandler class:

public class AppleSkinEventHandler
{
	@SubscribeEvent
	public void onPreTooltipEvent(TooltipOverlayEvent.Pre event) {
		// hide the tooltip for regular apples
		if (event.itemStack.getItem() == Items.APPLE) {
			event.setCanceled(true);
		}
	}
}

(see the squeek.appleskin.api.event package for all the possible events that can be registered)


Note: if you want to test with the full AppleSkin mod in your development environment, you can also add the following to your dependencies:

runtimeOnly fg.deobf("squeek.appleskin:appleskin-forge:<version>")

while replacing <version> as mentioned above.

More Repositories

1

zua

An implementation of Lua 5.1 in Zig, for learning purposes
Zig
165
star
2

resinator

Cross-platform Windows resource-definition script (.rc) to resource file (.res) compiler
Zig
78
star
3

Squake

Minecraft mod that adds Quake-style, Fortress Forever inspired movement to the game
Java
64
star
4

AppleCore

An API for modifying the food and hunger mechanics of Minecraft
Java
55
star
5

Minimap-HUD

Don't Starve mod that adds a minimap to the HUD
Lua
47
star
6

zig-std-lib-fuzzing

A set of fuzzers for fuzzing various parts of the Zig standard library
Zig
46
star
7

VeganOption

A Minecraft mod that seeks to add vegan alternatives to all Minecraft mob/animal products
Java
46
star
8

d2itemreader

C library for parsing items in Diablo II character/stash files
C
41
star
9

audiometa

An audio metadata/tag reading library written in Zig
Zig
37
star
10

considerveganism.com

The source files of considerveganism.com
HTML
34
star
11

ASMHelper

Helper classes for ASM transformations in Minecraft mods
JavaScript
24
star
12

SpiceOfLife

A Minecraft mod that encourages dietary variety through diminishing returns
Java
23
star
13

watchedoverlay

Windows shell extension to mark arbitrary files as 'watched'
Zig
20
star
14

d2info

Tool for viewing/outputting various information about a running Diablo II game
Lua
18
star
15

obs-txt-trigger

OBS script to use a text file as a trigger for making sources temporarily visible
Lua
18
star
16

WailaHarvestability

Minecraft mod that adds required harvest level and the effective tool to Waila tooltips of harvestable blocks
Java
17
star
17

grindcov

Code coverage for compiled binaries using Callgrind, mostly geared towards Zig code
Zig
15
star
18

micro-zigfmt

micro editor plugin that provides zig fmt integration
Lua
13
star
19

zig-fuzzing-example

An example of fuzzing Zig code with AFL++
Zig
13
star
20

heroku-buildpack-luvit

Heroku buildpack for Luvit 2.0
Shell
12
star
21

luver

Bare-bones luvit-loader runtime (aka Luvit without any dependencies/libraries included)
Lua
12
star
22

Squeedometer

A speedometer for Minecraft
Java
12
star
23

bunnyhop-webgl

Quake/Half-Life style bunnyhopping in WebGL/BabylonJS
JavaScript
10
star
24

d2-map-investigation

Tool for finding correlations between how different areas generate in Diablo II
C
9
star
25

Better-Console

Don't Starve mod: Better Console
Lua
9
star
26

TiC-Tooltips

Minecraft mod that adds tooltips to Tinkers' Construct tool parts
Java
8
star
27

fuzzing-lua

Fuzz testing for various parts of the Lua interpreter, mostly for use as a test-case generator for alternate Lua implementations
C
8
star
28

syscallogist

An experiment in determining/cataloging the range of possible syscall behavior through empirical testing
Zig
8
star
29

coro-http-luv

coro-http from Lit converted to work with plain Lua + Luv
Lua
8
star
30

zigescape

A tool for converting between binary data and Zig string literals
Zig
7
star
31

get-known-folder-path

A Zig implementation of SHGetKnownFolderPath
Zig
5
star
32

named-character-references

Purpose-built DAFSA for named character reference matching during HTML tokenization
Zig
5
star
33

sleep

Bare-bones Lua module that exposes a millisecond-precision sleep function
CMake
5
star
34

CreativeBlocks

A Minecraft mod that allows specified blocks to be placed as if the player was in creative mode
Java
4
star
35

HungerInPeace

Minecraft mod that enables normal hunger/health regen in Peaceful mode
Java
4
star
36

zig-hash-map-bench

Benchmarks for Zig's std.HashMap
Zig
3
star
37

memreader

Lua module for reading the memory of Windows processes
C
3
star
38

ryanliptak.com

source files for ryanliptak.com
Lua
3
star
39

bsp-to-mesh

Extremely hacky attempt at converting a Source engine BSP file into something usable by Babylon.JS
Go
2
star
40

luvit-irc-activity-bot

An IRC bot written for luvit that announces Github activity
Lua
2
star
41

lua-taskbarflash

Lua module for Windows that can flash the taskbar icon and/or window of the current console
C
2
star
42

win32-samples-rc-tests

Test suite for .rc compilers using Windows-classic-samples as the test corpus
PowerShell
2
star
43

BWAPI-Lua

Lua bindings for the Brood War API (BWAPI)
C++
2
star
44

lua-arbitrary-binary-string

Convert arbitrary binary data into a Lua string literal (to be embedded in .lua files)
Lua
2
star
45

HarvestCraftWaila

A Minecraft mod that fixes some of Pam's HarvestCraft issues with Waila tooltips
Java
2
star
46

d2grailcheck

Tool for checking/outputting the status of a Diablo II holy grail challenge
Lua
2
star
47

win32-resource-tests

Test programs for various Windows resources, mostly to explore how edge cases are handled/their ramifications
C
1
star
48

win32-libuv

Example integration of the Libuv event loop with the Win32 message loop
C
1
star
49

EarliestOfGames

A ModJam4 mod targeting the extremely early game stage of Minecraft
Java
1
star
50

luvit-oauth2

OAuth2 client for Luvit
Lua
1
star
51

HungerPersistence

Minecraft mod that makes hunger persist across deaths
Java
1
star
52

BnBTweaks

A Minecraft mod that makes various modifications to the game and/or other mods for the Blood N' Bones modpack
Java
1
star
53

zig-unidecode

Very approximate UTF-8 to ASCII transliterator (a Zig implementation of the Text::Unidecode Perl module)
Zig
1
star