Ok guys i found a solution which works atm only for singleplayer but i will look forward for Mp stuff
minecraft.getIntegratedServer().getEntityWorld().destroyBlock(new BlockPos(x, y, z), true);
that is the solution
edit:
minecraft.theWorld.destroyBlock(new BlockPos(x, y, z), true);
this works for mp if not blocked by a plugin
edit2: Ups testing helps still a Ghost Block for mp^.^
im trying to create a mod which extends the reach of the Player...
i can raytrace the block the player is looking on but if i call
minecraft.theWorld.destroyBlock(new BlockPos(x, y, z), true);
the block breaks, but im still colliding with it but i cant hit it anymore after restarting the world the block is back.
i think i'm missing some update function anywhere
it tested:
minecraft.theWorld.markBlockForUpdate(new BlockPos(x, y, z));
minecraft.theWorld.notifyBlockOfStateChange(new BlockPos(x, y, z), minecraft.theWorld.getBlockState(new BlockPos(x, y, z)).getBlock());
minecraft.theWorld.notifyNeighborsOfStateChange(new BlockPos(x, y, z), minecraft.theWorld.getBlockState(new BlockPos(x, y, z)).getBlock());
minecraft.theWorld.tick();
minecraft.theWorld.getWorldChunkManager().cleanupCache();
0
Heyho,
is there an easy way to check if the client will be shutdown, like the onDisable() in bukkit programming ?
0
Hey,
am i doing something wrong here ? http://pastebin.com/ftku0YDV
it tells me "There are no mappings for MC 1.11.2" if i try to start the "setupDecomWorkspace" Task
0
Thx for u help Mumfrey, now it works.
Are there some Mappings for 1.11.2 ? (http://export.mcpbot.bspk.rs/) here is only 1.11 and i cant see a dev page or something like that.
Mfg Zero
0
Heyho, maybe im too dump, but i cant set my enviroment in Eclipse.
Could someone make me a Tutorial for Setting up all and compile (as example the Examplemod) ?
Basicly im doing this:
1. Get a fresh Eclipse with Gradle/Git
2. Download and decompile via mcp
3. Fixing the wrong path for Project "Client" for the realms.jar
4. Cloning Liteloader to local repository
5. Import Liteloader via Gradle
6. Added Project "Client" to Liteloaders Build path
7. Multiple missing lib jars in Liteloader (i can fix that :D)
8. Still "wrong" code in Liteloader like wrong named variables as example
9. Setting up my Project in Eclipse, added Liteloader,Client and some lib jars
10. Copied the gradle build file from examplemod to my mod
What does i have to do to start Liteloader in eclipse (with my mod), change run configuration like in mumfreys old liteloader video ?
How do i compile my mod?
Why are there errors in Liteloader, i bet mumfrey wont have dead code in his git.
https://github.com/1337Zero/Zombe Thats the mod if someone is intressted
0
Ok nobody replied but i found a solution...
https://github.com/sk89q/WorldEdit/tree/master/worldedit-core/src/main/java/com/sk89q/jnbt
I copied all classes from Worldedit to my mod -> fixed some problems
and changed my code like worldedit handles it
-> https://github.com/1337Zero/Zombe/blob/master/java/me/zero/cc/Zero_lite/utils/Schematic.java
now the created schematic is worldedit compatible
0
Hey,
i have created a mod which can load schematics and paste them to singleplayer (thats works), now i want to create schematics out of a building.
My mod can loaded those schematics and paste them so it works, but my schematics does not work with WorldEdit
Worldedit reported "java.io.IOException: Tag 'Schematic' does not exist or is not first"
code: https://github.com/1337Zero/Zombe/blob/master/java/me/zero/cc/Zero_lite/utils/Schematic.java -> line 133
NBTexplorer displays them diffrent
x.schematic [Schematic: 14 entries] for the worldedit schematic
and
test.schematic [12 entries]
im missing a bit of code somewhere but idk. what
someone here how know a solution for my problem ?
thanks
1337Zero
0
ok i found he problem ... because of reasons the tileentites and entites are saved as a String and not as a List
...
0
Hey there im trying to load a .schematic file without worldedit, just as the title told you
I can load the Blocks, the Width,height,Data and length but my code fails to load the Entites and the Tile entities
http://pastebin.com/GvzRByap
everytime i searched the web i only find the nbt.getTagList("TileEntities") methode
but my Eclipse told me that it needs an Integer value
i tryied 0-255 but it never got any value
the schematic has 619 tile entities (and no entity)
Somebody know how to load the tileentity from NBT?
thanks @ all
0
Placing Blocks and destroying Blocks in Sp works, i have to find a way to let it happen in MP
0
minecraft.getIntegratedServer().getEntityWorld().destroyBlock(new BlockPos(x, y, z), true);
that is the solution
edit:
minecraft.theWorld.destroyBlock(new BlockPos(x, y, z), true);
this works for mp if not blocked by a plugin
edit2: Ups testing helps still a Ghost Block for mp^.^
0
0
Liteloader... is a simple loader without much functions you have to use minecraft defaults... but i think there is a relationship to forge but idk.
the Buildscript ist on Github in the ant folder
all in all its like you make an standalone mod without changing the original code
but that is still not the problem
0
http://pastebin.com/BpPdRtCc
the rest of the code is here
https://github.com/1337Zero/Zombe
0
The main problem is still that the broken block is saved somewhere and not deleted
btw. i tested this in Eclipse so it should be the integrated Server not any standalone version
0
im trying to create a mod which extends the reach of the Player...
i can raytrace the block the player is looking on but if i call
minecraft.theWorld.destroyBlock(new BlockPos(x, y, z), true);
the block breaks, but im still colliding with it but i cant hit it anymore after restarting the world the block is back.
i think i'm missing some update function anywhere
it tested:
minecraft.theWorld.markBlockForUpdate(new BlockPos(x, y, z));
minecraft.theWorld.notifyBlockOfStateChange(new BlockPos(x, y, z), minecraft.theWorld.getBlockState(new BlockPos(x, y, z)).getBlock());
minecraft.theWorld.notifyNeighborsOfStateChange(new BlockPos(x, y, z), minecraft.theWorld.getBlockState(new BlockPos(x, y, z)).getBlock());
minecraft.theWorld.tick();
minecraft.theWorld.getWorldChunkManager().cleanupCache();
but that does not help
anyone who know a solution for my problem?