Everything posted by Animefan8888
-
[1.9] TileEntity - Assigne new NBTCompound
Do you have either a class that extends BlockContainer or a class that extends Block that Overrides hasTileEntity() and createTileEntity(). If not you didn't do it right. And that tutorial is wrong.
-
[1.9] TileEntity - Assigne new NBTCompound
What about when it is placed?
-
Entity Spawning question
What you should do is look for where it is being called not where it is being made/overriden. This way you can check the other requirements for an entity to spawn. As i dont know what else is checked, but you should look at the super method of getCanSpawnHere and override it if one of those is a problem.
-
Entity Spawning question
I put the comments there for people looking at that code if what i code isnt open source i dont add those unless i need it for myself.
-
Entity Spawning question
Oh your welcome i made that because people have a lot of difficulty with those things. I meant use the search feature in your IDE.
-
Entity Spawning question
I dont have a workspace, but you could search for where getCanSpawnHere and see where it is called. Look around and see what other stuff is checked.
-
Entity Spawning question
How do you want them to spawn, normally, or at certain positions? If the first arenyou extending the vanilla villager classes?
-
[1.7.10] Get item in current mod registered to an ore dictionary entry
If you have the instance of the item you can create an ItemStack and use that to get its registered names.
-
Power API 1.10.2
- Power API 1.10.2
nbt is the name of the variable inside of the method normally. new NBTTagCompound () is a new variable of the type NBTTagCompound which is what you want to pass in to the method.- Power API 1.10.2
Let me point it out what is nbt? Why do you have new NBTTagCompoumd () after your setTagCompound?- Power API 1.10.2
I'll explain it here. Getter methods are usually used to grab a variable nornally a protected or private one. You can not edit the variable using an =, but you can grab any data within the variable. Setters are a loop on to set a variable = to whatever you pass into the method. These normally are void methods and are used for protected or private variables as well. This is done to ensure you do not have full access to a field from outside where it has been declared.- Power API 1.10.2
What tutorial?- Power API 1.10.2
All i am going to say is look up getters and setters it will tell you what is wrong there.- Power API 1.10.2
setTagCompound(...) automatically sets the variable to what is passed into the method. No = is required setTagCompound(...) is a void method. Meaning nothing is returned, seriously look up what getters and setters are.- Power API 1.10.2
That is mostly correct except for the = and the second one. It doesnt work. You should look up what getters and setters are in programming, they are a big part.- [SOLVED] NullPointerException when adding Slots in the Container
Well the only null thing i can think of would be the field itself.- Power API 1.10.2
Everything else is getTagCompound()- [SOLVED] NullPointerException when adding Slots in the Container
Instead of having your TileEntity contain a field of InventoryBasic why not make it implement ISidedInventory(Used to be able to interact with pipes/hoppers) or IInventory.- Power API 1.10.2
Watch this video and preferably the entire playlist.- Power API 1.10.2
This is the important part. (NBTTagCompound nbt) If you do not know what that means you are not yet ready to mod anything.- [1.10.2 - 1249] entityIn.motionZ/X limit?
onEntityCollidedWithBlock is called when a entity is inside of the collision box, so if your block is not smaller that the collision box there is no normal way for any Entity to "collide" with it.- [SOLVED][1.10.2] Modifying a vanilla dimension's World Generation
DimensionManager.unregisterDimension(id);- Power API 1.10.2
It is not right but do not go and do that stuff, instead look at setTagCompound() in the ItemStack class and maybe look up what getter and setter methods are in programming.- Power API 1.10.2
It kinda tells you exactly what is wrong in the second one(Hint: It's the ()) and the first one is two == not one. When I said stackTagCompound = someTagCompound there was only one. - Power API 1.10.2
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.