Code Monkey home page Code Monkey logo

blockchanger's People

Contributors

fossabot avatar thegaming999 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blockchanger's Issues

Update block improvement

Good morning,
I try to ensure that when I place a block ( here air in the particle selection ) the blocks next to it are not updated, (see screenshot)

I use the #setBlock method:

BlockChanger.setBlock(p.getWorld(), bv3.getX(), bv3.getY(), bv3.getZ(), Material.AIR, false);

I deactivate the parameter update,
I don't know if it's normal

2024-03-21_18 44 16
2024-03-21_18 44 28

(Feature, Not an issue) Add a new method

I saw your project in a spigotmc thread and recently, they updated the thread (Aug 13, 2023) with a new method:
"4. Set blocks in NMS DataPalette (Ultimate; Limited)"

I don't know if it's really useful, I just wanted to notice you of this change so that you can add this method if you wish.

Have a nice day!

Filling with lava does not work

From what I can tell, using lava (Material.Lava) as the block to fill does not work.

I first tried this
BlockChanger.setSectionCuboid(upperCorner, lowerCorner, new ItemStack(Material.GLASS), false);
This worked fine, the section was filled with glass.

I then just changed the material type (nothing else), and it didn't work. Instead of filing with lava, it just filled with air.
BlockChanger.setSectionCuboid(upperCorner, lowerCorner, new ItemStack(Material.LAVA), false);

I also tried the asynchronous counterparts, and the SetCuboid() method to no avail.

Server Info
image

  • Also tested on 1.19.3
  • Latest version of BlockChanger

Error when placing the same blocks the second time

Hi, when I set to air an area it's working fine, but when I try to place again air in the same area it gives me this error many many times:

java.lang.NullPointerException: null
	at com.andrei1058.bedwars.arena.mapreset.slime.BlockUpdaterLegacy.getSection(BlockChanger.java:2366) ~[?:?]
	at com.andrei1058.bedwars.arena.mapreset.slime.BlockChanger.getSection(BlockChanger.java:1458) ~[?:?]
	at com.andrei1058.bedwars.arena.mapreset.slime.BlockChanger.access$1000(BlockChanger.java:53) ~[?:?]
	at com.andrei1058.bedwars.arena.mapreset.slime.BlockChanger$SectionSetWorkload.compute(BlockChanger.java:2135) ~[?:?]
	at com.andrei1058.bedwars.arena.mapreset.slime.BlockChanger$WorkloadRunnable.run(BlockChanger.java:2042) ~[?:?]
	at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59) ~[patched_1.8.8.jar:git-PaperSpigot-445]
	at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [patched_1.8.8.jar:git-PaperSpigot-445]
	at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:783) [patched_1.8.8.jar:git-PaperSpigot-445]
	at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [patched_1.8.8.jar:git-PaperSpigot-445]
	at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched_1.8.8.jar:git-PaperSpigot-445]
	at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched_1.8.8.jar:git-PaperSpigot-445]
	at java.lang.Thread.run(Thread.java:750) [?:1.8.0_352]

[Feature Request] Method to unload unsaved chunk.

Method: BlockCnahnger.unloadChunk(Chunk chunk)
How it work's?
We are set world.setAutoSave(false) while server start and after player break/place block's in chunk we are run unloadChunk method which rollbacked chunk without restarting the server.
It's needed for minigames plugins.

1.19.4 Issues with methods

Hello,

It seems it may not work on 1.19.4 no more.

Errors:
java.lang.NoSuchMethodException: no such method: net.minecraft.world.level.block.Block.m()IBlockData/invokeVirtual
Caused by: java.lang.NoSuchMethodError: 'net.minecraft.world.level.block.state.IBlockData net.minecraft.world.level.block.Block.m()'

Other errors:
java.lang.NullPointerException: Cannot invoke "java.lang.invoke.MethodHandle.invoke(Object)" because "me.sean0402.deluxemines.Blocks.BlockChanger.NMS_ITEM_STACK_TO_ITEM" is null

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.