Jump to content

FishBoneEK

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by FishBoneEK

  1. 4 minutes ago, diesieben07 said:

    What do you want to do with the data that you have read? What is your goal?

    I’m making MultiBlocks. To do this, I plan to make 2 types of block in each multi block: main and sub. Main renders model while sub doesn’t. Also sub blocks stores main blocks’ pos as TileEntity, so that when a block is destroyed, I can break others according to the main block’s pos.

  2. I need to read TileEntity stored in block when it’s destroyed. ( more detailed goal description down below) I have searched about this problem, but Block#break is gone, getDrops is static and impossible to override. I have also looked into PlayerController#onPlayerDestroyBlock ( if I remember correctly), but seems that there’s no other methods called on block destroy and when block is intact.

    ======

    I’m making MultiBlocks. To do this, I plan to make 2 types of block in each multi block: main and sub. Main renders model while sub doesn’t. Also sub blocks stores main blocks’ pos as TileEntity, so that when a block is destroyed, I can break others according to the main block’s pos.

  3. Oh and, you can read the readme in Forge Dev Kit (which you will download on forge’s website) to build a valid workspace that can be used by IDEs.

    You should also look into vanilla code( which is under Project and External Dependencies, if you are using Eclipse as your IDE). It offers some example as well, and you need to learn about it first before you override the classes and methods to perform functions based on functions that exists in vanilla Minecraft.

  4. Hi! I’m new to modding too, but I have started making mods that can run, which includes some blocks like normal blocks, and a fence that is 2 blocks high, so I think I can provide some info here.

    Learning some Java is vital, I think you can learn it from official tutorial on Oracle, online tutorials, and books in library.

    Also, I recommend you to write some small programs for practice. As vim’s tutorial says, learning lies in practice!

     

    For learning modding, try to read Getting Started in Forge doc and examplemod code in the initial Forge workspace. These helped me understand some basic about how to register blocks( letting forge know the blocks you made) etc. 

    By the way, you can look into TheGrayGhost’s examples, it’s on github, and really helpful!

  5. Forge: forge-1.16.4-35.1.4-mdk

    I've been working on custom models of a new fence recently. But I have met with a problem, that the fence's brightness looks good during the day, but too bright at night.

    Perhaps the brightness somehow doesn't change via time? (Just a guess of course)

    I've been searching solutions for this issue for a while, and I found that it might be related with option experimentalForgeLightPipelineEnabled, so I made some comparation: true or false, and during day or at night.

     

    True, during the day:
    True, during the day

     

    False, during the day:

    False, during the day:

     

    True, at night:

    True, at night

     

    False, at night:

    False, at night

    In addition, the model is built with blender 2.90. I'm pretty new to blender, so not sure whether it is caused by some wrong properties in blenders.

    Texture is edit with GIMP 2.10.14.

    Also, you might have noticed that the texture displayed on the face of the fence is different from the texture in file. Indeed it's also a issue need to be solved, but yet it's another different issue, so I put it in another thread.

    ==Code==

    bcp.java

    CustomShapeFence.java

    HoleyFenceExtension.java

    HoleyFenceNode.java

     

    ==Blockstates==

    holey_fence_node.json

    holey_fence_extension.json

    ==Models==

    holey_fence_node_post.json

    holey_fence_node_post.obj

    holey_fence_node_post.mtl

     

    holey_fence_node_side.blend

    holey_fence_node_side.json

    holey_fence_node_side.obj

    holey_fence_node_side.mtl

     

    holey_fence_extension_post.json

    holey_fence_extension_post.obj

    holey_fence_extension_post.mtl

     

     

    holey_fence_extension_side.blend

    holey_fence_extension_side.json

    holey_fence_extension_side.obj

    holey_fence_extension_side.mtl

    ==Textures==

    fence_face_cross.png.5b2428e508723c62cc19f8ac7ce47ff5.png

×
×
  • Create New...

Important Information

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