Giter Club home page Giter Club logo

Comments (7)

InventivetalentDev avatar InventivetalentDev commented on August 28, 2024 1

I ended up playing around with the event a bit more and managed to get to to carry over the original pulse length:
https://i.imgur.com/3dG1mkR.gifv

I really like the option that you can specify how long it stays on though, so I'll try to keep that included!

from advancedrepeaters.

Th3Shadowbroker avatar Th3Shadowbroker commented on August 28, 2024

...carrying over the input duration.

Do you mean something like this? https://www.youtube.com/watch?v=K-LkWRT33-A

from advancedrepeaters.

InventivetalentDev avatar InventivetalentDev commented on August 28, 2024

Do you mean something like this? https://www.youtube.com/watch?v=K-LkWRT33-A

Yes!
A config option to toggle the functionality would probably be nice too, for those used to the old behavior :3

from advancedrepeaters.

Th3Shadowbroker avatar Th3Shadowbroker commented on August 28, 2024

Great 👍
I'll try to make a PR over the day over the weekend.
As you already said, the bukkit redstone events aren't really good 😂
I have one more idea I'll try.

from advancedrepeaters.

Th3Shadowbroker avatar Th3Shadowbroker commented on August 28, 2024

Okay. I've played around with different approaches for quite a while now. However, the BlockRedstoneEvent is fired everytime a signal comes in or the repeater changes his state to powered and it would require a lot more code and time for testing etc. to keep the actual input-duration. As an alternative I will open a PR that implements custom active-time defined in line 3 of the sign wich, in my opinion adds more customizability for the user. The approach I've tried in the video only worked with 0 durations and I have to admit I were a bit too optimistic to get it easily working with longer durations without the said amount of code and time.

EDIT: I hope there will be more detailed redstone events in the future ^^

from advancedrepeaters.

Th3Shadowbroker avatar Th3Shadowbroker commented on August 28, 2024

Great! Just an idea but you could check for valueOut > -1 as well as the config value you wanted to add. If no "active-time" is defined the input duration will be carried over if enabled in the config.

from advancedrepeaters.

Th3Shadowbroker avatar Th3Shadowbroker commented on August 28, 2024

79efa35: By far less code than I expected 👍
Well I guess I got totally stuck with my approach on carrying over the signals 😂

from advancedrepeaters.

Related Issues (2)

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.