Skip to content

Instantly share code, notes, and snippets.

View MerchantPug's full-sized avatar

Pug MerchantPug

  • Australia
  • 05:27 (UTC +10:00)
View GitHub Profile
@MerchantPug
MerchantPug / TooManyOrigins_v1.0.0_beta1_Explanation.md
Last active June 26, 2022 15:21
TooManyOrigins v1.0.0-beta.1

TooManyOrigins v1.0.0-beta.1

Everything is subject to change within this version and the final release, any feedback is appreciated.

Origin Descriptions

Hiss-kin | Impact 🟢 - -

Overheat - You can rocket jump away from any object you are looking at, harming yourself in the process.

Aerial Stability - Your downward velocity is slightly lowered.

Stubby Legs - Your shorter legs make you move slower on foot.

  "emi.category.apoli.modify_grindstone": "Modified Grinding"

Scale Modifying in Origins

Credits

  • LuaDotExe
  • Sylent

Why was this resource made?

This document was made as I have noticed that this is a bit of a grey area when it comes to Origins datapacking and addon development. Pehkui has always been a very common dependency in the custom Origins scene, and I think that it's probably about time that a resource on how to do size changes in Origins was made.

The common traits of scale changing

@MerchantPug
MerchantPug / gist:21c68d8ed97e6ea74d93ed41cae57d19
Created June 28, 2023 11:16
My take on the github gists being sent
Women are pretty
@MerchantPug
MerchantPug / quilt-loader-overrides.json
Created July 9, 2023 04:35
Example overrides for Apoli hotfixes
{
"schema_version": 1,
"overrides": [
{
"path": "<mods>/Origins-1.20.1-1.10.0.jar",
"depends": [
{
"replace": {
"id": "apoli",
"versions": ">=2.9.0"

Written by MerchantPug 12/16/2023

Disclaimer: This migration guide is provided in Yarn mappings, if you're using different mappings and don't know what any of these are, I'd recommend looking up your mappings using Linkie

TL;DR - for Addon Devs

If you are making a datapack, this change exclusively is an internal one, you should not have to change anything about your datapack for it to function with this. If there is any incorrect behaviour as a result of this rewrite though, you're best to report it here.

If you're an addon dev, this change might affect you, as any code that references Item Actions will need to be updated.

  • Replace the type of direct Item Action references (Pair<World, ItemStack>) with Pair<World, StackReference>.
  • If you are registering any Item Actions, use the new ItemActionFactory class. In most cases, ItemActionFactory#createItemStackBased should work just fine. If you need to replace
@MerchantPug
MerchantPug / Farmers Delight Differences.md
Last active April 3, 2024 21:07
Differences between the three Farmer's Delight versions we currently have.

Some Starting Notes

  • If something is in all three versions, it will not be mentioned here.
  • I'm not going to be mentioning bugs as differences, mainly because I feel it is unfair to compare unintended behaviour.
  • I will also not be mentioning Farmer's Delight Refabricated's Skillet flipping here, because this is moreso a comparison to the original mod, I'll include this when the original has it.

To also note, the Decomposition REI integration in Farmer's Delight Fabric is bugged, it supports a block tag, however, it only shows one item from said block tag.

@MerchantPug
MerchantPug / Data Driven Enchantments.md
Created June 16, 2024 13:32
Data Driven Enchantments, A Guide for Modders.

Data Driven Enchantments are something that was introduced by 1.21, it is a total rewrite to how enchantments are implemented through code, to make them customisable to an end user through datapack. This guide's examples are in Mojmap, which may not be the mappings you are using. I will provide Yarn names for important classes, but otherwise, I'd recommend Linkie for remapping class/method/field names.

The Basic Datapack Structure

Data driven enchantments belong in the data/<namespace>/enchantment/ folder.

I'd highly recommend datagen as enchantment JSON can get complicated pretty quickly, especially with predicates and all, explaining datagen is out of scope for this guide, but it will help knowing how to use it.

Enchantments in data are structured as follows: | Field Name | Type | Default | Description |