Skip to content

Commit

Permalink
1.4.8 Update:
Browse files Browse the repository at this point in the history
-Russian translations by DirectorX;
-Adjusted particles class a little bit and adjusted X and Z range;
-Removed some unnecessary comments and annotations.
  • Loading branch information
Codename Revy committed Apr 6, 2020
1 parent 039260c commit 6c1e4c8
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 28 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'idea'
apply plugin: 'maven-publish'

version = '1.4.7'
version = '1.4.8'
group = 'com.codenamerevy.magicmirror'
archivesBaseName = 'magicmirror'

sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.

minecraft {
//Mappings Version
mappings channel: 'snapshot', version: '20200225-1.15.1'
mappings channel: 'snapshot', version: '20200406-1.15.1'
runs {
client {
workingDirectory project.file('run')
Expand Down Expand Up @@ -76,10 +76,10 @@ minecraft {

dependencies {
// Forge version
minecraft 'net.minecraftforge:forge:1.15.2-31.1.16'
minecraft 'net.minecraftforge:forge:1.15.2-31.1.37'
}

// Manifest for reading by the runtime..
// Manifest for reading by the runtime...
jar {
manifest {
attributes([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public class Config {
public static final CategoryGeneral GENERAL = new CategoryGeneral();
public static final CategoryDeveloper DEVELOPER = new CategoryDeveloper();


public static final class CategoryGeneral {

public static ForgeConfigSpec.BooleanValue enableIngredients;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* @author CodenameRevy
*/

package com.codenamerevy.magicmirror.content.items;

import com.codenamerevy.magicmirror.init.SoundInit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* @author CodenameRevy
*/

package com.codenamerevy.magicmirror.content.items;

import com.codenamerevy.magicmirror.init.ParticleInit;
Expand Down Expand Up @@ -41,7 +37,7 @@ public void onUsingTick (ItemStack stack, LivingEntity entity,int count)
{
Random rand = entity.world.rand;
for(int a = 0; a < 25; a++) {
entity.world.addParticle(ParticleInit.MIRROR_PARTICLE, entity.lastTickPosX + (rand.nextBoolean() ? -1 : 1) * Math.pow(rand.nextFloat(), 2) * 2, entity.lastTickPosY + rand.nextFloat() * 3 - 2, entity.lastTickPosZ + (rand.nextBoolean() ? -1 : 1) * Math.pow(rand.nextFloat(), 2) * 2, -1, -0.105D, -1);
entity.world.addParticle(ParticleInit.MIRROR_PARTICLE, entity.lastTickPosX + (rand.nextBoolean() ? -0.5 : 0.5) * Math.pow(rand.nextFloat(), 2) * 2, entity.lastTickPosY + rand.nextFloat() * 3 - 2, entity.lastTickPosZ + (rand.nextBoolean() ? -0.5 : 0.5) * Math.pow(rand.nextFloat(), 2) * 2, -1, -0.105D, -1);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ public class MirrorParticle extends SpriteTexturedParticle
private MirrorParticle(IAnimatedSprite animatedSprite, World world, double x, double y, double z, double speedX, double speedY, double speedZ) {
super(world, x, y, z, 0.5D - RAND.nextDouble(), speedY, 0.5D - RAND.nextDouble());
this.animatedSprite = animatedSprite;
this.motionY *= 0.20000000029082000D;
this.motionY *= 0.15D;
if(speedX == 0.0D && speedZ == 0.0D) {
this.motionX *= 0.10000000029082000D;
this.motionZ *= 0.10000000029082000D;
this.motionX *= 0.5D;
this.motionZ *= 0.5D;
}
this.particleScale *= 0.5F;
this.maxAge = (int)(7.5D / (Math.random() * 0.4D + 0.2D));
this.particleScale *= 0.3F;
this.maxAge = (int)(7.5D / (Math.random() * 0.2D + 0.1D)); //was 7.5 0.4 and 0.2
this.canCollide = false;
this.selectSpriteWithAge(animatedSprite);
}
Expand All @@ -40,15 +40,15 @@ public void tick()
this.motionY += 0.04D;
this.move(this.motionX, this.motionY, this.motionZ);
if(this.posY == this.prevPosY){
this.motionX *= 1.1D;
this.motionZ *= 1.1D;
this.motionX *= 0.5D;
this.motionZ *= 0.5D;
}
this.motionX *= 0.9599999785423279D;
this.motionY *= 0.9599999785423279D;
this.motionZ *= 0.9599999785423279D;
this.motionX *= 0.5D;
this.motionY *= 0.5D;
this.motionZ *= 0.5D;
if (this.onGround) {
this.motionX *= 0.699999988079071D;
this.motionZ *= 0.699999988079071D;
this.motionX *= 0.5D;
this.motionZ *= 0.5D;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public class TeleportHelper
{
private static PlayerEntity player;
private static ServerWorld serverWorld;
private static Entity ridingEntity;

public static void travelHome(PlayerEntity player)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
TODO: Update this class
This method seems to sometimes work and sometimes it doesn't.
Need to find a more stable way to populate loot tables...
*/

package com.codenamerevy.magicmirror.util.handler;

import com.codenamerevy.magicmirror.config.Config;
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ logoFile="logo.png"
credits='''
CodenameRevy (Mod developer),
MichaelLimaRodrigues (Brazilian Portuguese translations)
Sn4pe (Spanish translations)'''
Sn4pe (Spanish translations)
DirectorX (Russian translations)'''
authors="CodenameRevy"
description='''
Magic Mirror mod adds several new items that are used to teleport you to your bed location almost instantly!
Expand Down

0 comments on commit 6c1e4c8

Please sign in to comment.