GithubHelp home page GithubHelp logo

blingedit's Introduction

Important: BlingEdit is a datapack made by SethBling. I did not make the original version, or any of the official updates! This is just a place for me to work on patches/improvements, often for personal use. https://www.reddit.com/r/BlingEdit/

blingedit's People

Contributors

mmk21hub avatar

Stargazers

 avatar  avatar

Watchers

 avatar

blingedit's Issues

Rewrite version detection

BlingEdit's current version detection works but is not a great solution. It leaves errors in the console and does not work for every version.

BetterBlingEdit's version detection:

It uses the data_version value in player NBT. This supports every major version, minor version, pre-release and snapshot. It also doesn't leave errors in the console. This also helps future-proofing, as we can add features that require newer mechanics while maintaining support for older versions of Minecraft.

Todo

New version detection

Add new scores on load. Line 252 of blingedit:reset would become:


## BETTER BLINGEDIT
scoreboard objectives add dataVer dummy
scoreboard objectives add clientVer dummy
scoreboard players set $BBlingEdit clientVer 0

Add chkclient function:

execute store result score $BBlingEdit dataVer run data get entity @p DataVersion
# 1.13.x:
execute if score $BBlingEdit dataVer matches 1444...1900 run scoreboard players set $BBlingEdit clientVer 13
# 1.14.x:
execute if score $BBlingEdit dataVer matches 1901...1976 run scoreboard players set $BBlingEdit clientVer 14 
# 1.15.x:
execute if score $BBlingEdit dataVer matches 2200...2230 run scoreboard players set $BBlingEdit clientVer 15
# Other:
execute if score $BBlingEdit clientVer matches 0 run scoreboard players set $BBlingEdit clientVer 0

Update BlingEdit options

Lines 1-3 of blingedit:interface/en/options_2_bottom would become:

execute if score $BBlingEdit clientVer matches 13 run tellraw @s ["",{"text":"Client Version:                     1.13.x","color":"white"}]
execute if score $BBlingEdit clientVer matches 14 run tellraw @s ["",{"text":"Client Version:                     1.14.x","color":"white"}]
execute if score $BBlingEdit clientVer matches 15 run tellraw @s ["",{"text":"Client Version:                     1.15.x","color":"white"}]
execute if score $BBlingEdit clientVer matches 0 run tellraw @s ["",{"text":"Client Version:                     Unsupported!","color":"white"}]

BetterBlingEdit v1.0 roadmap

Currently waiting for MC 1.16 to enter the pre-release stage. This should (hopefully) mean I don't have to rewrite everything when Mojang makes a technical change.

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.