Everything posted by Animefan8888
-
[1.10.2] Looking for an adjacent block.
Both methods neighborChanged and getStateForPlacement have a world and a BlockPos parameter.
-
How does having two mods installed with a same item name work?
They use the OreDictionary and I do the same thing but with the eclipse keybinding.
-
[1.10.2] Looking for an adjacent block.
First off this is not going to work in your block class TileEntitySolarGenerator tileEntitySolarGenerator = new TileEntitySolarGenerator(); instead use world.getTileEntity(pos) Next pass in a World and BlockPos variable into updateFromPlaced() and updateFromNeighbor()
-
[1.10.2] Looking for an adjacent block.
Use neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn) and getStateForPlacement(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer, ItemStack stack)
-
[1.10.2] Looking for an adjacent block.
for each enum { BlockPos pos = getPos().offset(face); if (getWorld().getTileEntity(pos) instanceof TEClass) { // Do stuff } else { // Do stuff } }
- Draw GUI problem
-
Draw GUI problem
When do you update energyDP?
-
1.11 No Code errors, but crash on start up (thrownentity) (-slvd fix pg2)
Here is a hint if you do not know how to create an instance of a class: look at the classes constructor.
-
1.11 No Code errors, but crash on start up (thrownentity) (-slvd fix pg2)
I don't know how man! "like for items and blocks." I feel like bashing my head as hard as I can into this keyboard atm. register(new ResourceLocation(modid, name), EntitySphere.class, "sphere");
-
[1.10.2] Looking for an adjacent block.
You override getWorld() remove that function from your class and add the functionality to update.
-
1.11 No Code errors, but crash on start up (thrownentity) (-slvd fix pg2)
Can you give me an example of this, please? initialize the Exampled.rsrcl I feel bad for asking :\ rsrcl = new ResourceLocation(modid, name);
-
[1.10.2] Looking for an adjacent block.
Don't override getWorld()...
-
[1.10.2] Looking for an adjacent block.
Don't override getWorld(), for this you want to use update.
-
[1.10.2] Looking for an adjacent block.
That depends why are you checking for adjacent blocks?
-
[1.10.2] Looking for an adjacent block.
Yes
-
[1.10.2] Looking for an adjacent block.
worldObj.getBlockState(BlockPos).getBlock()
-
(SOLVED)[1.10.2] GUIs not working
You only need one GuiHandler...
-
[1.10.2] Server Crash?
Post your ClientProxy, ServerProxy, and your Reference class
-
[Solved] [1.11] GUI Drawing confusion
Your receiveEnergy is where the energy gets changed. I thought it might be and did try but that didnt change anything so i thought it must be another way of doing it There are two other methods I forgot to say getUpdateTag, and handleUpdateTag. Those were recently brought to my attention.
-
[Solved] [1.11] GUI Drawing confusion
Your receiveEnergy is where the energy gets changed.
-
Item Textures JSON loaction issue
Is it under the assets/modid/models/item folder? Because it doesn't show that.
-
Item Textures JSON loaction issue
Show the entire explorer in your IDE.
-
Item Textures JSON loaction issue
Post new log. And your item json.
-
[Solved] [1.11] GUI Drawing confusion
Data ie the energy.
-
Item Textures JSON loaction issue
All file names should be lowercase. If you are using 1.11 they have to be in 1.10.2 they do not, but since it is being enforced in 1.11 best to start doing it now. The file it is looking for is ingotcopper not ingotCopper.
IPS spam blocked by CleanTalk.