if(j1 == 3 && world.getBlock(x, i1 + j1, z)==MoreRecourcesMod.BlockRubyPortalBlock){
boolean flag = world.getBlock(x - 1, y, z)== this || world.getBlock(x + 1, y, z)==this;
boolean flag1 = world.getBlock(x , y, z- 1)== this || world.getBlock(x + 1, y, z)==this;
if(flag && flag1){
world.setBlockToAir(x, y, z);
}else{
if((world.getBlock(x +b0, y, z+ b1)!=MoreRecourcesMod.BlockRubyPortalBlock || world.getBlock(x-b0, y, z-b1)!=this)&&(world.getBlock(x-b0, y, z+b1)!=MoreRecourcesMod.BlockRubyPortalBlock || world.getBlock(x+b0, y, z+b1)!=MoreRecourcesMod.BlockRubyPortalBlock));
world.setBlockToAir(x, y, z);
}
}
}else{
}
world.setBlockToAir(x, y, z);
}
}
error:Syntax error on token "else", delete this token
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
hi this is a dimension code i am doing with a Tutorial by techgeek1019 here is link:
and here is the code:
package com.Mrminecarftwizz1smods.MoreRecourcesMod;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
public class BlockRubyPortalBlock extends Block {
protected BlockRubyPortalBlock(Material material) {
super(material);
}
/*public void UpdateTick(World world,int x,int y,int z,Random rand){
}*/
public AxisAlignedBB getCollisionBoundingBoxFromPool(World world,int x,int y,int z){
return null;
}
public boolean RenderAsNornmalBlock(){
return false;
}
public void OnNeighborBlockChange(World world,int x,int y,int z,Block block){
byte b0 = 0;
byte b1 = 1;
if(world.getBlock(x - 1, y, z)== MoreRecourcesMod.BlockRubyPortalBlock || world.getBlock(x + 1, y, z)== MoreRecourcesMod.BlockRubyPortalBlock){
b0 = 0;
b1 = 1;
}
int i1;
for(i1 = y; world.getBlock(x, i1 - 1, z)== this;--i1){
;
}
if(world.getBlock(x, i1 - 1, z)!=MoreRecourcesMod.BlockRubyPortalBlock){
world.setBlockToAir(x, y, z);
}else{
int j1;
for(j1 = 1;j1 < 4 && world.getBlock(x, i1 + j1, z)==this;++j1){
;
}
if(j1 == 3 && world.getBlock(x, i1 + j1, z)==MoreRecourcesMod.BlockRubyPortalBlock){
boolean flag = world.getBlock(x - 1, y, z)== this || world.getBlock(x + 1, y, z)==this;
boolean flag1 = world.getBlock(x , y, z- 1)== this || world.getBlock(x + 1, y, z)==this;
if(flag && flag1){
world.setBlockToAir(x, y, z);
}else{
if((world.getBlock(x +b0, y, z+ b1)!=MoreRecourcesMod.BlockRubyPortalBlock || world.getBlock(x-b0, y, z-b1)!=this)&&(world.getBlock(x-b0, y, z+b1)!=MoreRecourcesMod.BlockRubyPortalBlock || world.getBlock(x+b0, y, z+b1)!=MoreRecourcesMod.BlockRubyPortalBlock));
world.setBlockToAir(x, y, z);
}
}
}else{
}
world.setBlockToAir(x, y, z);
}
}
error:Syntax error on token "else", delete this token
please help
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHEEEEEEEEEEEEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
}
}
}else{
}
world.setBlockToAir(x, y, z);
}
}
taking out one of the brackets above the last else and adding it to the bottom fixes the errors but no promises on the function of the code
fixed:
}
}else{
}
world.setBlockToAir(x,y,z);
}
}
}
I currently have three mods.
Dirty's Cotton 1.0.1 for 1.7.10: forum post
OP-ig Make pigs not useless! Curseforge
I'll get a banner one day. I'm busy
Dirty's Hardcore Vanilla Overhaul Mod(Cancelled until further notice): forum post
Learn Java. Simple as that. It will do wonders for you.
What you said works,Thanks
never mind. Code tag gone from the forum now?
Use the [pre] tag.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.