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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
build/

# User-specific stuff
.idea/

Expand All @@ -23,7 +25,6 @@ atlassian-ide-plugin.xml
*.ctxt

# Package Files #
*.jar
*.war
*.nar
*.ear
Expand Down
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ version = "${project.mod_version}+${project.minecraft_base_version}"
group = project.maven_group

repositories {

flatDir {
dirs 'owo-lib_local_repo'
}
Comment on lines +12 to +14

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this too? and some other stuff to be able to merge it in upstream

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, it won't compile without local libs since they aren't available on maven.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way you have it currently it won't compile either, since you didn't check the libs directory into source control. In any case, I'd much prefer this to use the actual maven, if and when I publish the backported owo version

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it did build that way but I agree ot would be a lot better to get the libs from maven.


maven { url "https://maven.shedaniel.me/" }

maven { url "https://maven.wispforest.io/"}
Expand Down
7 changes: 5 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ minecraft_version=1.18.2
yarn_mappings=1.18.2+build.2
loader_version=0.13.3
# Mod Properties
mod_version=0.2.18
mod_version=0.2.19
maven_group=com.glisco
archives_base_name=things
# Dependencies
Expand All @@ -22,11 +22,14 @@ patchouli_version=1.18.2-66-FABRIC
# https://www.curseforge.com/minecraft/mc-mods/roughly-enough-items/files
rei_version=8.0.442

# https://www.curseforge.com/minecraft/mc-mods/architectury-api/files/all?filter-status=1&filter-game-version=2020709689:9008
architectury_version=4.9.8.4

# https://www.curseforge.com/minecraft/mc-mods/modmenu/files
modmenu_version=3.1.0

# https://maven.wispforest.io/io/wispforest/owo-lib/
owo_version=0.6.0+1.18
owo_version=0.7.3+1.18

# https://github.com/CrimsonDawn45/Fabric-Shield-Lib/releases
fabric_shield_lib_version=1.5.3-1.18
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/glisco/things/Things.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import io.wispforest.owo.particles.systems.ParticleSystem;
import io.wispforest.owo.particles.systems.ParticleSystemController;
import io.wispforest.owo.registration.reflect.FieldRegistrationHandler;
import io.wispforest.owo.util.Maldenhagen;
import me.shedaniel.autoconfig.AutoConfig;
import me.shedaniel.autoconfig.serializer.JanksonConfigSerializer;
import net.fabricmc.api.ModInitializer;
Expand Down Expand Up @@ -108,6 +109,7 @@ public void onInitialize() {

if (CONFIG.generateGleamingOre) {
BiomeModifications.addFeature(notNetherOrEndSelector(), GenerationStep.Feature.UNDERGROUND_ORES, GLEAMING_ORE.getKey().get());
Maldenhagen.injectCopium(ThingsBlocks.GLEAMING_ORE);
}

Registry.register(Registry.RECIPE_TYPE, id("sock_upgrade_crafting"), SockUpgradeRecipe.Type.INSTANCE);
Expand All @@ -126,7 +128,7 @@ public void onInitialize() {
SHIELD_PREDICATE = SHIELD_PREDICATE.or(item -> item instanceof FabricShield);
}

BROKEN_WATCH_RECIPE = ImmutableSet.of(Items.LEATHER, Items.CLOCK, ThingsItems.GLEAMING_COMPOUND);
BROKEN_WATCH_RECIPE = ImmutableSet.of(Items.LEATHER, Items.CLOCK, ThingsItems.GLEAMING_COMPOUND);

if (Owo.DEBUG) {
CommandRegistrationCallback.EVENT.register((dispatcher, dedicated) -> {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/glisco/things/blocks/ThingsBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class ThingsBlocks implements BlockRegistryContainer {

public static final Block STONE_GLOWSTONE_FIXTURE = new GlowstoneFixtureBlock();
public static final Block QUARTZ_GLOWSTONE_FIXTURE = new GlowstoneFixtureBlock();
public static final Block DEEPSLATE_GLOWSTONE_FIXTURE = new GlowstoneFixtureBlock();

public static final Block GLEAMING_ORE = new OreBlock(FabricBlockSettings.copyOf(Blocks.DIAMOND_ORE).luminance(5).requiresTool(), UniformIntProvider.create(3, 7));
public static final Block DEEPSLATE_GLEAMING_ORE = new OreBlock(FabricBlockSettings.copyOf(Blocks.DEEPSLATE_DIAMOND_ORE).luminance(5).requiresTool(), UniformIntProvider.create(3, 7));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/glisco/things/client/ThingsClient.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.glisco.things.client;

import com.glisco.things.Things;
import com.glisco.things.ThingsNetwork;
import com.glisco.things.blocks.ThingsBlocks;
import com.glisco.things.items.ThingsItems;
import com.glisco.things.items.generic.DisplacementTomeItem;
import com.glisco.things.items.trinkets.AppleTrinket;
import com.glisco.things.items.trinkets.SocksItem;
import com.glisco.things.ThingsNetwork;
import dev.emi.trinkets.api.client.TrinketRenderer;
import dev.emi.trinkets.api.client.TrinketRendererRegistry;
import net.fabricmc.api.ClientModInitializer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@

import com.glisco.things.Things;
import com.glisco.things.items.TrinketItemWithOptionalTooltip;
import com.google.common.collect.ImmutableMultimap;
import com.google.common.collect.Multimap;
import com.jamieswhiteshirt.reachentityattributes.ReachEntityAttributes;
import dev.emi.trinkets.api.SlotReference;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.attribute.EntityAttribute;
import net.minecraft.entity.attribute.EntityAttributeModifier;
import net.minecraft.entity.attribute.EntityAttributes;
import net.minecraft.item.ItemStack;

import java.util.UUID;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package com.glisco.things.misc;

import com.glisco.things.Things;
import com.glisco.things.ThingsNetwork;
import com.glisco.things.items.ThingsItems;
import com.glisco.things.items.generic.DisplacementTomeItem;
import com.glisco.things.ThingsNetwork;
import io.wispforest.owo.client.screens.ScreenUtils;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.item.ItemStack;
Expand Down Expand Up @@ -101,9 +102,14 @@ public boolean onButtonClick(PlayerEntity player, int id) {
return true;
}

public static final record UpdateClientPacket(ItemStack tome) {}
@Override
public ItemStack transferSlot(PlayerEntity player, int index) {
return ScreenUtils.handleSlotTransfer(this, index, 0);
}

public record UpdateClientPacket(ItemStack tome) {}

public static final record ActionPacket(Action action, String data) {
public record ActionPacket(Action action, String data) {
public enum Action {TELEPORT, DELETE_POINT, RENAME_POINT, CREATE_POINT}

public static ActionPacket teleport(String where) {
Expand Down
60 changes: 0 additions & 60 deletions src/main/java/com/glisco/things/mixin/Copenhagen.java

This file was deleted.

2 changes: 0 additions & 2 deletions src/main/java/com/glisco/things/mixin/EntityMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

import com.glisco.things.Things;
import com.glisco.things.items.ThingsItems;
import io.wispforest.owo.ops.ItemOps;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.ItemEntity;
import net.minecraft.entity.MovementType;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Box;
import net.minecraft.util.math.Vec3d;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.text.Text;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"variants": {
"facing=down": {
"model": "things:block/deepslate_glowstone_fixture"
},
"facing=up": {
"model": "things:block/deepslate_glowstone_fixture",
"x": 180
},
"facing=west": {
"model": "things:block/deepslate_glowstone_fixture",
"x": 90,
"y": 90
},
"facing=east": {
"model": "things:block/deepslate_glowstone_fixture",
"x": 90,
"y": 270
},
"facing=south": {
"model": "things:block/deepslate_glowstone_fixture",
"x": 90
},
"facing=north": {
"model": "things:block/deepslate_glowstone_fixture",
"x": 90,
"y": 180
}
}
}
1 change: 1 addition & 0 deletions src/main/resources/assets/things/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

"block.things.stone_glowstone_fixture": "Stone Glowstone Fixture",
"block.things.quartz_glowstone_fixture": "Quartz Glowstone Fixture",
"block.things.deepslate_glowstone_fixture": "Deepslate Glowstone Fixture",
"block.things.gleaming_ore": "Gleaming Ore",
"block.things.deepslate_gleaming_ore": "Deepslate Gleaming Ore",
"block.things.diamond_pressure_plate": "Diamond Pressure Plate",
Expand Down
Loading