This commit is contained in:
parent
8342ef83ec
commit
ed494fd52a
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -15,5 +15,17 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Publish') {
|
||||||
|
when {
|
||||||
|
expression {
|
||||||
|
return sh(returnStdout: true, script: 'git tag --contains').trim().length() > 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
withCredentials([string(credentialsId: 'curseforge_key', variable: 'CURSEFORGE_KEY')]) {
|
||||||
|
sh './gradlew -Pcurseforge.api_key="${CURSEFORGE_KEY}" curseforge'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,9 +31,9 @@ dependencies {
|
|||||||
|
|
||||||
modImplementation "me.shedaniel.cloth:config-2:${project.cloth_config_version}"
|
modImplementation "me.shedaniel.cloth:config-2:${project.cloth_config_version}"
|
||||||
include "me.shedaniel.cloth:config-2:${project.cloth_config_version}"
|
include "me.shedaniel.cloth:config-2:${project.cloth_config_version}"
|
||||||
modImplementation "me.sargunvohra.mcmods:autoconfig1u:${project.auto_config_version}"
|
modImplementation "me.sargunvohra.mcmods:autoconfig1u:${project.autoconfig_version}"
|
||||||
include "me.sargunvohra.mcmods:autoconfig1u:${project.auto_config_version}"
|
include "me.sargunvohra.mcmods:autoconfig1u:${project.autoconfig_version}"
|
||||||
modImplementation "io.github.prospector:modmenu:${project.mod_menu_version}"
|
modImplementation "io.github.prospector:modmenu:${project.modmenu_version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
|
@ -3,11 +3,11 @@ org.gradle.jvmargs = -Xmx1G
|
|||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/use
|
# check these on https://fabricmc.net/use
|
||||||
minecraft_version = 1.16.1
|
minecraft_version = 1.16.2
|
||||||
curseforge_id = 368420
|
curseforge_id = 368420
|
||||||
simple_minecraft_version = 1.16.1
|
simple_minecraft_version = 1.16.2
|
||||||
yarn_build = 4
|
yarn_build = 21
|
||||||
fabric_loader_version = 0.8.8+build.202
|
fabric_loader_version = 0.9.2+build.206
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.0.9
|
mod_version = 1.0.9
|
||||||
@ -16,7 +16,7 @@ org.gradle.jvmargs = -Xmx1G
|
|||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
|
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
|
||||||
fabric_api_version = 0.13.1+build.370-1.16
|
fabric_api_version = 0.19.0+build.398-1.16
|
||||||
cloth_config_version = 4.5.6
|
modmenu_version = 1.14.6+build.31
|
||||||
auto_config_version = 3.2.0-unstable
|
cloth_config_version = 4.7.0-unstable
|
||||||
mod_menu_version = 1.12.2+build.16
|
autoconfig_version = 3.2.0-unstable
|
||||||
|
@ -29,7 +29,7 @@ public class SlightlyVanilla implements ModInitializer {
|
|||||||
public static EntityType<SlimeballEntity> SLIMEBALL_ENTITY;
|
public static EntityType<SlimeballEntity> SLIMEBALL_ENTITY;
|
||||||
public static EntityType<SpawnEggEntity> SPAWN_EGG_ENTITY;
|
public static EntityType<SpawnEggEntity> SPAWN_EGG_ENTITY;
|
||||||
|
|
||||||
public static final Tag<Block> EXTRA_PORTAL_BLOCKS_TAG = TagRegistry.block(new Identifier(NAMESPACE, "extra_portal_blocks"));
|
public static final Tag<Block> NETHER_PORTAL_FRAME_BLOCKS_TAG = TagRegistry.block(new Identifier(NAMESPACE, "nether_portal_frame_blocks"));
|
||||||
|
|
||||||
public static ModConfig getConfig() {
|
public static ModConfig getConfig() {
|
||||||
return AutoConfig.getConfigHolder(ModConfig.class).getConfig();
|
return AutoConfig.getConfigHolder(ModConfig.class).getConfig();
|
||||||
|
@ -49,7 +49,7 @@ public class SlimeballEntity extends ThrownItemEntity {
|
|||||||
ParticleEffect particleEffect = getParticleParameters();
|
ParticleEffect particleEffect = getParticleParameters();
|
||||||
|
|
||||||
for (int i = 0; i < 8; ++i) {
|
for (int i = 0; i < 8; ++i) {
|
||||||
world.addParticle(particleEffect, getX(), getY(), getZ(), 0.0D, 0.0D, 0.0D);
|
getEntityWorld().addParticle(particleEffect, getX(), getY(), getZ(), 0.0D, 0.0D, 0.0D);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -57,8 +57,8 @@ public class SlimeballEntity extends ThrownItemEntity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCollision(HitResult hitResult) {
|
protected void onCollision(HitResult hitResult) {
|
||||||
super.onCollision(hitResult);
|
super.onCollision(hitResult);
|
||||||
if (!world.isClient()) {
|
if (!getEntityWorld().isClient()) {
|
||||||
world.sendEntityStatus(this, (byte) 3);
|
getEntityWorld().sendEntityStatus(this, (byte) 3);
|
||||||
remove();
|
remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,7 @@ import net.minecraft.network.packet.s2c.play.EntitySpawnS2CPacket;
|
|||||||
import net.minecraft.particle.ItemStackParticleEffect;
|
import net.minecraft.particle.ItemStackParticleEffect;
|
||||||
import net.minecraft.particle.ParticleEffect;
|
import net.minecraft.particle.ParticleEffect;
|
||||||
import net.minecraft.particle.ParticleTypes;
|
import net.minecraft.particle.ParticleTypes;
|
||||||
|
import net.minecraft.server.world.ServerWorld;
|
||||||
import net.minecraft.util.hit.HitResult;
|
import net.minecraft.util.hit.HitResult;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
@ -52,7 +53,7 @@ public class SpawnEggEntity extends ThrownItemEntity {
|
|||||||
ParticleEffect particleEffect = getParticleParameters();
|
ParticleEffect particleEffect = getParticleParameters();
|
||||||
|
|
||||||
for (int i = 0; i < 8; ++i) {
|
for (int i = 0; i < 8; ++i) {
|
||||||
world.addParticle(particleEffect, getX(), getY(), getZ(), 0.0D, 0.0D, 0.0D);
|
getEntityWorld().addParticle(particleEffect, getX(), getY(), getZ(), 0.0D, 0.0D, 0.0D);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -60,10 +61,10 @@ public class SpawnEggEntity extends ThrownItemEntity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onCollision(HitResult hitResult) {
|
protected void onCollision(HitResult hitResult) {
|
||||||
super.onCollision(hitResult);
|
super.onCollision(hitResult);
|
||||||
if (!world.isClient()) {
|
if (!getEntityWorld().isClient()) {
|
||||||
world.sendEntityStatus(this, (byte) 3);
|
getEntityWorld().sendEntityStatus(this, (byte) 3);
|
||||||
EntityType<?> entityType = ((SpawnEggItem) getStack().getItem()).getEntityType(getStack().getTag());
|
EntityType<?> entityType = ((SpawnEggItem) getStack().getItem()).getEntityType(getStack().getTag());
|
||||||
entityType.spawnFromItemStack(world, getItem(), null, getBlockPos(), SpawnReason.SPAWN_EGG, false, false);
|
entityType.spawnFromItemStack((ServerWorld) getEntityWorld(), getItem(), null, getBlockPos(), SpawnReason.SPAWN_EGG, false, false);
|
||||||
remove();
|
remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,22 @@
|
|||||||
package com.thebrokenrail.slightlyvanilla.mixin;
|
package com.thebrokenrail.slightlyvanilla.mixin;
|
||||||
|
|
||||||
import com.thebrokenrail.slightlyvanilla.SlightlyVanilla;
|
import com.thebrokenrail.slightlyvanilla.SlightlyVanilla;
|
||||||
import net.minecraft.block.Block;
|
|
||||||
import net.minecraft.block.BlockState;
|
import net.minecraft.block.BlockState;
|
||||||
import net.minecraft.block.Blocks;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.block.NetherPortalBlock;
|
import net.minecraft.world.BlockView;
|
||||||
|
import net.minecraft.world.dimension.AreaHelper;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
@Mixin(NetherPortalBlock.AreaHelper.class)
|
@Mixin(AreaHelper.class)
|
||||||
public class MixinNetherPortalBlockAreaHelper {
|
public class MixinNetherPortalBlockAreaHelper {
|
||||||
@SuppressWarnings("UnresolvedMixinReference")
|
@Inject(at = @At("HEAD"), method = "method_30487", cancellable = true)
|
||||||
@Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/block/BlockState;isOf(Lnet/minecraft/block/Block;)Z"), method = "*")
|
private static void isValidFrameBlock(BlockState state, BlockView world, BlockPos pos, CallbackInfoReturnable<Boolean> info) {
|
||||||
public boolean redirectBlock(BlockState state, Block obsidian) {
|
if (SlightlyVanilla.getConfig().cryingObsidianNetherPortal) {
|
||||||
if (SlightlyVanilla.getConfig().cryingObsidianNetherPortal && state.isIn(SlightlyVanilla.EXTRA_PORTAL_BLOCKS_TAG) && obsidian == Blocks.OBSIDIAN) {
|
info.setReturnValue(state.isIn(SlightlyVanilla.NETHER_PORTAL_FRAME_BLOCKS_TAG));
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return state.isOf(obsidian);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"replace": false,
|
"replace": false,
|
||||||
"values": [
|
"values": [
|
||||||
|
"minecraft:obsidian",
|
||||||
"minecraft:crying_obsidian"
|
"minecraft:crying_obsidian"
|
||||||
]
|
]
|
||||||
}
|
}
|
Reference in New Issue
Block a user