Commit Graph
177 Commits
Author SHA1 Message Date
Mrbysco 9476ecbcc5 Initial port to 1.21.1
TODO:
* Fix the ghost block rendering
* Fix the placement canceling on setting coordinates
2025-03-01 15:09:01 +01:00
Mrbysco 778ae7ddd9 Port to 1.20.4 2024-11-20 17:06:19 +01:00
Mrbysco 08c3b4b42d Switch Power Level to a player capability 2023-11-21 20:22:20 +01:00
Mrbysco 28d47a0cbb Fix textures not being recognized
Mojang no longer automatically loads textures in `textures/items` as they now load textures from `textures/item`
2023-11-21 02:48:06 +01:00
Mrbysco 00cb48b929 Fix loot modifiers
altenative was renamed to any_of
2023-11-21 02:46:50 +01:00
Mrbysco b75cfc45d8 Fix missing calls 2023-11-18 20:49:10 +01:00
Mrbysco ca44da71e7 Fresh port to 1.20
Note: I changed `BuildModeCategoryEnum` to actually use the Color class instead of using Vector4f. Same counts for `RadialMenu`
2023-11-18 00:38:56 +01:00
Christian Knaapen 8570bde282 Fixed not being able to load when the newest version of Create is installed. 2023-10-22 13:38:47 +02:00
Christian Knaapen 5fb2edb97a Trying to fix flywheel dependency some more. 2023-07-18 22:46:09 +02:00
Christian Knaapen 0a9b764d3f Fixed build.gradle referencing older flywheel.
Updated logo, pack version
2023-07-18 21:16:49 +02:00
Christian Knaapen 82ee3eefaa Fixed not being able to load mod with latest Create mod version: Updated Flyweel dependency to 0.6.9. Updated russian translation. 2023-07-07 21:27:35 +02:00
Christian Knaapen f033c261d7 Fixed not being able to place blocks if placement reach is 0, falls back to vanilla reach now. 2023-06-28 16:28:01 +02:00
Christian Knaapen 0dad523e13 Updated icons 2023-06-25 20:00:14 +02:00
Christian Knaapen 9c9e4d04b7 Added power level indicator with extensive tooltip to radial menu. 2023-06-24 22:40:12 +02:00
Christian Knaapen 8288e5db97 Added powerlevel command. Updated reach upgrade behaviour. 2023-06-24 21:13:02 +02:00
Christian Knaapen 9e680fc2dc Added power level items and their loot modifiers. 2023-06-24 16:45:36 +02:00
Christian Knaapen 33033666b9 Renamed reach to power level. Separated reach config for more control.
Added draft icons for elastic hand, muscles and building technique book.
Separated BlockUtilities clientside.
2023-06-11 20:40:39 +02:00
Christian Knaapen 594b5e1c0d Decreasing itemstacks in survival. Disabled replacing blocks in survival. Expanded config options for survival.
Added keybinds to switch to previous build mode, and to switch between disabled and previous.
Updated RandomizerBags to use new placement method in vanilla mode. Removed SurvivalHelper placement methods.
2023-06-11 17:23:01 +02:00
Christian Knaapen 410d154276 Enabled for survival. Calculating missing items. Showing itemstacks at cursor. Showing preview blocks in red.
Increased max blocks placed at once.
Filtering coordinates that are not loaded or outside of world border.
Sending items instead of itemstacks to server.
2023-05-18 18:46:23 +02:00
Christian Knaapen 6046b9f5fa Updated russian translation. 2023-04-21 18:12:03 +02:00
Christian Knaapen a7dd0823e1 Fixed redo and running on server. 2023-02-08 20:34:05 +01:00
Christian Knaapen df1efef63b WIP UndoRedo overhaul continued.
More validation in ServerBlockPlacer.
Added BlockPlacerHelper.
2023-02-05 13:22:41 +01:00
Christian Knaapen 23b8c0c9fc WIP UndoRedo overhaul.
Fixed concurrent modification issue in ServerBlockPlacer.
2023-02-04 00:30:30 +01:00
Christian Knaapen bda0908731 Added server validation: allowInSurvival and whitelist.
Instantly placing blocksets of size 1.
Added server config and moved some config values around.
2023-02-03 21:14:29 +01:00
Christian Knaapen 589059fd44 Better text drawing in radial menu using tooltips.
Hold shift for description.
Fixed keybind text.
2023-02-03 20:00:08 +01:00
Christian Knaapen 07667efe98 Icons for modifier settings and replace modes. Rendering mirror lines and areas in world.
Removed shaders.
2023-02-02 00:45:21 +01:00
Christian Knaapen d4cb0c6858 Radial mirror GUI, and saving modifiers.
Saving modifiers in player persistent data on serverside, and loading when new player joins. This is separate per world.
Modifier GUI panels are a bit larger now, and position fields are wider.
2023-02-01 20:54:48 +01:00
Christian 953a3fe923 Fixed several issues. Mirroring vertically.
Modifier panel up/down buttons updating.
Updating neighbouring blocks when placing blocks.
Removed separate icon files.
2023-01-30 01:37:59 +01:00
Christian 420b06d414 Modifier settings GUI for array and mirror, with header.
New parts in modifiers gui texture. 
Added reordering modifiers.
Replaced all icon rendering with AllIcons class.
Delayed blockset placing in server.
Modifiers now work when buildmode is DISABLED.
Modifiers now work with breaking when buildmode would break a single block.
Modifiers screen renders tooltip on top of everything.
New labeledScrollInput class, extension of Create's ScrollInput.
BlockPreviews ignores config settings to hide itself when placing more than 1 block.
Fixed mirroring wrong horizontal axis.
2023-01-29 23:57:47 +01:00
Christian c46ae91e99 Created icon sheet. 2023-01-28 20:29:15 +01:00
Christian 2a84c7ca41 WIP Continued modifier settings gui overhaul 2023-01-28 18:19:57 +01:00
Christian 98ebc61bb8 WIP Modifier settings gui overhaul 2023-01-28 02:08:19 +01:00
Christian Knaapen ed2609f97e Overhauled modifiers to run clientside only. BuilderChain applies rotation and mirror to blockstates.
Removed ModifierSettingsManager, ModifierSettingsMessage and capabilities.
2023-01-26 02:09:50 +01:00
Christian Knaapen a760565b66 Added gui classes and some textures from Create. 2023-01-24 23:46:45 +01:00
Christian Knaapen 4ea34fc854 Added buttons in radial menu for replace modes. Implemented/fixed replace modes.
Made ModeOptions clientside and UndoRedo serverside.
New config option: only show previews when building, default true.
Overhauled drawOutlinesIfNoBlockInHand, now drawOutlineAtBreakPosition.
Fixed not being able to break blocks.
2023-01-24 02:06:43 +01:00
Christian Knaapen af4ef73375 Using BlockSets. Added filtering and several replace settings.
Overhauled build.gradle based on Create. Added flywheel as jarInJar, no external dependency anymore. New mappings channel from parchment.
Added replace modes: air, air and solid, solid, offhand filtered. Offhand filtering looks in randomizer bag as well.
Protecting tile entities by default.
Other mods can cancel placement through BlockEvent.OnBlockPlaced, such as FTBChunks.
BlockPreviews.drawOutlinesIfNoBlockInHand overhaul.
2023-01-22 20:36:48 +01:00
Christian Knaapen ae75e48c01 Added sounds and renewing randomizer bag at right times.
Added text with instruction under actionbar while placing/breaking.
2023-01-22 03:29:37 +01:00
Christian Knaapen ef687c0658 Overhaul continues continuing.
Saving data and serverside state through persistent player data.
Overhauled block previews.
Removed mode capability.
Added create item and network classes.
Using create BlockHelper to place and break blocks.
2023-01-22 00:11:28 +01:00
Christian Knaapen 617fc82114 Overhaul continues.
Updated build modes, determining blockstates.
Everything compiles and runs.
2023-01-21 01:41:00 +01:00
Christian Knaapen 349c673553 WIP Overhaul
Block calculation only on client, then send to server to place.
BuilderChain system to decouple buildmodes, buildmodifiers and randomizer bag.
2023-01-20 22:26:18 +01:00
Christian Knaapen 91834f9b60 Renamed helper package to utilities. Added systems. Removed direction parameter when placing blocks. 2023-01-18 22:02:19 +01:00
Christian Knaapen cce5e2e28d Several tweaks 2023-01-18 19:28:42 +01:00
Christian Knaapen fe69a81622 Merge branch 'create-utilities' into 1.19 2023-01-17 22:42:12 +01:00
Christian Knaapen 5f27eedde2 Keeping outlines until animation is done. Fix itemstack not found error when undoing in creative.
Disabled create test code.
2023-01-17 22:41:38 +01:00
Christian Knaapen cd3afbbb82 Overhauled block previews to work with ticks. Added place and break animation.
Added DelayedBlockPlacer to play appear animation, then place.
Split BuildConfig into CommonConfig and ClientConfig.
Fixed itemstack not found error in creative.
Added scale and color options to ghost blocks.
2023-01-17 02:30:08 +01:00
Christian Knaapen fa1aadcd86 Using Create outlines and ghost blocks for block previews.
Fixed item names.
2023-01-16 01:53:09 +01:00
Christian Knaapen c2d413fad0 Added missing resources.
Modified mods.toml.
Fixed crash and double rendering of modifiers.
2023-01-15 23:16:22 +01:00
Christian Knaapen 064973b07b Added code from Create. Added Flywheel dependency.
Restructured client and mod events to match create.
Copied accesstransformer. Added Create, CreateClient, ClientEvents and CommonEvents proxies.
2023-01-15 22:21:50 +01:00
Christian Knaapen ea59fef099 Changed reach upgrade recipes. Made radial menu smaller.
Cleaned up radial menu code.
Added russian language.
Tweaked cube icon.
2023-01-14 15:35:43 +01:00
Christian Knaapen 5e6c42d372 Fixed disassembling blocks with the Create Wrench duplicating the item when a build mode other than Normal is used. Disabled break outlines in survival, because breaking multiple blocks in survival is deprecated. 2022-10-25 21:52:14 +02:00