I only wish it was available for 1.6.4 I'd love to have this in my modpack, however, not all the mods I want to use are updated and the one that I NEED is still 1.6.4 >.<
Can someone provide an example of how you would issue a lore page to a player when they have entered the proximity of a command block? I'm still learning how all of these interactions work and any help or pointers to help will be greatly appreciated.
Command blocks sound like a pain to massage into this kind of role. I was going to do a location trigger with command blocks but it seemed overly complicated. Naturally, I chose a less complicated route by adding in a Custom NPC (thanks, noppes) with a dialog/quest tree to give me the first lore page with the empty lore book in my inventory.
Speaking of noppes' Custom NPCs, are there any ways that you're aware of to more tightly integrate HQM/Lore Expansion quests with Custom NPCs quests?
Unrelated question: What sort of variable expansion is allowed in the lore pages? I'm working on lore that includes personal journal entries signed by the current player. Can I use @p inside the title/body? What other tags can be used?
@p searches for the nearest player at and n-block radius.
You will need to run a clock to the command block to check run the check (that's as much as I know).
"/testfor @p[r=5]" would look for players within a 5 block radius.
THEN
/give [player] [item string] <amount> <damage>
OR
/give @p [item string] <amount> <damage>
@p gives the item to the nearest player.
SO
"/give @p [minecraft:paper] 4" would give the nearby player 4 pieces of paper.
You will need two command blocks for this. The detector will trigger the give command block.
Now that I've gotten my feet wet with commands and writing simple Forge mods, your advice about command blocks makes a *lot* more sense. Thanks for the basics. Much appreciated.
I'd recommend installing MineTweaker3, getting your lore page from the creative tab, and using /mt hand with the page in hand to get the proper tags to use in your give command. If you don't format your tags correctly, it can cause crashes.
What game mode are you playing in, Xhatz and Rockchaton? I wonder if SSP makes a difference over SMP.
I've noticed when I use HQM in SSP, all quests reset when I'm using a map that was created in Survival without cheats enabled. I open my map to LAN so I can enable cheats, otherwise HQM cannot start. All quests are reset. It's great for developing a map for SMP since I'm constantly resetting quests to test flow and edge cases.
I learn how use HQM and i add with success a page lore as a reward. I do the quest and HQM give me the lore page but i need to open GUI for listen audio (autoplay don't work with HQM ?).
Second problem and probably a glitch, after i get the reward lore page and listen the audio, when i press escape (ingame menu) and back to the game, the audio play again. And again...
Selrahc13 i play with Forge 1.7.10 in single player.
I learn how use HQM and i add with success a page lore as a reward. I do the quest and HQM give me the lore page but i need to open GUI for listen audio (autoplay don't work with HQM ?).
Second problem and probably a glitch, after i get the reward lore page and listen the audio, when i press escape (ingame menu) and back to the game, the audio play again. And again...
Selrahc13 i play with Forge 1.7.10 in single player.
I think Autoplay is working the way it is designed to. Unless I'm mistaken, it's intended to play the sound file automatically when you read the lore page so you don't have to press the play button.
Autoplay may have issues with items being placed in the players inventory; I'll look into that. The play/pause menu appears to be working as intended... what seems the be the problem?
Hmm, ok. The pause button should be visible when it is playing, and the play button when the audio is finished. But it looks like the LAN menu is causing it to replay? The audio should continue playing with the book closed, that function is intended.
Ehh, still not enough to summon theJaded one.
*falls into pit full of Liquid Death and Life Essence by accident*
/testfor @p[r=n]
@p searches for the nearest player at and n-block radius.
You will need to run a clock to the command block to check run the check (that's as much as I know).
"/testfor @p[r=5]" would look for players within a 5 block radius.
THEN
/give [player] [item string] <amount> <damage>
OR
/give @p [item string] <amount> <damage>
@p gives the item to the nearest player.
SO
"/give @p [minecraft:paper] 4" would give the nearby player 4 pieces of paper.
You will need two command blocks for this. The detector will trigger the give command block.
Speaking of noppes' Custom NPCs, are there any ways that you're aware of to more tightly integrate HQM/Lore Expansion quests with Custom NPCs quests?
Unrelated question: What sort of variable expansion is allowed in the lore pages? I'm working on lore that includes personal journal entries signed by the current player. Can I use @p inside the title/body? What other tags can be used?
Now that I've gotten my feet wet with commands and writing simple Forge mods, your advice about command blocks makes a *lot* more sense. Thanks for the basics. Much appreciated.
I had to do something like this to make it work:
/give @p LoreExp:page 1 0 tags:{page:1, dimension:2147483647}
I'd recommend installing MineTweaker3, getting your lore page from the creative tab, and using /mt hand with the page in hand to get the proper tags to use in your give command. If you don't format your tags correctly, it can cause crashes.
We're looking into the resetting issue.
I've noticed when I use HQM in SSP, all quests reset when I'm using a map that was created in Survival without cheats enabled. I open my map to LAN so I can enable cheats, otherwise HQM cannot start. All quests are reset. It's great for developing a map for SMP since I'm constantly resetting quests to test flow and edge cases.
I think Autoplay is working the way it is designed to. Unless I'm mistaken, it's intended to play the sound file automatically when you read the lore page so you don't have to press the play button.
Once the lore page is in the players inventory it will play automatically if it has not already been discovered.