• 0

    posted a message on Wondering if people would be interested in a plugin for variables within functions/commands

    /\ bump /\

    Yeah I need more support than two people if I'm going to invest time into this project, so if anybody else needs something like this speak up! :P

    Posted in: Mods Discussion
  • 0

    posted a message on Wondering if people would be interested in a plugin for variables within functions/commands
    Quote from BluePC1 >>

    I don't program with java myself, but I always wished that there was something like this THAT you could use with normal mc commands, such as using the var in tellraw text, coord positions etc. I have no idea how complicated it is to create something that can work along side with normal commands, but to be honest if It didn't, I don't see how much better this would be then the scoreboard system.

    Good idea though!



    That's what cmd_var would be :P


    let's say you want to summon an entity that's dependent on a variable, here's how you would go about that.


    # Would make a variable named entity.
    make_var str entity
    make_var int type = 0
    
    if type == 0 than /var entity = "cow"
    if type == 1 than /var entity = "bat"
    if type == 2 than /var entity = "sheep"
    
    /cmd_var summon %entity%
    Posted in: Mods Discussion
  • 0

    posted a message on Wondering if people would be interested in a plugin for variables within functions/commands

    /make_var int potato = 53

    /summon zombie 30 (potato) 230

    /make_var str item = "The Sword of @s"

    /give @s wooden_sword{display:{Name:(item)}}


    Also maybe most/all the commands could be merged into /var e.g

    /var create int cheese = 29053

    /var set cheese = 2052




    It would basically be impossible to add the variables to vanilla commands, but I could add a command such as cmd_var which would be used like this.

    # With the way I currently would set this up this plugin it would work like this.
    /make_var int potato = 53
    /cmd_var /summon zombie 30 %potato% 230
    
    # Makes a command running variable
    /make_var cmd test = /testfor @s
    /make_var str itemName = "The Sword of"
    
    # Will add the output of cmd to itemName
    /var itemName += cmd
    
    # itemName currently looks like "The Sword of Found PlayerName"
    # we want to remove Found & one of the spaces so
    /var itemName -= " Found"
    
    # Than we run the command with the variable
    /cmd_var /give @s wooden_sword{display:{Name:%itemName%}}


    Now for your second suggestion that would be vary easy to implement plus I feel it looks better than 20 commands, so I'll add an updated syntax spoiler to first post when I get a chance.

    Posted in: Mods Discussion
  • 0

    posted a message on Wondering if people would be interested in a plugin for variables within functions/commands

    I want to make a plugin to have variables in game that are a little more functional than the scoreboard system. I have a basic idea of how to implemented & code this. I just made this post to know first if it's worth taking the time to make(if people can find a use for such things), and second if people can help refine the idea down & make it less programmy syntax :P


    New Commands:


    ~ make a variable.

    /var create


    ~ change variable.

    /var modify (=, +=, -=, *=, /=, ++, --)


    ~ store variable in file.

    /var storage [get, send]


    ~ If something that run a command with variables.

    /var if (==, >, <, !=, >=, <=) (and, run) [command]


    ~ Run a command with variables.

    /var run [command] - Runs a command with variables


    Old Commands:


    /make_var <int, str, float, cmd> <name> = [command]

    /var <var> <=,-=,+=,*=,/=,++,--> <var>

    /if (<var> <==,>,<,>=,<=,!=> <var> [and, or]) than [command] # Left Right Notation

    /cmd_var [command] - %variable% what's inside gets ran

    /store_var <var-name> - stores variable on file

    /get_var <var-name> - gets a variable from file


    Usage:


    ____________________________________________________________


    #### Setup function ####


    # Note all variable type will go into each other, but the filter changes based on variable type.


    # Makes a str variable by the name of Max

    make_var str Max = 13000

    # Makes a int variable by the name of Min

    make_var int Min = 0


    # This will output “Time is XXXX” whenever called

    make_var cmd c = time query daytime


    # Sense A is an integer the plugin will set the first sting of them found left to right.

    # Like- fake command output 1234 & 234 - A would be set to 1234 nothing else.

    make_var int A = c


    ____________________________________________________________


    #### Looping function ####


    # Note that all variables are global & will work between functions


    # If variable Rule doesn’t exist than run function to make all variables

    if Rule == null than function func:setup-function


    # Sets the output of c to A every time this function is called

    var A = c;


    # If A is greater compared to Max than run cmd_var time set %Min%

    # cmd_var time set %Min% will take the variable Min and replace %Min% with the value

    # This will run “/time set 0”

    if A >= Max than cmd_var time set %Min%


    ____________________________________________________________


    That was just an example of what it could do, I'm looking for more examples of why it would be useful to have & people who need something like this.


    Thank you for reading!

    Posted in: Mods Discussion
  • 0

    posted a message on Percentage of a single score HELP PLEASE

    Do something like this...



    # First we set a score we can change without messing things up...

    @e (testID) *= none (testID) #This equals 0

    @e (testID) += @e (ID) #This sets all entities testID to ID score.

    # Than we find the player with the search key.

    @e (testID) -= search (testID) #This removes search from testID.

    /execute @e[type=armor_stand,score_testID=0] ~ ~ ~ /execute @s[score_testID_min=0] ~ ~ ~ @s += 1 (leaderboard)


    # When search is equal to 0 set it back to max ID else.

    search -= 1 (search) # This makes it so you loop through a play per-tick, if you want fast do function stacking.


    Note, anywhere I put no "/" is a scoreboard command.


    Now to get % is easy just divide the score by all claimed land total on the server.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Is There A Plugin That Allows For A Flat World With Diversity In Biomes?

    bump /\

    bc this is a question that has been derived from the first one.


    Edit: Btw I think I should make it clear that generated structures are on, but bc it's a plugin generating everything they don't get generated. I was hoping that someone may know how to use the default generator for that part.


    Edit 2: I'm going to mark this post as resolved & make a new post in the spigot community for the second question bc it's more technical. I'll add the link to read post here so people who need an answer can follow the link.


    Link: https://www.spigotmc.org/threads/how-to-use-vanilla-structures-in-custom-generator.326342/

    Posted in: Server Support and Administration
  • 0

    posted a message on Is There A Plugin That Allows For A Flat World With Diversity In Biomes?

    I'm going to try to rap my head around the world generation within plugins & make one to do this; I'll post back if I have any luck :P


    Edit: Ok I finished the plugin, but I don't know how to generate structures. The players will need a way into the nether so I want villages to generate in the empty world like you can do with a super flat world, but I don't know how to get them to generate. I need them bc of the blacksmiths have lava which is going to be the only way to the nether & thus the only way to the end. If anyone has any clue how to please reply :)


    Thanks.


    Edit 2: If someone needs the code I can make a pastebin if someone has the same problem.

    Posted in: Server Support and Administration
  • 0

    posted a message on Is There A Plugin That Allows For A Flat World With Diversity In Biomes?

    Yes Master I could do that on a single player world where the player won't explore, but I'm trying to setup a server & the problem is when they inevitably explore they're going to find newly generated chunks which will be in the normal generation. Basically there will be big walls & if I want to keep recourses limited I can't because people will just go in the nether and travel 10'000 blocks. This will put them 80'000 blocks from spawn which will definitely generate new chunks.

    Posted in: Server Support and Administration
  • 0

    posted a message on Is There A Plugin That Allows For A Flat World With Diversity In Biomes?

    This world be great if there weren't blocks in the world. That's what I meant by "void" a null world or air/empty world, but also containing biomes. There also is the fact that in 1.13, which is about to be released, custom worlds will be discontinued. This isn't quite what I'm looking for, but thanks for your help! :P


    Edit: I think I should clarify... I want it so in a "skyblock" players can goto a biome & do biome specific things. Now this isn't for skyblock it's just an example of what I want it for.

    Posted in: Server Support and Administration
  • 0

    posted a message on Is There A Plugin That Allows For A Flat World With Diversity In Biomes?

    Sorry I'll be more specific about what I mean by void. I'm speaking of the definition of the word, thus I mean an empty world. So I'm asking how to create a empty supperflat(which I already know how to do), but with a world generation plugin that will also have biomes like a normal world. Basically I want river biomes, oceans, and all the other biomes in the same world, but it to be empty(with no blocks).

    Posted in: Server Support and Administration
  • 0

    posted a message on Is There A Plugin That Allows For A Flat World With Diversity In Biomes?

    Back to top with this post...

    bump /\

    Posted in: Server Support and Administration
  • 0

    posted a message on Faction Plugin Help & ideas, [UNSOLVED] **NEED PEOPLE WITH KNOWLEDGE OF PLUGINS**
    Quote from BluePC1»



    That is right, I don't want players to have to use commands to claim. I want the beacons to do it automatically. As with the claiming plugin you were talking about, the only thing that I would need it to do - would be make sure everyone who is standing in claimed land is in survival, make sure that everyone who ISN'T standing in claimed land is in adventure mode, and make the person who owns the land/placed the beacon doesn't get attacked by there own defenses.


    From my small knowledge of other faction servers - their plugins don't have anything to do with gamemodes and defenses. So I don't really know where I will dig up the plugin(s) I need.


    Aside from all that, It hadn't occurred to me that I could use functions and armor stands in that way. I will take your idea of executing to the armor stand into consideration.


    Thanks for your help!! :D


    Yes this is probably what you're looking for plugin wise.

    https://www.spigotmc.org/resources/claimchunk.44458/



    Also, if you have a server we could develop this idea further that'd be cool :P

    Posted in: Server Support and Administration
  • 0

    posted a message on My modded server keeps crashing

    Mods are both server side and client side. Well there are just one sided mods, but with the type you're talking about are on both the client & server need the modpack/mods installed.

    Posted in: Server Support and Administration
  • 0

    posted a message on Faction Plugin Help & ideas, [UNSOLVED] **NEED PEOPLE WITH KNOWLEDGE OF PLUGINS**

    That's actually a really cool idea, so I'll try to help :P


    Firstly, if you use a scoreboard to detect when someone placed a beacon than you could use a function to run a claim command from a claim plugin.

    Second, you'll probably need the play to be one the beacon to claim that way you can summon an armorstand inside it. The armor stand would when detection the beacon being destroyed would get a un-claim command ran on it. Than it would get killed.

    Lastly, the claiming plugin you use needs to work in execute commands & have an op level un-claim that way you can just run one execute on all the armorstands. Also it needs some sort of scoring system.


    This is all under the assumption you don't want players to directly claim/un-claim.

    Posted in: Server Support and Administration
  • To post a comment, please or register a new account.