Code Monkey home page Code Monkey logo

foliaflow's Introduction

FoliaFlow is a Minecraft plugin that allows players to using gravity block duplication glitch again in Paper and Folia

How is work?

Whenever a falling sand entity comes close to or hits the end portal, a new falling sand entity is summoned with a velocity that shoots it straight into the portal. However, we encountered a problem when the entity got reset by the safe teleport Paper patch - it lose its velocity. To fix this, we added the velocity back when the entity was in the end.

⚠️If you using folia

And type of concreate factory collector that use piston full block to stop falling blocks. You should change to slab to prevent block early break follow picture below

Top View

topviewff

Side View

sideviewff

Installation

To install FoliaFlow, follow these steps:

  1. Download the plugin JAR file from the Modrinth.
  2. Copy the JAR file to the plugins folder of your Minecraft server.
  3. Restart your server to load the plugin.

Config flies (config.yml)

# Don't touch this file unless you know what you're doing
# Default values seems vanilla.
# If you find values that seems more vanilla please create a PR
# https://github.com/Hynse/FoliaFlow

# Default value for horizontal_coefficient
#  - Folia (1.499)
#  - Paper (2)
horizontal_coefficient: 1.499
# -----------------------------------------

vertical_coefficient: -1.7
spawn_height: 0.08

# Default value for teleport_offset
#  - Folia (0.5)
#  - Paper (2.4)
teleport_offset: 0.5
# -----------------------------------------

Permissions

foliaflow.reload for using command /flowreload to reload config flies

Contributing

If you would like to contribute to FoliaFlow, feel free to submit a pull request with your changes. All contributions are welcome and appreciated.

License

This plugin is licensed under the MIT license. See LICENSE.md for more information.

foliaflow's People

Contributors

midnighttale avatar sofianedjerbi avatar xiaoyueyoqwq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kaiijumc

foliaflow's Issues

1.20.6 Sand Duper No Work

Hello, we use Folia for MC 1.20.6
All settings for duper is allow
and we have add FoliaFlow with default settings

But this Sand duper no work.. i have testwith manual sand duper with a gate no work too

Tutorial :
https://www.youtube.com/watch?v=S4HISFFdnuc

And this is the Paper config :

unsupported-settings:
allow-headless-pistons: true
allow-permanent-block-break-exploits: true
allow-piston-duplication: true
allow-tripwire-disarming-exploits: true
allow-unsafe-end-portal-teleportation: true
compression-format: ZLIB
perform-username-validation: true

Refactor project

It would be nice to split that huge main file into smaller and functional files for easier maintaining / optimization.
I consider creating a PR.

wolrd -> end √ |end ->world ❌

I have a problem. The gravity block can be used normally from the overworld to the end, but it cannot be used from the end to the overworld。
server use folia bundler 1.20.4 r0.1 shapshot reobf

Could not pass event EntityChangeBlockEvent to FoliaFlow v2.2 java.lang.IllegalStateException: World mismatch: expected world_the_end but got world

java.lang.IllegalStateException: World mismatch: expected world_the_end but got world
	at net.minecraft.world.level.Level.getCurrentWorldData(Level.java:284) ~[?:?]
	at net.minecraft.world.level.Level.getBlockState(Level.java:901) ~[?:?]
	at org.bukkit.craftbukkit.v1_20_R1.block.CraftBlock.getType(CraftBlock.java:242) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at xyz.hynse.foliaflow.watcher.PortalWatcher.onFallingBlockToBlock(PortalWatcher.java:29) ~[FoliaFlow-2.2.jar:?]
	at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor283.execute(Unknown Source) ~[?:?]
	at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[kaiiju-api-1.20.1-R0.1-SNAPSHOT.jar:?]
	at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[kaiiju-api-1.20.1-R0.1-SNAPSHOT.jar:git-Kaiiju-"95b2d63"]
	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[kaiiju-api-1.20.1-R0.1-SNAPSHOT.jar:?]
	at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:61) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[kaiiju-api-1.20.1-R0.1-SNAPSHOT.jar:?]
	at org.bukkit.craftbukkit.v1_20_R1.event.CraftEventFactory.callEntityChangeBlockEvent(CraftEventFactory.java:1383) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at org.bukkit.craftbukkit.v1_20_R1.event.CraftEventFactory.callEntityChangeBlockEvent(CraftEventFactory.java:1375) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at net.minecraft.world.entity.item.FallingBlockEntity.tick(FallingBlockEntity.java:207) ~[?:?]
	at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1407) ~[?:?]
	at net.minecraft.world.level.Level.guardEntityTick(Level.java:1048) ~[?:?]
	at net.minecraft.server.level.ServerLevel.lambda$tick$12(ServerLevel.java:883) ~[?:?]
	at io.papermc.paper.threadedregions.RegionizedWorldData.forEachTickingEntity(RegionizedWorldData.java:544) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:855) ~[?:?]
	at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1676) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:463) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1533) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:360) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:385) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:525) ~[kaiiju-1.20.1.jar:git-Kaiiju-"95b2d63"]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]

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.