Hey I though of a good addition to this mod, have an option to turn a block (for example cobblestone) into a generic solid block.
Just a thought. anyway great mod.
package net.minecraft.src;
import java.util.Random;
public class BlockSlimeSheet extends Block
{
protected BlockSlimeSheet(int par1, int par2)
{
super(par1, par2, Material.sand);
this.setTickRandomly(true);
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.125F, 1.0F);
this.setCreativeTab(CreativeTabs.tabDecorations);
if(playerPlaced)
{
this.slipperiness = 0.98F;
}
else
{
this.slipperiness = 0F;
}
}
private Entity placingEntity;
private boolean playerPlaced = false;
private void Slime(EntityLiving par1EntityLiving)
{
this.placingEntity = par1EntityLiving;
if(par1EntityLiving instanceof EntityPlayer)
{
playerPlaced = true;
}
else
{
playerPlaced = false;
}
}
/**
* Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been
* cleared to be reused)
*/
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
{
int var5 = par1World.getBlockMetadata(par2, par3, par4) & 7;
return var5 >= 3 ? AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)par2 + this.minX, (double)par3 + this.minY, (double)par4 + this.minZ, (double)par2 + this.maxX, (double)((float)par3 + 0.5F), (double)par4 + this.maxZ) : null;
}
/**
* Is this block (a) opaque and (B) a full 1m cube? This determines whether or not to render the shared face of two
* adjacent blocks and also whether the player can attach torches, redstone wire, etc to this block.
*/
public boolean isOpaqueCube()
{
return false;
}
/**
* If this block doesn't render as an ordinary block it will return False (examples: signs, buttons, stairs, etc)
*/
public boolean renderAsNormalBlock()
{
return false;
}
/**
* Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z
*/
public boolean canPlaceBlockAt(World par1World, int par2, int par3, int par4)
{
int var5 = par1World.getBlockId(par2, par3 - 1, par4);
return var5 != 0 && (var5 == Block.leaves.blockID || Block.blocksList[var5].isOpaqueCube()) ? par1World.getBlockMaterial(par2, par3 - 1, par4).blocksMovement() : false;
}
/**
* Checks if this slime block can stay at this location.
*/
public void updateTick(World par1World, int par2, int par3, int par4, Random par5Random)
{
if(!playerPlaced)
{
par1World.setBlockWithNotify(par2, par3, par4, 0);
}
if(playerPlaced)
{
}
}
/**
* Updates the blocks bounds based on its current state. Args: world, x, y, z
*/
public void setBlockBoundsBasedOnState(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
{
int var5 = par1IBlockAccess.getBlockMetadata(par2, par3, par4) & 7;
float var6 = (float)(2 * (1 + var5)) / 16.0F;
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, var6, 1.0F);
}
/**
* Returns true if the given side of this block type should be rendered, if the adjacent block is at the given
* coordinates. Args: blockAccess, x, y, z, side
*/
public boolean shouldSideBeRendered(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5)
{
return par5 == 1 ? true : super.shouldSideBeRendered(par1IBlockAccess, par2, par3, par4, par5);
}
/**
* Slows the player down if they walk on the slime placed slime
* else slightly increases speed
*/
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
{
if(!playerPlaced)
{
par5Entity.motionX *= 0.4D;
par5Entity.motionZ *= 0.4D;
}
if(playerPlaced)
{
par5Entity.motionX *= 1D;
par5Entity.motionZ *= 1D;
}
}
}
I'm currently working on a mod like this...
slime sheets like snow sheets are left behind slimes, slime from slime trails slows you down where as when the player places it it is slippery.
Slime blocks are also slippery
I'm trying to get this working but whenever i change the starting tributes i get
7:46:06 p.m. at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:733)
7:46:06 p.m. at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:305)
7:46:06 p.m. at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:179)
7:46:06 p.m. at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:563)
7:46:06 p.m. at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
7:46:06 p.m. at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
7:46:06 p.m. at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
7:46:06 p.m. at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
7:46:06 p.m. at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
7:46:06 p.m. at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
7:46:06 p.m. at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
7:46:06 p.m. at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
7:46:06 p.m. at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
7:46:06 p.m. at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
7:46:06 p.m. at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
7:46:06 p.m. at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:52)
7:46:06 p.m. ... 17 more
IGN: Andyrew617 AGE: 14 WHY YOU WANT TO JOIN: small servers are better and I like survival and jungles LISTENING SKILLS: (1-10) 95 AND DO YOU AGREE TO THE RULES: Yes
Every time i install modloader it gives me the black screen and then closes not giving me enough time to copy the text but its modloader that crashes as i can understand. i really want all the mods that require modloader but because it does not work i can't play them =(. i delete meta files and copy all of the files into th jar and still nothing, Help please
(what is IGN)
Do you agree to not use TNT and fire?: yes
Will you put space between projects so people can build?: yes
Do you agree to not use the /time command as it messes with redstone?: yes
Will you grief?: no
Can you teach me how to build a basic CPU(Not required but I'm desperate to learn)?: sorry no
Have you been banned before?: no
He's right so for your boolean comparison to work set up glass as a material (in the material class) for that code to work otherwise you might be able to change it to glass as a block so Block.glass may work but I am not very familare with crafting recipies :tongue.gif:
but it says
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// MaterialLogic, MaterialTransparent, MaterialLiquid
public class Material
{
public Material()
{
}
public boolean getIsLiquid()
{
return false;
}
public boolean isSolid()
{
return true;
}
public boolean getCanBlockGrass()
{
return true;
}
public boolean getIsSolid()
{
return true;
}
private Material setBurning()
{
canBurn = true;
return this;
}
public boolean getBurning()
{
return canBurn;
}
public Material func_27284_f()
{
field_27285_A = true;
return this;
}
public boolean func_27283_g()
{
return field_27285_A;
}
public static final Material air = new MaterialTransparent();
public static final Material ground = new Material();
public static final Material wood = (new Material()).setBurning();
public static final Material rock = new Material();
public static final Material iron = new Material();
public static final Material water = new MaterialLiquid();
public static final Material lava = new MaterialLiquid();
public static final Material leaves = (new Material()).setBurning();
public static final Material plants = new MaterialLogic();
public static final Material sponge = new Material();
public static final Material cloth = (new Material()).setBurning();
public static final Material fire = new MaterialTransparent();
public static final Material sand = new Material();
public static final Material circuits = new MaterialLogic();
//Right here |
// v
public static final Material glass = new Material();
public static final Material tnt = (new Material()).setBurning();
public static final Material field_4262_q = new Material();
public static final Material ice = new Material();
public static final Material snow = (new MaterialLogic()).func_27284_f();
public static final Material builtSnow = new Material();
public static final Material cactus = new Material();
public static final Material clay = new Material();
public static final Material pumpkin = new Material();
public static final Material portal = new Material();
public static final Material cakeMaterial = new Material();
private boolean canBurn;
private boolean field_27285_A;
}
0
I have made a start, I am new to modding (or at least been out of the game for a long time), so lots of re-learning to do.
Feel free to make new textures if you like
0
Hi there,
Lucky for you, this mod already exists!. Have a look at Pixelmon Reforged, https://reforged.gg/
I hope this helps
0
Just a thought. anyway great mod.
0
help?
I'm using optifine if that makes a difference
0
0
slime sheets like snow sheets are left behind slimes, slime from slime trails slows you down where as when the player places it it is slippery.
Slime blocks are also slippery
and thats as far as I've got.
0
0
What plugins do you want?
0
any help would be greatly appreciated
0
AGE: 14
WHY YOU WANT TO JOIN: small servers are better and I like survival and jungles
LISTENING SKILLS: (1-10) 95
AND DO YOU AGREE TO THE RULES: Yes
0
Then sorry dont know how to help
0
delete all folders except saves in .minecraft then run it.
Then you add modloader and then delete Meta-Inf
it should work
if you are still stuck watch this
0
make a .bat file with this in it
0
Do you agree to not use TNT and fire?: yes
Will you put space between projects so people can build?: yes
Do you agree to not use the /time command as it messes with redstone?: yes
Will you grief?: no
Can you teach me how to build a basic CPU(Not required but I'm desperate to learn)?: sorry no
Have you been banned before?: no
I should be on at least every second day
(P.S What is wrong with fire?)
0
but it says
so what do I need to do?