• 1

    posted a message on [SOLVED] Functions - Prevent specific item from being put in chests

    What if they drop the item into a water stream and let a hopper pick it up?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on On / off switch for redstone loop that automatically activates pistons

    So what you need is called a redstone clock. If you look it up, you will find a few redstone clock circuits.

    For short intervals you can use old good repeater clock. You can easily lock it in one state infinitely by applying signal to the block holding redstone torch.

    For long intervals you better use Etho hopper clock. Again, you can apply redstone signal to any of the hoppers to lock it in one state.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on /Testfor

    Nope, that can't be done.

    You will need several command blocks.

    One (repeating) will test the player with winning score 0 being in certain area and set the winning score to 1 for them. Other (chain conditional) will show the message to players with winning score 1. Third one (chain conditional) will teleport all players.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Push Effect Like On Crates?

    Hm. Strange. You can lock containers in vanilla Minecraft, but I'm not sure how would one recreate that. Perhaps by tracking "blocks interacted with" stat....

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Push Effect Like On Crates?

    I'm afraid I don't understand what "push effect" are you talking about... also, 'popular' is relative.

    Please explain what you want more explicitly, and provide images if possible.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Item display cases/ Un-pickup-able

    If you need to protect a free-floating item, then PickupDelay and Invulnerable tags are teh way to go.

    If you need a "display case", then you might consider giving the item to an invisible armor stand, forbidding interaction with its slots and positioning it in such a way as to show the item.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on How do you want to deal with your 1.13- maps?
    Quote from YMbrothers»

    They are more than just useful.
    Problem is that when your map content (or my map content.... ugh...) is about 80% made of command blocks,
    how much time do you need to convert them.
    (Again, I need to state my distrust on mcedit filters. Bug finding uses a similar amount of time of manually changing it)

    And then a great deal of those command blocks can be replaced with functions, making for a cleaner world and easier edits.
    It's still a lot of effort, but again - worth it.
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How do you want to deal with your 1.13- maps?

    I only have a small amount of personal command block "mods" and I'm updating them. New command syntax seems cleaner and easier to use, so I'd say it's worth the effort to port your maps.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on 2 Command Block request

    You don't need to tag zombies.

    You need to prepare by doing this once:

    /scoreboard teams add NoAggro

    And then just run repeatedly:

    /scoreboard teams join NoAggro @e[type=zombie,team=!NoAggro]

    /scoreboard teams join NoAggro @e[type=villager,team=!NoAggro]

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on .mcfunction syntax definition for Notepad++

    Can you give an example of such lines? I set the comments to only register at the beginning of the line (ignoring whitespace).

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on look up

    From the wiki:


    "In the Java Edition, the primary difference between this command and the /tp command is that /teleport uses coordinates relative to the command's execution, while /tp uses coordinates relative to the teleported targets."


    Whoops! Tried to rephrase that and got them mixed up! Thanks for correcting me.
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on .mcfunction syntax definition for Notepad++

    Greetings!

    Posting the thread here, because I couldn't find a more appropriate forum for it.

    I tend to use NPP for writing scripts, and now that task includes Minecraft function files.

    Since NPP allows user to define their own syntax highlighting rules, I though I'd make a set for .mcfunction files.

    You can find an instruction on how to import a new syntax here.

    The file itself is under the spoiler (since forums disallow attaching arbitrary files).

    Feedback from fellow NPP users would be appreciated.


    <NotepadPlus>
        <UserLang name="Minecraft Function File" ext="mcfunction" udlVersion="2.1">
            <Settings>
                <Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" />
                <Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
            </Settings>
            <KeywordLists>
                <Keywords name="Comments">00# 01 02((EOL)) 03 04</Keywords>
                <Keywords name="Numbers, prefix1"></Keywords>
                <Keywords name="Numbers, prefix2"></Keywords>
                <Keywords name="Numbers, extras1"></Keywords>
                <Keywords name="Numbers, extras2"></Keywords>
                <Keywords name="Numbers, suffix1">s b l f d</Keywords>
                <Keywords name="Numbers, suffix2"></Keywords>
                <Keywords name="Numbers, range"></Keywords>
                <Keywords name="Operators1">~ += -= *= /= %= + - = : , /</Keywords>
                <Keywords name="Operators2"></Keywords>
                <Keywords name="Folders in code1, open"></Keywords>
                <Keywords name="Folders in code1, middle"></Keywords>
                <Keywords name="Folders in code1, close"></Keywords>
                <Keywords name="Folders in code2, open"></Keywords>
                <Keywords name="Folders in code2, middle"></Keywords>
                <Keywords name="Folders in code2, close"></Keywords>
                <Keywords name="Folders in comment, open"></Keywords>
                <Keywords name="Folders in comment, middle"></Keywords>
                <Keywords name="Folders in comment, close"></Keywords>
                <Keywords name="Keywords1">advancement ban blockdata clear clone debug defaultgamemode deop difficulty effect enchant entitydata execute fill function gamemode gamerule give help kick kill list locate me op pardon particle playsound publsih recipe reload replaceitem save save-off save-on say scoreboard seed setblock setidletimeout setmaxplayers setworldspawn spawnpoint spreadplayers stats stop stopsound summon teleport tell tellraw testfor testforblock testforblocks tickingarea time title toggledownfall tp transferserver trigger weather whitelist worldborder wsserver xp</Keywords>
                <Keywords name="Keywords2">objectives players stats add remove list set operation detect entity if unless</Keywords>
                <Keywords name="Keywords3">x y z r rm tag team c l lm m name rx rxm ry rym type @a @e @p @r @s</Keywords>
                <Keywords name="Keywords4"></Keywords>
                <Keywords name="Keywords5"></Keywords>
                <Keywords name="Keywords6"></Keywords>
                <Keywords name="Keywords7"></Keywords>
                <Keywords name="Keywords8"></Keywords>
                <Keywords name="Delimiters">00&quot; 01\ 02&quot; 03[ 04 05] 06{ 07 08} 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
            </KeywordLists>
            <Styles>
                <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="LINE COMMENTS" fgColor="008000" bgColor="FFFFFF" fontStyle="2" nesting="0" />
                <WordsStyle name="NUMBERS" fgColor="FF0000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS1" fgColor="0000A0" bgColor="FFFFFF" fontStyle="1" nesting="0" />
                <WordsStyle name="KEYWORDS2" fgColor="0000A0" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS3" fgColor="FF0000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS1" fgColor="000000" bgColor="FFFFFF" fontStyle="2" nesting="0" />
                <WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="83898375" />
                <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="83886087" />
                <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
                <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
            </Styles>
        </UserLang>
    </NotepadPlus>

    P.S.: if there is a more appropriate forum to post this, I'd appreciate being pointed there.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Duplicating Spawners?

    So if you want placeable spawners, you'd be better off creating them as a custom loot (via loot tables, say, for wither), or by adding some complicated crafting recipe. Both can be done in vanilla game now, with no modding involved.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Simple reset switch to Turn on and off a redstone Circuit?

    I don't quite understand what you are trying to do here. A picture and a more detailed description of your setup (as well as the goal it's supposed to accomplish) would be nice.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on look up
    Quote from BlueRains»

    The difference between tp and teleport is that tp is to teleport a player to another location, so if you would place /tp @p ~ ~ ~ ~ -90 he would tp to the command block. Teleport is for editing the way a player is looking.

    Look in your debug screen at "Looking at", you can see the coordinates where you are looking at.



    Or to rephrase that, if you use relative coordinates, then /teleport calculates them relatively to the executor, and /tp - relatively to the teleported entity.
    So /teleport Someone ~ ~2 ~ would teleport them two blocks above you, and /tp Someone ~ ~2 ~ would teleport them two blocks above their current position.


    EDIT: mixed the commands up, sorry!

    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please .