Jump to content

octonion

Members
  • Posts

    15
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

octonion's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. How do I hide everything except for the base mod in the mod list?
  2. What I meant was that you said that "A -> B" means that B relies on A (that is, A is the parent mod) and then went on to say that "generic|machinery -> generic." i.e. you incorrectly stated that generic|machinery and generic|world were the parent mod. What should I do if I make all generic|* mods rely on generic? Can I then hide those mods from the mods list?
  3. Yes, and in the generic mod (not generic|core), I want to register all the recipes and connect the parts together.
  4. so if A -> B, A cannot be a child mod of B? What if the restriction generic|machinery, generic|world -> generic is removed? Is it possible now?
  5. I have a simple mod hierarchy: generic|core -> generic|machinery, generic|core -> generic|world, generic|machinery, generic|world -> generic where A -> B means B depends on A. I am trying to make generic|core, generic|machinery, generic|world all child mods of generic and not show up in the mod list. How can I do that? In addition, I would like to know how child mods handle their resources in 1.8+ minecraft. Thanks in advance.
  6. Sorry there was a typo in the title. I'm trying to store a tile entity inside an entity and vice versa.
  7. I have a simple entity class: [pre] public class EntityTiled extends Entity { private TileEntity tile; public EntityTiled(World world) { super(world) } public void readEntityFromNBT(NBTTagCompound nbt) { /* Some code */ } public void writeEntityToNBT(NBTTagCompound nbt) { /* Some code */ } } [/pre] Is it safe to call world.getTileEntity method when readEntityFromNBT is called? Similarly is it safe to call world.getTileEntity in writeEntityToNBT method? Thanks in advance.
  8. I am trying to put many,many (potentially greater than 16) tile entities into one single block. Currently I have the following problems: 1. How do I attach a tile entity to the block based on the damage of the corresponding ItemBlock? The onItemUse method of ItemBlock does not mention about TileEntity, and the corresponding handling is done in the World class. The createTileEntity method does not provide any information about the placer either. 2. How do I change the texture/model based on the TileEntity? I am thinking about using getActualState(IBlockState, IBlockAccess, BlockPos) or TileEntitySpecialRender. Thanks in advance.
  9. In CoFH's documentation for Thermal Expansionhttp://teamcofh.com/docs/thermal-expansion/storage/strongboxes/, it says "To prevent creating infinite storage, as well as some world-corrupting issues, Strongboxes cannot store items that can also store items themselves" What would happen if I create an item that can store items, and repetitively nest it inside itself?
  10. Do I have to write the data using the readFromNBT and writeToNBT methods? I have tried using ChunkEvent.Load/Unload but did not find a way to write data into the chunk. I am thinking about using ChunkDataEvent.Load/Save but not sure if it is good practice.
  11. I am trying to store custom data into a chunk so that 1) The data is preserved if the chunk is unloaded 2) I can read the data if I have a Chunk instance. I tried the ChunkDataEvent.Load and ChunkDataEvent.Save events but did not figure out how to solve (2). How do I achieve this? Thanks in advance.
  12. I found the problem. Mysteriously my Java version was set to Java 6 when it should be Java 8. Now all the errors are gone and minecraft runs without problem.
  13. I am trying to implement a block with metadata in scala. Here is my code: There seems to be some problems. At (1), The compiler says that [pre]Error:(45, 56) inferred type arguments [Any,Int] do not conform to method withProperty's type parameter bounds [T <: Comparable[T],V <: T] getDefaultState.withProperty(propertyFacing, facing).withProperty(propertyIndex, index) ^[/pre] At (2), it says [pre]Error:(57, 33) type mismatch; found : Array[net.minecraft.block.properties.PropertyHelper[_ >: Integer with net.minecraft.util.EnumFacing <: Comparable[_ >: Integer with net.minecraft.util.EnumFacing <: java.io.Serializable] with java.io.Serializable]] required: net.minecraft.block.properties.IProperty[?0] forSome { type ?0 <: Comparable[?0] } new BlockStateContainer(this, properties) ^[/pre] These codes are from MinecraftByExamples and work perfectly fine in Java. What should I change to fix the problem? For (2), I have tried casting the elements to type [pre]IProperty[_ <: Comparable[_]][/pre] and to [pre]IProperty[_][/pre], but that did not solve the problem. Are there any examples/tutorials of scala modding? Thanks in advance.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.