-
Posts
28 -
Joined
-
Last visited
Converted
-
URL
https://github.com/hawon10617/SpaceSim/tree/master/src/main/java/net/hawon/spacesim
-
Location
Korea
Recent Profile Visitors
12761 profile views
1HA's Achievements

Tree Puncher (2/8)
0
Reputation
-
I want to know why the item textures are not loaded. As far as I know, I did everything that I had to. (models/item/example.json & textures/items/example.json). Has something changed with /resource? https://github.com/1hwai/Firstman/tree/master/src Meanwhile, I want Datagenerator to generate only the block state of CableBlock, not the block model. Since CableBlock has too many connection states, I made auto-generating code for its block model .json file, which is written in TypeScript. And it's working very fine. But the problem is, that block state builder also builds block models too. I know this is not an error, but every time I run runData, I have to remove those files(generated\resources\assets\firstman\models\block\cable\...). I tried to fix it, but the reflection error came out. (ModBlockStates.java) protected void registerCables() { CableBlock[] cables = {BlockInit.CABLE_BLOCK.get()}; for (CableBlock cableBlock : cables) { VariantBlockStateBuilder bld = getVariantBuilder(cableBlock); Queue<ArrayList<Boolean>> queue = new LinkedList<>(); ArrayList<Boolean> start = new ArrayList<>(); queue.add(start); while (!queue.isEmpty()) { ArrayList<Boolean> element = queue.poll(); if (element.size() < 6) { ArrayList<Boolean> temp1 = new ArrayList<>(element); ArrayList<Boolean> temp2 = new ArrayList<>(element); temp1.add(true); temp2.add(false); queue.add(temp1); queue.add(temp2); } else if (element.size() == 6) { String status = (element.get(0) ? "u" : "") + (element.get(1) ? "d" : "") + (element.get(2) ? "n" : "") + (element.get(3) ? "s" : "") + (element.get(4) ? "e" : "") + (element.get(5) ? "w" : ""); if (status.equals("")) status = "none"; String path = "block/cable/" + status; BlockModelBuilder cable = models().getBuilder(path); bld.partialState().with(UP, element.get(0)).with(DOWN, element.get(1)).with(NORTH, element.get(2)).with(SOUTH, element.get(3)).with(EAST, element.get(4)).with(WEST, element.get(5)) .modelForState().modelFile(cable).addModel(); } } } }
-
thanks! u helped me a lot I was using the 1TB onedrive folder that my school gave me.
-
still same. I think this happens by gradle. /build is created by running gradle, isn't it?
-
Cannot snapshot C:\Users\...\firstman\build\classes\java\main\com\hwai\firstman\client\screen\SolarPanelScreen.class: not a regular file GITHUB repo It even got worse now. JVM is trying to kill me, and maybe judgment day is coming
-
Cannot snapshot C:\Users\...\firstman\build\resources\main\assets\firstman\models\block\solar_panel_slope_block.json: not a regular file I get an error when I run the project if there are some differences in the /resources folder. Also, DataGenerator generates nothing. 1 more. /generated/resources /main/resources ... they look different. IntelliJ draws 4 orange color bars on main/resources but not on generated/resources. I remember when I was working on 1.18, both of them had those orange bars on.
-
I fixed it. Yey.
-
Hi, I'm working on making a new directional block. I think giving some properties to block has been changed from 1.20. (am I right?) I just tried to do like: BlockBehaviour.Properties.of(Material.STONE).strength(4f) ...and I found Material class is nowhere. So I fixed it. This is what I've done to "example_block" BlockBehaviour.Properties.of().mapColor(MapColor.STONE)) It worked fine with "example_block" I thought I could do the same to my 'super cool' directional block. so I fixed it. (again) super(BlockBehaviour.Properties.copy(Blocks.CHEST).mapColor(MapColor.STONE).dynamicShape()); and this is what I got. Caused by: java.lang.IllegalArgumentException: Cannot set property DirectionProperty{name=facing, clazz=class net.minecraft.core.Direction, values=[north, south, west, east]} as it does not exist in Block{minecraft:air} I tested several times what if I change Blocks.CHEST into Blocks.FURNACE. but it still gives me the similar error, only different thing is that it tells me Furnace lits, mine doesn't. I want to know why it says "air" despite I wrote CHEST. I tested several times what if I change BlocksCHEST into Blocks.FURNACE. but it still gives me a similar error, only different thing is that Furnace lits, mine doesn't. I want to know why it says "air" despite I wrote CHEST. How can I fix this? And Why the registering thing has become soo complicated than before?
-
So, you mean the basic problem of this is that the network has to be loaded partially when the chunk has loaded, right? I have googled it... and watched this. (https://www.youtube.com/watch?v=prqMxqUtj-0) Then how can I load the network when the chunk has loaded? I have an idea which is about checking whether a new chunk has been loaded inside clientSetup(). Is it ok? Thx for answering
-
I almost finished dealing with my mod cable networking. I made machine BEs as a TreeNode, for hierarchical management. but I don't think it's a good idea to search for its parent node in every moment a player joins the game. ( tech mod has a lot of BEs, as you know ) Thus, I want them to save their child nodes somehow when the player quit the game. I thought I can save each child node by putting it into a tag, but I think this is inefficient. Is there any other way?
-
Let's say that there are block A and B, which are neighbored by each other and I know the two coordinates of both. Question is, how can I get the Direction(NSEW) A => B? I know there's a function with opposite work. But what function should I use in this case?
-
I forgot the name of the method. hehe
-
1HA changed their profile photo
-
I got some weird error while running runClient. The last time I opened this project was in April. I believe that there is no problem with dependencies. What happened between 2 months. Exception in thread "main" java.io.UncheckedIOException: java.io.IOException: Invalid paths argument, contained no existing paths: [C:\Users\hawon\.gradle\caches\modules-2\files-2.1\net.minecraftforge\forgespi\4.0.11\beba03c49f418c8d66aae30a6df69bde4fce2f18\forgespi-4.0.11.jar] at cpw.mods.securejarhandler@0.9.54/cpw.mods.jarhandling.impl.Jar.<init>(Jar.java:74) at cpw.mods.securejarhandler@0.9.54/cpw.mods.jarhandling.SecureJar.from(SecureJar.java:58) at cpw.mods.securejarhandler@0.9.54/cpw.mods.jarhandling.SecureJar.from(SecureJar.java:50) at cpw.mods.securejarhandler@0.9.54/cpw.mods.jarhandling.SecureJar.from(SecureJar.java:42)
-
Thx I'd like to ask you one more thing. The current of the cable might constantly change(caused by generators and machines). In this case, the server has to fix the change every tick, right?🤔 And I used neighborChanged() to check distances
-
Glad to hear that I can use BFS. I need some cable to connect the power. I used a 3d array in the C test code to get the "map". And it worked pretty well. However, in minecraft, the server can't receive the cable network data with a 3d array cause it's inefficient. Therefore somehow, as others did, the server has to receive the data with a linked list? maybe? And I have no idea what to do. thx for replying