Giter Site home page Giter Site logo

Comments (4)

acs avatar acs commented on July 22, 2024

Textures

We have already changed the creeper one. It is just a matter of extracting the default textures and modify the one we want to modify. For example. in 1.16.1, the textures are:

[1.16.1]$ jar tvf 1.16.1.jar | grep textures | wc -l
2118

The graphic design work is huge. For example, for the creeper:

[1.16.1]$ jar tvf 1.16.1.jar | grep textures | grep creeper
  1068 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/entity/banner/creeper.png
  1948 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/entity/creeper/creeper_armor.png
  2869 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/entity/creeper/creeper.png
   181 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/entity/shield/creeper.png
   192 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/item/creeper_banner_pattern.png

And for the bats:

[1.16.1]$ jar tvf 1.16.1.jar | grep textures | grep bat
   768 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/entity/bat.png

The new 1.16.1 creatures, like the piglin follow the same approach: https://minecraft.gamepedia.com/Piglin

[1.16.1]$ jar tvf 1.16.1.jar | grep textures | grep piglin
   960 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/models/armor/piglin_leather_layer_1.png
   275 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/models/armor/piglin_leather_layer_1_overlay.png
  1549 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/entity/piglin/zombified_piglin.png
  1128 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/entity/piglin/piglin.png
   139 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/entity/banner/piglin.png
   121 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/entity/shield/piglin.png
   192 Wed Jun 24 10:31:12 CEST 2020 assets/minecraft/textures/item/piglin_banner_pattern.png

It depends in the richness of the creature the amount of textures associated with it.

Should we invest more time in textures? Once we have understood how to modify them my opinion is that we should not invest more time now unless a concrete use case appear.

from mcthings.

acs avatar acs commented on July 22, 2024

Blocks

Minecraft is al about blocks. And the possibility of creating new ones is interesting. For example, the lucky blocks is something that have success. But it seems it is a combination between the ability to create new blocks and some modding code: http://www.9minecraft.net/lucky-block-mod/

Let's explore a bit this new block feature in resource packs.

It seems that we just need to use this 3D editor (https://blockbench.net/downloads/) and decorate our block and save it to the correct place.

Screenshot from 2020-08-12 08-07-42

The tutorial has worked as expected: https://minecraft.gamepedia.com/Tutorials/Creating_a_resource_pack#Modeling_Blocks.2FItems

Screenshot from 2020-08-12 08-28-54

So for creating new blocks, it is clear that this editor is the way to go. Time to think about it and MagicaVoxel to understand the relationship and implications. Blockbench UI is a kind of simplified Blender (at least in my mind).

I will try now to create a totally new block and see it if appears in the inventory of Minecraft.

Let's call it ladder2. I have created the same structure but with this new name and it does not appear in Minecraft.

[minecraft]$ tree
.
├── blockstates
│   ├── ladder2.json
│   └── ladder.json
├── models
│   ├── block
│   │   ├── ladder2.json
│   │   └── ladder.json
│   └── item
│       ├── ladder2.json
│       └── ladder.json
└── textures
    ├── block
    │   ├── ladder2.png
    │   └── ladder.png
    └── entity
        ├── creeper
        │   └── creeper.png
        └── wither
            ├── wither_armor.png
            ├── wither_invulnerable.png
            └── wither.png

9 directories, 12 files


So it see,s that you can redefine the existing blocks but not to create new ones with the resource pack approach.

Reading a bit more, it seems that you can add new models: https://minecraft.gamepedia.com/Tutorials/Changing_Minecraft_entity_models At least for entities. But it is a feature specific of the Bedrock edition.

from mcthings.

acs avatar acs commented on July 22, 2024

Animations

In the Java Edition, the animation is done using frame based: https://minecraft.gamepedia.com/Resource_Pack#Animation

In the Bedrock Edition uses bones: https://minecraft.gamepedia.com/Tutorials/Changing_Minecraft_entity_models#Bones_and_animation

So if we want to animate blocks or entities in Java Edition, is is just a matter of creating the frames to implement the animation and to program correctly the frame rate.

from mcthings.

acs avatar acs commented on July 22, 2024

Ok, enough research for this features in Minecraft. Closing this issue which completes #101 (comment)

from mcthings.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.