Giter Club home page Giter Club logo

texturerotations's Introduction

Texture Rotation Reverser Java

  • for vanilla and sodium texture rotations.
  • only works on 1.13+
  • multithreaded
  • no netherrack support

Getting texture rotations

Datapack downloads

to get texture rotations you can install these two recourse packs:
Manual texture rotations
Textures to numbers

Usage

Manual texture rotations reskins blocks with block states to blocks with texture rotations.
When you change the blockstate via debugstick these blocks will then change their rotation.

Here is a list of the rotating blocks and thier replacement:

Bedrock:        Beehive fill level
Stone:          Bee nest fill level
Path block:     Orange glazed terracotta orientation
Dirt:           Brown glazed terracotta orientation
Red Sand:       Red glazed terracotta orientation
Grass block:    Lime glazed terracotta orientation
Mycelium:       Purple glazed terracotta orientation
Sand:           Yellow glazed terracotta orientation
Concrete powder:White glazed terracotta orientation
Podzol:         Cyan glazed terracotta orientation
Lily pad:       Iron trapdoor orientation

before the manual texture rotation resource pack:

image couldnt load

after the manual texture rotation resource pack:

image couldnt load Just rotate the blocks in your recreation as they are in the footage of your "vicitm"
Pay attention that you got the direction of your recreation right. This tool doesnt support rotating cause im lazy.
An easy way to get the direction is looking at the texture of blocks that dont have texture rotations.

Numbering texture rotations

Now you can overlay the textures to numbers resource pack.
It converts your textures to numbers that the program can use (who could have guessed)

after the textures to numbers resource pack:

image couldnt load

How to input data

In the TextureFinder class you can find an example on how the input data.

formation.add(new RotationInfo(1, 0, 0, 1, true));

The first 3 numbers are the relative coorinates to an origin block ingame that you have to pick.

This example shows rotation info about a block that is positioned 1 block in positive X direction from the origin.
All blocks that you include need to have a relative postition to this origin block.

The fourth number is simply the rotation. Just plug in the number from the textures to numbers resource pack.

The boolean value should be set to false.
Bedrock and stone have 2 possible side rotations. (acctually not rotations, the texture is flipped)
If you only know the side rotation then you need to set this to true.
All other blocks only rotate tops and bottoms. (except netherrack, which I dont support)

Search parameters

Configure them in the main class

  • xMin / xMax: range of the scanned X coords
  • zMin / zMax: range of the scanned Z coords
  • yMin / yMax: range of the scanned Y coords
  • threads: number of threads (between 4 and 16 for average pcs)
  • mode: change between VanillaTextures/Vanilla12Textures/SodiumTextures/Sodium19Textures

Sodium changed its random number generator a bunch of times so here is a table :)

Sodium Version MC Version Mode
1.0-4.1 1.16-1.18.2 SodiumTextures
4.2-4.8 1.19-1.19.3 Sodium19Textures
4.9+ 1.19.3+ VanillaTextures

texturerotations's People

Contributors

19misterx98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

keltrm

texturerotations's Issues

Need help with the usage please

Hey,
saw your tool in a video and have to say that is a great tool. You have my absolute respect. πŸ€©πŸ‘Œ
I tried to find out the seed with the help of these pictures. Unfortunately I can't get it right, can you help me?
facing_north
facing_north

facing_north_east
facing_north_east

facing_east
facing_east

Thank you very much and liebe Grüße πŸ˜‰

deepslate

how would this work with deepslate?

What is Sodium19?

In the textureproviders, what does sodium19 stand for? Is that just the rotation formula for sodium above 1.19? or some old specific other stuff

how do i actually run this (most likely skill issue on my side)

i have inserted all my data and im now trying to actually run the programm.
what i have tried:
running the Main.java in the intellij Idea; doesn't work because i cant click the "run" in the first place
building it using gradle and then running it with java -jar; doesnt work, i get "no main manifest attribute found" which im pretty sure means it cant find the Main.java.
running the Main.java file using the java command from the console; doesnt work as it now fails to access imports from the project
Main.java:1: error: package texture does not exist
import texture.TextureProvider;
^
Main.java:2: error: package texture does not exist
import texture.VanillaTextures;
^
Main.java:3: error: package texture does not exist
import texture.SodiumTextures;
^
Main.java:4: error: package texture does not exist
import texture.Sodium19Textures;
^
Main.java:12: error: cannot find symbol
public static final TextureProvider mode = new VanillaTextures();
^
symbol: class TextureProvider
location: class Main
Main.java:12: error: cannot find symbol
public static final TextureProvider mode = new VanillaTextures();
^
symbol: class VanillaTextures
location: class Main
Main.java:24: error: cannot find symbol
TextureFinder a = new TextureFinder(start,start+perX, mode);
^
symbol: class TextureFinder
location: class Main
Main.java:24: error: cannot find symbol
TextureFinder a = new TextureFinder(start,start+perX, mode);
^
symbol: class TextureFinder
location: class Main
8 errors
error: compilation failed ``

Netherrack

How hard would it be to add Netherrack Support?

Side Question: Does this also Support 1.20.4?

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.