Everything posted by memcallen
-
Block Textures With alpha?
in the constructor it has a material and a boolean what does the boolean do?
- Block Textures With alpha?
-
Block Textures With alpha?
I'm making a steam block but I want it to be partially transparent, I've made a texture with the alpha set to 50ish, but it just acts like there's no texture. How could I make it so that it is partially transparent?
-
how to detect if a class implements an interface
I got it to work finally....after like 20 or so hours working on it
-
how to detect if a class implements an interface
As I said the block has a tilentity which implements my interface and what my code is doing is if it has a TileEntity, then it checks if the TileEntity implements my interface
-
how to detect if a class implements an interface
It's my version of an energy system...unfortunately it only can have a single input unless I use a list
-
how to detect if a class implements an interface
What I want to do is detect if a block is of a certain interface and if it is, then call a function to set some variables in said block but because the variables need to be in the nbt, the TileEntity needs to implement the interface.
-
[1.7.10] Command to give a clickable link
I think what palmer is trying to ask is how would you do it. If you don know how you would have to do player.addChatComponentMessage(new ChatComponentTranslation("")). In the string put msg.yourmessagename.txt and do the same in your .lang file-same as naming items/block etc. As for the link I have no idea how.
-
Get resource pack on server?
if you mean downloading a texture pack from the server you could just use a server texture pack, its a vanilla thing but I have no idea how to use it due to me never setting up a server where it was needed.
-
how to detect if a class implements an interface
the was really no difference it was mainly just random block around it
-
[SOLVED]Armor detecting entities within a radius crashing
I doubt it but you might have to do List<EntityPlayer> instead of just List
-
how to detect if a class implements an interface
I put this in my onBlockActivated method: if(world.getTileEntity(x, y+1, z)!=null)System.out.println("not Null"); if(world.getTileEntity(x, y+1, z) instanceof IPowerContainer)System.out.println("Is Power Container"); the block that I placed on top implemented IPowerContainer and had a TileEntity this is what I got in the console: not Null
-
how to detect if a class implements an interface
I know how to use the debugger mode, and I've done System.out.println(te) before and it wasn't null and instanceof wasn't returning true still...
-
Textures wont load in 1.7.2 [SOLVED]
In your registerBlockIcons you are doing: this.blockIcon = p_149651_1_.registerIcon("citrine:citrineOre"); its supposed to be: this.blockIcon = p_149651_1_.registerIcon("FarmersDream:citrineOre"); in the register icon function, you have to do your MODID and the texture name. Also make sure it's in the correct location.
-
how to detect if a class implements an interface
yeah I have setup my TileEntity correctly it can already store power and save to nbt and all the normal tileEntity stuff also I'm pretty sure that the tileEntity isn't null because I replace the blocks every time I test it
-
Model Animations [UNSOLVED] [1.7.10]
what I would do is to have it detect if its within 10 ticks of finishing and only count 1 instead of the normal 2 so if it was at 20, it would tick up/down 2 and if it was at 7 it would tick up/down only 1
-
How to make a custom ore block smelt in to ingot
try putting GameRegistry.addSmelting after you register your blocks and items also why are so many people using LanguageRegistry.addName?
-
how to detect if a class implements an interface
bbcode why you do this?
-
how to detect if a class implements an interface
oops forgot to do " "
-
how to detect if a class implements an interface
what I was doing was TileEntity te = world.getTileEntity(x,y-1,z); if(te!=null) if(te instanceof IPowerContainer) System.out.println("yes"); and it wasn't printing anything even though I had a block that properly implemented it and had a tileEntity below my battery
-
how to detect if a class implements an interface
do you know what the catch would be?
-
how to detect if a class implements an interface
what do you mean by wrap it?
-
how to detect if a class implements an interface
I've made a battery class which implements a custom interface "IPowerProvider" and a cable which also implements the same interface, when I want to add more cables how could I detect if the class implements my interface? sidenote-I've tried to use instanceof with an instance rather than the class but it didn't work
-
Get resource pack on server?
Firstly if you are making a mod that disables xray texture packs try using a plugin so that the hackers don't know that you're checking. But it you want to do something else the best way would to be to use a packet to get whatever info you want(keep in mind that an entire texture pack will not be able to be sent w/o crashing or lagging the server badly) and then send it to the server side.
-
how to set item name colour?
I fixed it but I had to hard-wire the name in by changing StatCollector.translateToLocal(this.getUnlocalizedName(par1ItemStack); to StatCollector.translateToLocal("Item name"); unfortunately now it doesn't work with the .lang file
IPS spam blocked by CleanTalk.