Everything posted by Animefan8888
-
[1.11][SOLVED] Dual Input Recipes Issue
You created a wrapper for a reason.
-
[1.10.2] Get WorldSavedData from IBlockAccess
IBlockColor.colorMultiplier I feel like it will be mostly an instance of World, other than that you are screwed.
-
[1.10.2] Get WorldSavedData from IBlockAccess
It appears to me that it is only accessible from a World. I assume I am screwed then? Seems like it, what method passes an IBlockAccess that you are using?
-
[1.11][SOLVED] Dual Input Recipes Issue
Add a new entry to your list.
-
[1.11] Jetpack
Yes you will have to create your own capability. The forge documentation is a little low, but there are examples out there Choonster has some example on his github. There is also this which helped me understand what I need for a capability specifically. https://github.com/Choonster?tab=repositories http://www.planetminecraft.com/blog/forge-tutorial-capability-system/
-
[1.10.2] Get WorldSavedData from IBlockAccess
You can check to see if it is an instance of World, or any other instance that you can get it from.
-
[1.10.2][Resolved] Server-side only mod
Yes in the @Mod annotation serverSide = true. Thank you very much Animefan8888. Also. The mod I made has a set of translated messages in the assets folder. I noticed if I didn't reopen the client while in development, the messages didn't work well because it shows the "id" of the message. So that means that the translation happens in the client and the client is which has the language files. Is there a way to do the same but server side? I don't know if I should create another post for this question... No there is not another way to do this, as the server doesn't need to know the translations it is only server side, I suppose you could make a translator your self.
-
[1.11] Jetpack
I think you will want to create a new one and then in the methods you need to call the super if it doesn't match yours. IE @Override public ICapabilityProvider initCapabilities(ItemStack stack, NBTTagCompound nbt) { ICapabilityProvider superProvider = super.initCapabilities(stack, nbt); return new ICapabilityProvider() { @Override public boolean hasCapability(Capability<?> capability, EnumFacing facing) { return capability == yourCapability ? true : superProvider.hasCapability(capability, facing); } @Override public <T> T getCapability(Capability<T> capability, EnumFacing facing) { return capability == yourCapability ? yourCapability : superProvider.getCapability(capability, facing); } }; } I don't see how you could incorporate facing into an Item, but...ehh.
-
[1.11] Jetpack
Post your whole class.
-
[1.10.2][Resolved] Server-side only mod
Yes in the @Mod annotation serverSide = true.
-
[1.11] Jetpack
how can i do that? player.fallDistance = 0; ? Two ways either Subscribe to the LivingFallEvent or litterally in your onArmorTick constantly set it to 0. All right ill take care of that in a bit, but running into a bit of a problem, when i charge up the jetpack in my inventory it also charges all the jetpacks in the world, how do i fix that? Make a ItemStack capability for energy items.
-
[1.11] Jetpack
how can i do that? player.fallDistance = 0; ? Two ways either Subscribe to the LivingFallEvent or litterally in your onArmorTick constantly set it to 0.
-
[1.11] Jetpack
nah that is good, but i would add an if else statement like if (player.motionY >= someVelocity) { // Do stuff } else { // Add velocity }
-
[1.11] Jetpack
Could you post code so I can see what you tried.
-
[1.11] Jetpack
player.addVelocity(0, 0.2/** Running speed 0.1 walking speed*/, 0); Also you may want to add a cap, y velocity.
-
[1.11] Jetpack
No x, y, z are different from velocity. Velocity is speed and direction, x, y, z are positions.
-
[1.11] Jetpack
Actually it would probably be better to detect when the button is pressed, then set a boolean to true and send a packet to make the boolean true on the server, this way you don't have the Player moved wrongly or some other alert message going in the server console. And then when it is released send a packet setting it to false and set it to false.
-
[1.10.2] Rendering after a join of the world
You need to override TileEntity#getUpdatePacket(), TileEntity#getUpdateTag(), TileEntity#onDataPacket(), and TileEntity#handleUpdateTag(). And you should switch fromusing ISIdedInventory to the IItemHandler capability.
-
How do I create a mountable block (for a chair)?
You need a mountable entity that is invisible.
-
[1.10.2] Animating Armor
Does rendered.getIsRendered()'s value ever changed to a 1?
-
[1.10] Entity is Exploding all the time...
Or do it in the attackEntityAsMob() or any other attacking function...
-
[1.10] Entity is Exploding all the time...
This this.attackEntityAsMob(this) Is saying attack this mob with this mob. Not attack a mob with this mob. attackEntityAsMob(Entity) is supposed to be called by other Entities not the one you are in. So what if (!this.worldObj.isRemote && this.attackEntityAsMob(this)) { is really saying is if the world is server side and I can attack myself create an explosion.
-
Play Sound at Player Location(Client Side)?
First off no Thread.sleep() is not a valid way of doing that. It puts the whole thread asleep. IE no game play the entire thing pauses. And I wonder why that method does nothing....oh wait From the World class. public void playSound(double x, double y, double z, SoundEvent soundIn, SoundCategory category, float volume, float pitch, boolean distanceDelay) { } Edit: Off topic, but something I found very funny that can be done. PositionedSoundRecord sound = new PositionedSoundRecord(SoundEvents.ENTITY_CREEPER_PRIMED, SoundCategory.HOSTILE, 1, 1, new BlockPos(0, 0, 0)); @Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) { if (!Minecraft.getMinecraft().getSoundHandler().isSoundPlaying(sound)) { sound = new PositionedSoundRecord(SoundEvents.ENTITY_CREEPER_PRIMED, SoundCategory.HOSTILE, 1, 1, playerIn.getPosition()); Minecraft.getMinecraft().getSoundHandler().playSound(sound); } }
-
NBT Writing / Reading issue.
- NBT Writing / Reading issue.
Not it has, but it needs. - NBT Writing / Reading issue.
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.